View Full Version : how do i add a link INSIDE modCP just like admincp
Vaupell
01-18-2010, 01:54 PM
Edit : Rephrased/entire old post deleted :p
Want to add modcp options, etc.
but how do i make the links, since includes/xml/cpnav_mymod.xml does not add modcp links ;)
suggestions ?
Vaupell
01-20-2010, 06:50 PM
still havent figured this out.
BBR-APBT
01-20-2010, 07:28 PM
This code I have came up with will only work for super moderators as I wouldn't want all moderators to see the options.
Make a new plugin:
<hookname>mod_index_navigation</hookname>
$canseeoptions = false;
if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'])
{
$canseeoptions = true;
construct_nav_option($vbphrase['your_phrase'], 'page.php?do=option');
}
This is your cpnav_file.xml for the adminCP
<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="vbulletin">
<navgroup phrase="your_phrase">
<navoption displayorder="1">
<phrase>your_phrase</phrase>
<link>page.php?do=option</link>
</navoption>
</navgroup>
</navgroups>
Let me know how it works out for you since I did not test it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.