Jump to the post that solved this thread.
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 14 Years, 1 Month, 4 Weeks ago Change function by plugin
#1
Solved: 14 Years, 1 Month, 4 Weeks ago
I'm writing plugin, but don't know mybb has support replace function in library mybb?
Ex: function of mybb: format_name() . When write plugin, i can define format_name() ???

Thanks support!
#2
Solved: 14 Years, 1 Month, 4 Weeks ago
This belongs in plugin support, and I don't exactly know what you're asking Confused
#3
Solved: 14 Years, 1 Month, 4 Weeks ago
This user has been denied support. This user has been denied support.
PHP does not have support for that. The closest is replacing class functions by making your own class, but even then you have to control whoever makes new instances of that class. So it could only works for classes, where MyBB uses only one instance of. And even then you don't know if there is some plugin that bypasses it.

So no. Not possible. If there isn't a suitable hook, bad luck.

You can always edit core files, though. Smile
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)