The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[How-To] Add entries to AdminCP Navigation Menu
The AdminCP Navigation is now controlled through XML files. To add custom entries, you must create a new file cpnav_yourhack.xml and place it in directory includes/xml. This XML-File constist of 6 important tags:
Example HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <navgroups product="vbulletin"> <navgroup phrase="demohack_settings" hr="true"> <navoption> <phrase>demohack_foo</phrase> <link>demohack.php?do=foo</link> </navoption> <navoption> <phrase>demohack_modcp</phrase> <link>../{$vbulletin->config[Misc][modcpdir]}/foobar.php</link> </navoption> </navgroup> <navgroup text="Demohack Settings"> <navoption> <text>Demohack Foo</text> <link>demohack.php?do=foo</link> </navoption> <navoption> <text>Demohack ModCP</text> <link>../{$vbulletin->config[Misc][modcpdir]}/foobar.php</link> </navoption> </navgroup> </navgroups> With Beta 3 a new parameter displayorder has been introduced. This parameter is valid for Tags navgroup and navoption. This way it is possible to control in which order the Navgroups and Links will be displayed, and you can also add custom Links to existing Navgroups. To do so, your navgroup must have them same displayorder and Phrase Varname as the existing group: HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <navgroups product="vbulletin"> <navgroup phrase="forums_and_moderators" displayorder="60"> <navoption displayorder="1"> <text>Top-Link Forums & Moderators</text> <link>demohack.php?do=foo</link> </navoption> </navgroup> </navgroups> To find out the Displayorder for existing groups, take a look at cpnav_vbulletin.xml. This How-To is (C) 2005 by KirbyDE and you are not allowed to redistribute it in any way without my explicit consent. |
#52
|
||||
|
||||
What do you mean with "blank tab"?
Also, do you have a product emotions? |
#53
|
|||
|
|||
Hey,
yes I have a product emotions, I also tried it with: product="vbulletin" but it didn't work either I always get a blank entry, like in the attached screen. If I look to the src code I see this for the blank entry: HTML Code:
<div style="margin-bottom:12px"></div> <a name="grpemotions_0"></a> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="navtitle" ondblclick="toggle_group('emotions_0'); return false;"> <tr> <td><strong></strong></td> <td align="right"> <a href="index.php?do=buildnavprefs&nojs=0&prefs=&dowhat=expand&id=emotions_0#grpemotions_0" target="_self" onclick="toggle_group('emotions_0'); return false;" oncontextmenu="toggle_group('emotions_0'); save_group_prefs('emotions_0'); return false" ><img src="../cpstyles/vBulletin_3_Silver/cp_expand.gif" title="Expand Group" id="button_emotions_0" alt="" border="0" /></a> </td> </tr> </table> <div id="group_emotions_0" class="navgroup" style="display:none"> <div class="navlink-normal" onclick="nav_goto('');" onmouseover="this.className='navlink-hover';" onmouseout="this.className='navlink-normal'"><a href=""></a></div> </div> |
#54
|
||||
|
||||
Your XML is invalid
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <navgroups product="emotions"> <navgroup text="Moods" hr="true"> <navoption> <text>Mood manager</text> <link>image.php?do=modify&table=mood</link> </navoption> <navoption> <text>Add new mood</text> <link>image.php?do=add&table=mood</link> </navoption> <navoption> <text>Upload mood</text> <link>image.php?do=upload&table=mood</link> </navoption> </navgroup> </navgroups> |
#55
|
|||
|
|||
Oww I see & should be &
Thx man, I tried like everything, was almost getting crazy . Grz |
#56
|
|||
|
|||
Quote:
If you go to Admin Permissions, you are able to choose which Admin has what permissions to access. How would one go about adding this functionality? Thanks |
#57
|
||||
|
||||
Quote:
Andreas ? |
#58
|
|||
|
|||
Just for reference, the vBulletin manual has a section on this.
http://www.vbulletin.com/docs/html/cpnav_xml Very handy. :squareeyed: Quote:
|
#59
|
||||
|
||||
Before RC ... don't know which RC it was that introduced product management, this was correct.
|
#60
|
|||
|
|||
Quote:
See http://www.vbulletin.com/docs/html/bitfield_xml ^ Granted this is for 3.5.2..... Not sure about Beta. Quote:
|
#61
|
||||
|
||||
Andreas,
Thank you very much for taking the time to put this tutorial together! Tutorials like this one are a huge help to new vBulletin Hack developers. Kudos to you! Hopefully you will be adding more to this. Best wishes, Jim |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|