2012-08-02, 06:04 AM
Hi,
I am trying to get my head around the hooks with arguments and just can't do it.
I have read through http://docs.mybb.com/Plugins-The_Hook_System.html but its still not making sense to me.
Basically what I want to do is alter the redirect message for certain users.
Can anyone show me a decent working example of point me to a plugin that uses the hooks with arguments so I can try to figure it out?
Cheers
Dan
Reallly all I am trying to do is alter the $message or the redirect
I tried to use $message = $plugins->run_hooks("redirect", $message);
but this still returned blank
I am trying to get my head around the hooks with arguments and just can't do it.
I have read through http://docs.mybb.com/Plugins-The_Hook_System.html but its still not making sense to me.
Basically what I want to do is alter the redirect message for certain users.
Can anyone show me a decent working example of point me to a plugin that uses the hooks with arguments so I can try to figure it out?
Cheers
Dan
Reallly all I am trying to do is alter the $message or the redirect
I tried to use $message = $plugins->run_hooks("redirect", $message);
but this still returned blank