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 rewrite and integration

 
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
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1047

PostPosted: Sun Jul 02, 2006 3:24 pm    Post subject: url rewrite and integration Reply with quote

Well, after my host sold out to another provider, and the platform setup is different than before, I can now get the url rewrite to work. I just installed and configured the module from gallery and viola, it works 'out of the box', without modification. But, it causes some issues with broken relative links in the integration. (The links are actually phpbb links, but the url rewrite breaks them.)

Thanks goes to Jim at OMA [i-world.net] for inspiring the fix for this!

IF you can get the url rewrite module installed and working in embedded mode, these changes will fix the broken phpbb links (memberlist, groups, login/logout. etc) when viewing gallery albums.

Open:
gallery2.php

Find:
Code: › $template->assign_vars(array(
   'PAGE_TITLE' => $page_title,


Replace with:
Code: › $template->assign_block_vars('switch_enable_phpbb_base', array());

$template->assign_vars(array(
   'PHPBB_BASE' => $_SERVER['HTTP_HOST'] . substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')),
   'PAGE_TITLE' => $page_title,


Open:
/templates/subSilver/overall_header.tpl

Find the original mod:
Code: › {GALLERY2_JAVASCRIPT}
{GALLERY2_CSS}


After, add:
Code: › <!-- BEGIN switch_enable_phpbb_base -->
<base href="http://{PHPBB_BASE}/">
<!-- END switch_enable_phpbb_base -->


Thanks again to Jim for discovering the initial fix!
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: url rewrite and integration  

Back to top
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