Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

url problem

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Issues » phpBB2 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
nerf610

Beginner
Beginner


Joined: Feb 03, 2006
Posts: 3
Location: Southern CA

PostPosted: Sat Jan 13, 2007 2:30 am    Post subject: url problem Reply with quote

well, I just upgraded to the newest version of gallery2 and the newest integration package. Install went smoothly and gallery2 works great directly.

However, accessing gallery from within phpBB2 now causes all links to be corrupt. The view source shows the following
base href="http://kcffulocal1301.com/cgi-sys/"
It should actually be:
base href="http://kcffulocal1301.com/gallery2/"

The gallery config within phpBB2 also returns the following error:
URL derived from http://kcffulocal1301.com/phpBB2/gallery2.php is invalid
Configuration data successfully saved, but errors were encountered.


Any ideas?
Thanks
Back to top
Offline View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
AdBot
   Post subject: url problem  

Back to top
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1047

PostPosted: Sat Jan 13, 2007 10:12 pm    Post subject: Re: url problem Reply with quote

It's because your server is running scripts from aliased directories. Dreamhost and other similarly configured hosts have this issue.

Comment out this code from gallery2.php:
Code: › elseif (!empty($pluginStatusList['rewrite']['active'])) {
   $template->assign_block_vars('switch_phpbb_base', array(
      'PHPBB_BASE' => strtolower(substr($_SERVER['SERVER_PROTOCOL'], 0, strpos($_SERVER['SERVER_PROTOCOL'], '/'))) . '://' . $_SERVER['HTTP_HOST'] . substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/') + 1))
   );
}


You will probably also have trouble with the image selector, because it won't be able to build a correct path on it's own either. You'll have to hard code a path into the mod for bbcode.php if it doesn't work properly.

The config error stems from the same path discovery problem. Go to the config screen and have a look at the paths that got filled in automatically and make sure they are right. Especially the path to embed.php
Back to top
Offline View user's profile Send private message
nerf610

Beginner
Beginner


Joined: Feb 03, 2006
Posts: 3
Location: Southern CA

PostPosted: Mon Jan 15, 2007 12:13 am    Post subject: Re: url problem Reply with quote

Thanks for your help.
The problem is fixed.

I didn't have that exact code but I commented out the PHPBB_BASE line and it works.

Thanks again.
Back to top
Offline View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Issues » phpBB2 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia