View Full Version : Customised ModCP page?
rudgej
10-13-2007, 12:19 PM
I've been looking unsuccessfully for an idiot's guide to adding a custom menu option to the modCP, so can anybody point in the right direction please? :)
I have managed to create a custom option in the AdminCP, and had assumed that the steps taken would be similar for the ModCP. Can it be done, or is the ModCP limited on purpose?
Opserty
10-13-2007, 04:10 PM
Look at the source code. :p
You need to create a Plugin with the hook location mod_index_navigation then use something like this, (I took it from the index.php file in the ModCP:
construct_nav_option($vbphrase['post_new_announcement'], 'announcement.php?do=add');
construct_nav_option($vbphrase['forum_manager'], 'forum.php?do=modify');
construct_nav_group($vbphrase['announcements']);
construct_nav_spacer();
I think the names of the functions are pretty self explanatory although they don't seem to be documented in API documents though :mad:.
(If you haven't worked out ...nav_option its: construct_nav_option( 'text', 'url');)
rudgej
10-13-2007, 04:18 PM
Thanks Opserty. I'll give this a try. :)
I had previously tried the exact same stuff that I had done to customise AdminCP, but as it didn't work, I began to wonder whether there was some restrictions that I wasn't aware of.
Dismounted
10-17-2007, 06:54 AM
At the moment, the Mod CP isn't as "extendible" as the Admin CP.
rudgej
10-17-2007, 04:55 PM
At the moment, the Mod CP isn't as "extendible" as the Admin CP.
Thanks Dismounted. Does that mean that I'll have problems, or that I will be able to do something? :)
Paul M
10-17-2007, 05:12 PM
It means you cannot alter the mcp using the same system as the acp, but you can use the method posted above.
rudgej
10-17-2007, 06:34 PM
Thanks Paul. That would certainly explain why I got nowhere when trying the same thing that I did with the AdminCP.
Charlie-brm
12-21-2007, 03:37 PM
I would like to have the members' e-mail field removed from view for Moderators. I can't see where to get started locating that code in Modcp/index.php
Any help, big thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.