PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old March 6th, 2005, 03:47 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2004
Posts: 27
Navbar link to 'Forum', not 'Home'.

How can I change the navbar in my Gallery section to point to the Forums and not the VBCMPS homepage?

Tia,
Chas.
chas_h is offline   Reply With Quote
Old March 7th, 2005, 09:28 AM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: Navbar link to 'Forum', not 'Home'.

What's the code you currently have for the link?
  Reply With Quote
Old March 7th, 2005, 05:16 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2004
Posts: 27
Re: Navbar link to 'Forum', not 'Home'.

Quote:
Originally Posted by Brian
What's the code you currently have for the link?
Well, I'm not sure. If I look under the Gallery templates, there is this code under Navbar;

Code:
Content visible to verified customers only.
But I think this is for the Gallery specific Navbar. I'm trying to change the link in the VB navbar that appears on top of every page at my site. I want it to show 'forum' when users are at either the CMPS or Gallery pages and show 'home' only when at the forum pages.

Thanks,
Chas.
chas_h is offline   Reply With Quote
Old March 7th, 2005, 06:22 PM   #4 (permalink)
Brian
Guest
 
Posts: n/a
Re: Navbar link to 'Forum', not 'Home'.

Use this:
<if condition="defined('VBA_SCRIPT')">
Forum Link
<else />
Home Link
</if>
  Reply With Quote
Old March 7th, 2005, 08:34 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2004
Posts: 27
Re: Navbar link to 'Forum', not 'Home'.

Quote:
Originally Posted by Brian
Use this:
<if condition="defined('VBA_SCRIPT')">
Forum Link
<else />
Home Link
</if>
That worked for the galley page, but now the home page (CMPS) has a 'home' link in the navbar with no way to get to the forums.

I may stay with the original setup for now, less confusion.

Chas.
chas_h is offline   Reply With Quote
Old March 8th, 2005, 08:25 AM   #6 (permalink)
Brian
Guest
 
Posts: n/a
Re: Navbar link to 'Forum', not 'Home'.

Sorry about that... I keep forgetting that I haven't added that in the CMPS yet. If you'll look in your cmps_index.php file for this code:
Code:
Content visible to verified customers only.
And add this right below it:
Code:
Content visible to verified customers only.
Then it should work.
  Reply With Quote
Old March 8th, 2005, 10:05 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2005
Posts: 8
Re: Navbar link to 'Forum', not 'Home'.

don't understand exactly where to add the above code.

how about in the following statement:

<if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums <else /> <a href="$vboptions[homeurl]$session[sessionurl]"> Home </if>

adding

<if condition="THIS_SCRIPT == 'adv_index'" or XXXXXXXXXXXX ><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums <else /> <a href="$vboptions[homeurl]$session[sessionurl]"> Home </if>

where or XXXXXXXX = something like "adv_Gallery" ?? if CMPS is installed?

thanks
drex is offline   Reply With Quote
Old March 8th, 2005, 10:12 AM   #8 (permalink)
Brian
Guest
 
Posts: n/a
Re: Navbar link to 'Forum', not 'Home'.

<if condition="THIS_SCRIPT == 'adv_index' OR defined('VBA_SCRIPT')">

Should work.
  Reply With Quote
Old March 8th, 2005, 10:38 AM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2005
Posts: 8
Re: Navbar link to 'Forum', not 'Home'.

Perfect! You Are Da Man!
drex is offline   Reply With Quote
Old March 8th, 2005, 12:09 PM   #10 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2004
Posts: 27
Re: Navbar link to 'Forum', not 'Home'.

Quote:
Originally Posted by Brian
Sorry about that... I keep forgetting that I haven't added that in the CMPS yet. If you'll look in your cmps_index.php file for this code:
Code:
Content visible to verified customers only.
And add this right below it:
Code:
Content visible to verified customers only.
Then it should work.
Thanks, that did it for me.
chas_h is offline   Reply With Quote
Reply


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

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum Navbar Link on Gallery Pages Broken! carvster Installs and Upgrade - vBulletin 3.5.X 9 November 10th, 2005 02:21 PM
Home / Forum Link If Statement dieselpowered How Do I? - vBulletin 3.5.X 2 July 27th, 2005 12:43 AM
Forum link in Navbar Code3Services How Do I? - vBulletin 3.0.X 2 February 7th, 2005 08:53 AM
HowTo add navbar link on home deb0 How Do I? - vBulletin 3.0.X 2 December 16th, 2004 12:25 PM


All times are GMT -5. The time now is 11:31 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0