MyBB Community Forums

Full Version: Plugin handles and locations
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Sticky?

A list of plugin handles with line numbers taken from Mybb 1.0.

UPDATED 20/02/2007 - From MyBB 1.2.3

Mod edit: [Wiki: MyBB_Plugin_Hooks] (Broken link, head over to docs.mybb.com instead)
Oooh thank you, this is very helpful.
is this the only such list or info about plugins/mods intf?
At the moment, yes.

If you wish to look into it a bit more, take a look at the included hello.php plugin as well as some of the other ones users have created.
* monsto added this to the wiki
Updated for Release 1.0

New plugin handles include

postbit_prev - Preview of message

private_do_tracking_end - This is a duplicate of ones already there. The new one is to complement the new case of stopping an unread tracked message (guessing from variable name)
Are there any hooks for the admin panel?
Nope, but the module system (aka eMods) was introduced to do just that, though it is uncertain if the plugins system will be expanded for the Administration Panel in a future versoin
how exactly do hooks work?
When u are making a plugin for example

you add
$plugins->add_hook('index_start', 'something');

index_start : referres where you'd like your things to appear
something : the actually name of your function.


function something()
{
echo "hiiiii";
}
so like that you will have hiiiiiii displayed on your index.
that's a general explaination.
regards
Pages: 1 2 3