vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Vbulletin CPnav problem with getting it right (https://vborg.vbsupport.ru/showthread.php?t=212171)

Sweeks 04-25-2009 09:23 PM

Vbulletin CPnav problem with getting it right
 
I am trying to add a group options using the following code:

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

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:

Code:

<?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

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:

Code:

<?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
Code:

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

Code:

XML Error: EntityRef: expecting ';' at Line 5
Hope someone can help, I must not be doing something correctly :)
________
EXPERT INSURANCE


All times are GMT. The time now is 12:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01383 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete