The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Edit : Rephrased/entire old post deleted
![]() 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 ? |
|
#2
|
||||
|
||||
|
still havent figured this out.
|
|
#3
|
||||
|
||||
|
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> Code:
$canseeoptions = false;
if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'])
{
$canseeoptions = true;
construct_nav_option($vbphrase['your_phrase'], 'page.php?do=option');
}
Code:
<?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> |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|