MyBB Community Forums

Full Version: Hook Changes !
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
showthread.php

eval("\$pollbox = \"".$templates->get("showthread_poll_results")."\";");
$plugins->run_hooks("showthread_poll_results");		
***************************
eval("\$pollbox = \"".$templates->get("showthread_poll")."\";");
$plugins->run_hooks("showthread_poll");

Into
$plugins->run_hooks("showthread_poll_results");	
eval("\$pollbox = \"".$templates->get("showthread_poll_results")."\";");
***************************	
$plugins->run_hooks("showthread_poll");
eval("\$pollbox = \"".$templates->get("showthread_poll")."\";");

More usefull.
I won't be able to develop with MyBB until there is hooks everywhere...
(2009-04-07, 07:09 PM)Zachary Wrote: [ -> ]I won't be able to develop with MyBB until there is hooks everywhere...

More than this?: http://wiki.mybboard.net/index.php/MyBB_Plugin_Hooks
I am afraid yes, there is tons of places were I need them to make a mod I was thinking about, but they are not there.... For the hook system to be effective we need them literally everywhere... Can you guys make some in the area for the error template in class_error.php please?
I think I suggested the same thing some months ago and it was rejected.
You can always use string manipulation functions after the template has been evaluated, though I guess the change might be a little more convenient.