MyBB Community Forums

Full Version: Another tab in the admin panel?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well as the title says, how I can add another tab as shown in this picture:

[Image: 578320-1012012114127pm.png]

I'm trying to make a small plugin, I leave the code I'm using.

This is the hook, I call:

$plugins->add_hook("admin_home_menu", "plugin_menu_admin_meta");

And here the code:

function plugin_menu_admin_meta()
{
	$sub_menu = array();
	$sub_menu[] = array("id" => "plugin_categories", "title" => 'Categories plugin', "link" => "index.php?module=plugin-categories");
		return $sub_menu;
}

And so that was that, as I have to do? I'm doing wrong?
Thanks in advance Big Grin
create a new module in admin/modules. just use the home module as an example. You'll modify the module_meta.php file (or meta_module or something along those lines) with the tab name and such.
For the hooks are something I do not want to add more files because for those who wear it will only be a mess.

Once I saw a plugin that just did it for the tabs but with hooks.