View Full Version : Changing nav bar
PolishPanda
07-09-2004, 01:18 AM
Hello, I noticed on your site that your nav bar at the top changes. The first button changes from Forums to Home depending on which part of the site you are on. My question is how do you do this? Could you give me the code to do so? Right now I have both buttons but it takes up too much room and I would like one instead.
Thanks for your help in advance.
-Conrad
Jason McConnell
07-09-2004, 01:30 AM
This is a pretty easy one, go into your Styles section of your AdminCP, and select Edit Templates. Select Navigation, then Navbar. Now I'm gonna steal some advice from Zachery, hope he doesn't mind ;) I used this thread for reference: http://www.vbadvanced.com/forum/showthread.php?t=41
In the Navbar template, find:
<!--<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></td>-->
And replace it with this:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]?$session[sessionurl]"> Forums <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"> Home </if></a></td>
Milorad
07-09-2004, 02:43 AM
I actually hate when stuff changes...
I get used to hitting the first or second one to get where I want to go... I dont need to read it.
if it changes, I have to actually think about where I am, not just where I want to be.
PolishPanda
07-09-2004, 10:34 PM
Ok, thanks for the help.
motobrandt
07-12-2004, 05:30 PM
Is this going to work with 3.0.3 or 3.0.1? I've tried it on my board ver 3.0.1 and it doesn't work. In fact there is no home or forum link in the navbar at all. :eek:
I must be missing something... :confused:
Check it out here http://www.950riders.com/forums/cmps_index.php
This is really bad because at the cmps_index.php there is no way to get to the forums other then clicking on a thread and then the breadcrumb will show up.
Help?
Brian
07-12-2004, 07:06 PM
Did you edit your navbar as instructed in the previous post?
motobrandt
07-12-2004, 08:28 PM
Did you edit your navbar as instructed in the previous post?
Yeah but I did it on the Default Skin and not on the one that I actually use as default. The one that I use is a child of the default so I thought that it would inherit the change but I guess it didn't.
I just tried the change on the child skin and it works. woo hoo!!!
I like it :D
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.