vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 07-16-2004, 09:17 PM
HuangA HuangA is offline
Junior Member
 
Join Date: Jun 2004
Posts: 8
Default How do I add the "Home" and "Forum" link on nav bar?

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  
Old 07-17-2004, 02:29 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: How do I add the "Home" and "Forum" link on nav bar?

In the navbar template find:
Code:
<!--<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></td>-->
and replace with:
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  
Old 07-17-2004, 02:43 AM
HuangA HuangA is offline
Junior Member
 
Join Date: Jun 2004
Posts: 8
Default Re: How do I add the "Home" and "Forum" link on nav bar?

That worked great! Thanks
  #4  
Old 07-17-2004, 03:09 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: How do I add the "Home" and "Forum" link on nav bar?

Glad to help.. Give us a link to your site

Last edited by mholtum; 07-17-2004 at 03:11 AM.
  #5  
Old 07-26-2004, 11:14 PM
StevePJC StevePJC is offline
Junior Member
 
Join Date: Apr 2004
Posts: 13
Default Re: How do I add the "Home" and "Forum" link on nav bar?

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  
Old 07-26-2004, 11:47 PM
DarknessDivine's Avatar
DarknessDivine DarknessDivine is offline
Senior Member
 
Join Date: May 2004
Posts: 250
Default Re: How do I add the "Home" and "Forum" link on nav bar?

Quote:
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.
huh?
__________________
vBACMPS, Gallery user and Fan!!!
Come talk about the best dog breed in the world @
BoxerTalk!
  #7  
Old 07-26-2004, 11:49 PM
StevePJC StevePJC is offline
Junior Member
 
Join Date: Apr 2004
Posts: 13
Default Re: How do I add the "Home" and "Forum" link on nav bar?

Oh forget it. I'll find a way to fix it myself.
  #8  
Old 07-27-2004, 12:00 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: How do I add the "Home" and "Forum" link on nav bar?

Quote:
Originally Posted by StevePJC
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.
Shouldn't matter. My vb is installed in /forum. I dont think that the actually name of the dir is relevant.
  #9  
Old 07-27-2004, 05:23 PM
Allen Mead Allen Mead is offline
Senior Member
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 131
Default Re: How do I add the "Home" and "Forum" link on nav bar?

Is that where 'forum' changes to 'home' on the nav bar when you click on forum?
  #10  
Old 07-28-2004, 02:06 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: How do I add the "Home" and "Forum" link on nav bar?

Yes
  #11  
Old 07-28-2004, 04:38 PM
Allen Mead Allen Mead is offline
Senior Member
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 131
Default Re: How do I add the "Home" and "Forum" link on nav bar?

Coolio! cheers mholtum!
  #12  
Old 07-28-2004, 10:51 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: How do I add the "Home" and "Forum" link on nav bar?

I cant take credit for this one. Brian told me...
  #13  
Old 08-07-2004, 08:03 PM
Allen Mead Allen Mead is offline
Senior Member
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 131
Default Re: How do I add the "Home" and "Forum" link on nav bar?

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  
Old 08-07-2004, 08:48 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: How do I add the "Home" and "Forum" link on nav bar?

Quote:
Originally Posted by Allen Mead
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
If you place the cmps_index.php file in your root and change it to index.php it will work. Other than that you would have to change the $vboptions[forumhome].php to point to the cmps_index.php file in your /forums/ dir.
  #15  
Old 08-07-2004, 08:56 PM
Allen Mead Allen Mead is offline
Senior Member
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 131
Default Re: How do I add the "Home" and "Forum" link on nav bar?

Cool, cheers
  #16  
Old 08-08-2004, 06:13 PM
Allen Mead Allen Mead is offline
Senior Member
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 131
Default Re: How do I add the "Home" and "Forum" link on nav bar?

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  
Old 08-08-2004, 09:17 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: How do I add the "Home" and "Forum" link on nav bar?

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  
Old 08-09-2004, 05:12 PM
Allen Mead Allen Mead is offline
Senior Member
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 131
Default Re: How do I add the "Home" and "Forum" link on nav bar?

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  
Old 08-09-2004, 05:25 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: How do I add the "Home" and "Forum" link on nav bar?

Quote:
Originally Posted by Allen Mead
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.
No it wont. Just move it and insert put chdir('./forum'); back in. Replace the word forum with the name of your forum directory
  #20  
Old 08-09-2004, 06:00 PM
Allen Mead Allen Mead is offline
Senior Member
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 131
Default Re: How do I add the "Home" and "Forum" link on nav bar?

you are a star!
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:08 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd. ?&AID=10293998&PID=1523465
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.