2006-04-11, 04:25 PM
2006-04-24, 04:56 PM
Quote: 1074 delete_thread $tidHow come the hooks in newthread.php and editpost.php aren't passed the $tid? Is there a reason?
1088 delete_post $tid
2006-04-24, 05:45 PM
newthread has to make the thread's id, so there is no $tid yet.
editpost works with $pid and will be in $mybb->input['pid']
editpost works with $pid and will be in $mybb->input['pid']
2006-04-28, 03:16 AM
Okey, I've made an proposual php version of an plugin list, it is not complete, however, I wanted to know if people liked it, if not I'm gonna scrap it.
Click the hooks and there should display an message on what that hook does, if not, I've not added it yet.
Look here: http://mcdcpp.net/hooks.php
Click the hooks and there should display an message on what that hook does, if not, I've not added it yet.
Look here: http://mcdcpp.net/hooks.php
2006-04-28, 03:29 AM
CraKteR, I think that's a great start. I think it would be nice to include what should be available in $mybb->input and the other globals when the hooks get called.
2006-04-28, 03:36 AM
Thanks, yea that was what I was thinking, but it is alot of work, so we'll see if I got time todo all that. Gotta sleep now, gonna look at it more tomorrow tho.
2006-04-28, 01:43 PM
Finished adding all hooks to the page, got 302 hooks displayed, I've not done anything with commenting them, well some is, most is not. Hope you like it, I'll be adding more commenting later on.
2006-04-28, 08:24 PM
Its already here?: http://wiki.mybboard.com/index.php/MyBB_Plugin_Hooks
2006-08-25, 08:46 PM
Hmm..I am trying to add a hook into the $seperator template.
Any help would be great. I have a lot of things but so far nothing is working.
Any help would be awesome. I just need to know the syntax to run a function hook inside the seperator.
Any help would be great. I have a lot of things but so far nothing is working.
$plugins->add_hook("postbit", "test");
function test()
{
$seperator = str_replace("<div id=\"content\">", "<div id=\"content\">Hello World!<br />This is a sample MyBB Plugin (which can be disabled!) that displays this message on all pages.<br />", $seperator);
return $seperator;
}
Any help would be awesome. I just need to know the syntax to run a function hook inside the seperator.
2006-08-25, 09:11 PM
You need to add global $seperator; and return is not needed.