Log in

View Full Version : How do I add / remove items from the navigation bar ?


mihai11
07-25-2007, 08:05 AM
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
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
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
<if condition="THIS_SCRIPT == 'index'">