![]() |
|
#1
|
|||
|
|||
|
Hi;
I noticed on vBadvanced.com and vBadvanced.com/forums, the nav bar seem to recognize which page you are at and presents a different list of navigation options. How would I come about doing that? Regards, Andy Huang |
|
#2
|
||||
|
||||
|
In the navbar template find:
Code:
<!--<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></td>--> Code:
<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> |
|
#3
|
|||
|
|||
|
That worked great! Thanks
|
|
#4
|
||||
|
||||
|
Glad to help..
Give us a link to your site
Last edited by mholtum; 07-17-2004 at 02:11 AM. |
|
#5
|
|||
|
|||
|
If the folder that the forums are in is named /forums how would I get that to point to the right forum. Changing the name I've found screws up the front page.
|
|
#6
|
||||
|
||||
|
Quote:
__________________
vBACMPS, Gallery user and Fan!!!![]() Come talk about the best dog breed in the world @ BoxerTalk! |
|
#7
|
|||
|
|||
|
Oh forget it. I'll find a way to fix it myself.
|
|
#8
|
||||
|
||||
|
Quote:
|
|
#9
|
|||
|
|||
|
Is that where 'forum' changes to 'home' on the nav bar when you click on forum?
|
|
#10
|
||||
|
||||
|
Yes
|
|
#11
|
|||
|
|||
|
Coolio! cheers mholtum!
|
|
#12
|
||||
|
||||
|
I cant take credit for this one. Brian told me...
|
|
#13
|
|||
|
|||
|
What do I need to do to this scrpit to change it to go back to my cmps_index.php page which is located at http://www.astra-mk2.com/forum/cmps_index.php ?
Cheers |
|
#14
|
||||
|
||||
|
Quote:
|
|
#15
|
|||
|
|||
|
Cool, cheers
|
|
#16
|
|||
|
|||
|
I've now got an interesting problem with this. On anyother forum page the 'home' links works perfectly and returns you to our cmps_index.php home page. However, when you're in the links directory, the same link in the navbar points to here:
http://www.astra-mk2.com/forum/cmps_...mk2.com/forum/ hmmm??? Any help much appreciated. |
|
#17
|
||||
|
||||
|
I think it has something to do with the fact that you have the cmps_index.php file in the same directory as the forums
|
|
#18
|
|||
|
|||
|
Could be I guess. Trouble is tho, now it's been installed there it'll mess everything up if I move it to my root folder.
|
|
#19
|
||||
|
||||
|
Quote:
|
|
#20
|
|||
|
|||
|
you are a star!
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|