vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I add / remove items from the navigation bar ? (https://vborg.vbsupport.ru/showthread.php?t=153323)

mihai11 07-25-2007 08:05 AM

How do I add / remove items from the navigation bar ?
 
Hi,

By default the navigation bar contains items like "User CP, Members List, New Posts, Quick Links, Log Out"

How can I alter this list ?

Edit: It looks like I need to edit the "navbar" template. Since I only need some updates for a custom page looks like I need to make another template. Most probably I should start with the "navbar" template and then add / remove whatever I need in the new template. What do you think ? Is this the right way to solve this issue ?

Regards,
Razvan

Dismounted 07-25-2007 10:03 AM

Yes, you must edit the navbar template (abbreviated from "navigation bar") to remove those links.

mihai11 07-25-2007 10:29 AM

Quote:

Originally Posted by Dismounted (Post 1301014)
Yes, you must edit the navbar template (abbreviated from "navigation bar") to remove those links.

Actually, I created a new template starting from the "navbar" template. I did this because I need a new navigation bar only in a custom page. For all the other pages the navigation bar should not be changed.

I wish that VB would be a bit more CMS-orientated :). By this I mean, I expected to be able to modify the navigation bar from AdminCP.

Dismounted 07-25-2007 10:30 AM

You can already do this using a vBulletin conditional.

mihai11 07-25-2007 11:28 AM

Quote:

Originally Posted by Dismounted (Post 1301037)
You can already do this using a vBulletin conditional.

Yes, but the condition would be tested on *all* pages.

With a new template, it will take a bit more space on the DB, but there will be no CPU penalties in other pages. Besides this, the original "navbit" template will remain unchanged, which is an advantage when performing updates.

MINIgolfer1 08-30-2007 02:59 AM

I've got a question. I have added a link to the navbar to allow the users to link back to the main home page of vBulletin from any page they may be on.

Problem is that this link displays on the navbar even when they are on the home page. What conditional can I use to check to see if they they are on the main vBulletin page?

Thanks

Dismounted 08-30-2007 11:43 AM

Code:

<if condition="THIS_SCRIPT == 'index'">


All times are GMT. The time now is 03:27 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.00921 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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