PDA

View Full Version : Vbulletin CPnav problem with getting it right


Sweeks
04-25-2009, 09:23 PM
I am trying to add a group options using the following code:

<navgroup text="tools" displayorder="100">
<navoption displayorder="1"> <text>Visitor Messages</text>
<link>http://www.***.com/moderation.php?do=viewvms&type=moderated</link>
</navoption>
<navoption displayorder="2"> <text>Group Messages</text>
<link>http://www.***.com/moderation.php?do=viewgms&type=moderated</link>
</navoption>
<navoption displayorder="3"> <text>Picture Comments</text>
<link>http://www.***.com/moderation.php?do=viewpcs&type=moderated</link>
</navoption>
<navoption displayorder="4"> <text>New Pictures</text>
<link>http://www.***.com/moderation.php?do=viewpics</link>
</navoption>
</navgroup>

But when I add that to the main vbulletincpnav xml half the navigation disappears and a new nav appears with on its own. Can someone help me add this successfully to the admincp navigation?

I would really appreciate any tips :)

Thank you.
________
Pregnant tits (http://www.++++tube.com/categories/924/tits/videos/1)

Dismounted
04-26-2009, 05:16 AM
Don't edit the original cpnav file - create your own.

Sweeks
04-26-2009, 08:52 AM
Okay, I have tried the following in a file name mod_tools.xml as I renamed it and this is the content:

<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="vbulletin">
<navgroup text="tools" displayorder="100">
<navoption displayorder="1"> <text>Visitor Messages</text>
<link>http://www.xxx.com/moderation.php?do=viewvms&type=moderated</link>
</navoption>
<navoption displayorder="2"> <text>Group Messages</text>
<link>http://www.xxx.com/moderation.php?do=viewgms&type=moderated</link>
</navoption>
<navoption displayorder="3"> <text>Picture Comments</text>
<link>http://www.xxx.com/moderation.php?do=viewpcs&type=moderated</link>
</navoption>
<navoption displayorder="4"> <text>New Pictures</text>
<link>http://www.xxx.com/moderation.php?do=viewpics</link>
</navoption>
</navgroup>
</navgroups>

It doesnt work however and I dont have a clue why it doesnt.
________
Weed (http://www.youtube.com/dispensaries)

Dismounted
04-26-2009, 10:19 AM
Follow the naming scheme - cpnav_*.xml

nexialys
04-26-2009, 10:19 AM
you have to :

1- create a product "product_name"
2- name your file cpnav_product_name.xml
3- activate your product

... this is the only way to do it.

remember to look at the original cpnav_vbulletin.xml to see the hierarchie...

Sweeks
04-26-2009, 11:07 AM
Okay I have named the file cpnav_modtools and this is the content:

<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="cpnav_modtools">
<navgroup text="tools" displayorder="100">
<navoption displayorder="1"> <text>Visitor Messages</text>
<link>http://www.xxx.com/moderation.php?do=viewvms&type=moderated</link>
</navoption>
<navoption displayorder="2"> <text>Group Messages</text>
<link>http://www.xxx.com/moderation.php?do=viewgms&type=moderated</link>
</navoption>
<navoption displayorder="3"> <text>Picture Comments</text>
<link>http://www.xxx.com/moderation.php?do=viewpcs&type=moderated</link>
</navoption>
<navoption displayorder="4"> <text>New Pictures</text>
<link>http://www.xxx.com/moderation.php?do=viewpics</link>
</navoption>
</navgroup>
</navgroups>

How do I import it? What I have tried is placed it within the includes/xml folder and refreshed the admin cp but all that appears is *[]*

Im not sure how to import it via any other methods, I have attempted importing it as a product but I get:


XML Error: EntityRef: expecting ';' at Line 5

Hope someone can help, I must not be doing something correctly :)
________
EXPERT INSURANCE (http://xpertinsurance.com/)