PDA

View Full Version : Navbar home/forum link


top dog
08-26-2007, 04:11 PM
I'm hoping this is a fairly easy question to answer...

Basically I'm using CMPS for the homepage which links to the forum in the upper navbar which was quite straightforward.

Having upgraded the software to 3.6.8 I'm now wishing to upgrade the skin using the new default skin supplied by vBulletin before making any skin changes.

I believe the code for this has been posted on vb.org but it's been so long since I made the changes in the navbar I've forgotten what they are!

My question is:

What changes do I need to make to the navbar so it switches the link between home and forum, can anyone point me in the right direction for the upper navbar code changes?

princeedward
08-26-2007, 05:02 PM
i hope this is the solution to your problem...insert it anywhere you like...

<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://yoursite.com/index.php"> Forums <else /> <a href="http://yoursite.com/"> Home </if></a></td>


goodluck and best regards

;)

Our Sponsors
 

top dog
08-27-2007, 03:24 AM
Brilliant, thanks for your help :)

princeedward
08-27-2007, 09:02 AM
Brilliant, thanks for your help :)no problem...glad i helped...just want to share also what i've learned from others too..

;)

Our Sponsors
 

top dog
08-31-2007, 01:16 PM
The navbar now alternates between home and forum as I hoped (which is a bit of a miracle because I'm making the changes) :confused:

One question - where do I change the link properties, I ask this because the link to the homepage works fine, but the link for the forums goes to /cmps_index.php? instead of /index.php?

I realise it's just a simple case of editing the path for the link, and I know it's in here somewhere!!!

Am just struggling to find it :eek: so any help and guidance much appreciated :cool:

top dog
08-31-2007, 03:42 PM
OK, I sorted it by doing a search for /cmps_index.php? in the style I was working on and changed it to /index.php?

princeedward
08-31-2007, 04:12 PM
hmmmm...i dont know and dont understand it now...what i have is like this...

My Forum: http://epaloids.com/index.php

My Portal: http://epaloids.com/

as easy as like that...thats why i gave you the copy of mine...

but i guess you must do this...

<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://yoursite.com/index.php"> Forums <else /> <a href="http://yoursite.com/cmps_index.php?"> Home </if></a></td>

i hope it work now...

best regards...

:p

top dog
08-31-2007, 05:42 PM
Sorry for the confusion, your code was spot-on which makes the upper navbar menu button alternate between 'Home' and 'Forums' depending upon whether you are on the homepage or the forum page.

It was in the CMPS preferences page where the change to the link code was required.