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 17th, 2007, 10:58 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2005
Posts: 10
$vba_options[gallery_url] problem in navigation [added 2.2]

I'm having a problem with the link $vba_options[gallery_url] in $navbar and $gallerynav. The gallery URL always points to my main forum url even though it has been set correctly.

See http://design.istyles.com/browseimages.php?c=4
"iStyles Designer Gallery" in $navbar and "Home" in $gallerynav should be pointing to http://design.istyles.com but they point to http://forum.istyles.com instead.

$vba_options[gallery_url] is set correctly to http://design.istyles.com

The strange thing is when I do an "echo $navbar;exit;" just before the final "eval('print_output("' . fetch_template('ADV_GALLERY_BROWSEIMAGES') . '");');" in the browseimage.php script, it prints a navbar that shows the correct link.

$vboptions[gallery_navbar_replace] and $vboptions[gallery_header_replace] are all empty. Something is replacing this variable and I just can't figure out where. Maybe it's "$navreplace = construct_replacement_array($navreplacearray, $navreplace);" in galleryglobal.php but changing that didn't seem to help.

This is pretty much an unmodified vbgallery 2.1, both script and template wise. Does anyone have any suggestions?
cavatina is offline  
Old March 17th, 2007, 01:52 PM   #2 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
Try this :

AdminCP => vBGallery => Modify Settings
- Main Options
-- Homepage Link in Navbar
- Set to NO
Zachariah is offline  
Old March 17th, 2007, 02:02 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2005
Posts: 10
Thanks for the suggestion, but I tried that and it removes the whole "iStyles Designer Gallery" link, which isn't the desired result as I would like a navbar bit to go back to the 'Home' gallery page.

The "Home" link in $gallerynav is still broken anyway.

I've even tried hard coding the URL into $gallerynav in place of $vba_options[gallery_url] but the final result is still the same as some code somewhere is replacing the links. (despite the fact that all the replacement lists are empty)
cavatina is offline  
Old March 17th, 2007, 02:10 PM   #4 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2005
Posts: 10
Could it be due to the fact that the forum and gallery are both in different sub-domains and this might not be supported in the software? I don't remember having such a problem in the past when the forum was in istyles.com/forum and the gallery in istyles.com/forum/gallery
cavatina is offline  
Old March 17th, 2007, 02:23 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2005
Posts: 10
Okay, I've finally got it working through some patch work. I removed "index.php" from the home link in adv_gallery_navbar and likewise in " $navbits["$vba_options[gallery_url]/index.php"] = $vba_options['gallery_title'];" within gallery_global.php.

I really do suspect that "iif($vba_options['gallery_navbarhomelink'], '$vbulletin->options[homeurl] . "', '$vba_options[gallery_url] . "/index.php')" in the same file is responsible for the problems but changing that didn't seem to affect anything, so the above two patch jobs just had to do. It's not pretty but it worked. :P
cavatina is offline  
Old March 17th, 2007, 04:21 PM   #6 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
I do not see a need for the index.php at the end.
Good find

Moved to bugs.
Zachariah is offline  
Old March 21st, 2007, 08:12 AM   #7 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
Removed in vBGallery 2.2
Zachariah is offline  
Closed Thread


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
Problem after upgrading missing $vba_options MarcK Bugs - vBulletin 3.6x 7 March 16th, 2007 08:11 AM
Navigation to previous level problem Rids Photopost Pro Bug Reports 2 October 22nd, 2005 08:16 AM
Navigation Problem afkae Installs and Upgrade - vBulletin 3.0.X 7 August 6th, 2005 03:15 PM


All times are GMT -5. The time now is 05:45 AM.

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