Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-25-2009, 09:23 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 04-26-2009, 05:16 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't edit the original cpnav file - create your own.
Reply With Quote
  #3  
Old 04-26-2009, 08:52 AM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 04-26-2009, 10:19 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Follow the naming scheme - cpnav_*.xml
Reply With Quote
  #5  
Old 04-26-2009, 10:19 AM
nexialys
Guest
 
Posts: n/a
Default

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...
Reply With Quote
  #6  
Old 04-26-2009, 11:07 AM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:09 PM.


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.03904 seconds
  • Memory Usage 2,209KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (5)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete