2012-04-08, 01:56 PM
I tried to use
then I tried
I like to use because I'm looking for clean code and OOP.
I tried to "fix" it, I've changed http://pastebin.com/eJ50iKN0 to http://pastebin.com/JcPC6Duj
And it works fine to me but it have trouble when you use a function passed by reference
I've suggested that on ideas.mybb.com but no one replied
Edit: You can add that to the mybb 1.8 (because 2.0 will be re-writed)
$plugins->add_hook('pre_output_page', function($page){
return 'This is a test';
});
then I tried
$plugins->add_hook('pre_output_page', 'MyClass::pre_output');
But it throws error.I like to use because I'm looking for clean code and OOP.
I tried to "fix" it, I've changed http://pastebin.com/eJ50iKN0 to http://pastebin.com/JcPC6Duj
And it works fine to me but it have trouble when you use a function passed by reference
I've suggested that on ideas.mybb.com but no one replied
Edit: You can add that to the mybb 1.8 (because 2.0 will be re-writed)