PDA

View Full Version : Add new menu to modcp?


Iain M
09-22-2009, 06:57 PM
Hey,

Can someone tell me how to add a new menu to the modcp? Like Announcements > Post New Announement, Forum Manager.

I've got showing in the admincp by creating an xml file.. but it doesn't show in the modcp.


Thanks

--------------- Added 1253650710 at 1253650710 ---------------

Got it!

Add a new plugin at mod_index_navigation with:

if ($canmoderate)
{
construct_nav_option($vbphrase['OPTION_1'], 'your_script.php?do=option1');
construct_nav_option($vbphrase['OPTION_2'], 'your_script.php?do=option2');
construct_nav_group($vbphrase['GROUP_NAME']);
construct_nav_spacer();
}