View Full Version : Moderator Menu creation
jasharen
06-20-2006, 05:26 PM
Does anyone have a link to a tutorial on creating a menu in the moderator CP?
calorie
06-21-2006, 04:32 PM
You'd need to use the mod_index_navigation hook. Take a look at the index.php file in the modcp directory and search the file for the following to see how they are used to create the side groups. Then make a plugin using the mod_index_navigation hook to add your own side groups.
construct_nav_option
construct_nav_group
construct_nav_spacer
ericgtr
06-21-2006, 04:35 PM
Calorie beat me to it :)
Alan @ CIT
06-21-2006, 05:14 PM
A working example from one of my hacks :)
construct_nav_option($vbphrase['modpm_moderate_private_messages'], 'moderate_pm.php?do=list');
construct_nav_group($vbphrase['modpm_pm_moderation']);
construct_nav_spacer();
Thanks,
Alan.
jasharen
06-23-2006, 01:51 AM
Perfect, thanks all works like a charm!
KuJoe
06-29-2006, 09:12 AM
I'm a little confused about this. Is there a way to use an XML file made for the AdminCP and have it appear in the ModCP?
Alan @ CIT
06-29-2006, 09:54 AM
Unfortunately, no. You have to make a plugin simaler to the one above ^^^ to add menu entries to the ModCP.
Thanks,
Alan.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.