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  

GT for 1.5.1 - WORKING

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » GalleryTap View previous topicPrinter friendly versionView next topic
Author Message
pakus

Beginner
Beginner


Joined: Sep 04, 2003
Posts: 1

PostPosted: Sat Aug 12, 2006 1:17 pm    Post subject: GT for 1.5.1 - WORKING Reply with quote

On Gallery 1.5.1, the URL for albums, items, etc... is an absolute path instead of relative one.

This behavour imposibilites the use of GT in order to parse and substitute URLs with shorter ones.

I've found this workaround to work with Gallery 1.5.1

This is GT-gallery.php
Code: ›
<?php

########################################################
# This is a workaround for Gallery 1.5.1 and, maybe,
# later.
#
# For Gallery <1.5.1 put $urlbefore = '';
#
# Put in $urlbefore your URL to PHP Nuke site, usualy is
# the same until modules.php.
# ATTENTION: Do not forget the last '/'
#
# ej. http://www.mydomain.com/modules.php?name=gallery
#
# $urlbefore = 'http://www.mydomain.com/';
#
# Paco Orozco. http://www.pakusland.net
# 20060812 - Workaround
########################################################

$urlbefore = 'http://www.gianmarcofans.com/';

$urlin = array(
"'(?<!/)".$urlbefore."modules.php\?set_albumName=([a-zA-Z0-9]*)&amp;id=([a-zA-Z0-9]*)&amp;op=modload&amp;name=gallery&amp;file=index&amp;include=view_photo.php'",
"'(?<!/)".$urlbefore."modules.php\?set_albumName=([a-zA-Z0-9]*)&amp;op=modload&amp;name=gallery&amp;file=index&amp;include=view_album.php&amp;page=([0-9]*)'",
"'(?<!/)".$urlbefore."modules.php\?set_albumName=([a-zA-Z0-9]*)&amp;op=modload&amp;name=gallery&amp;file=index&amp;include=view_album.php'",
"'(?<!/)".$urlbefore."modules.php\?set_albumName=([a-zA-Z0-9]*)&amp;op=modload&amp;name=gallery&amp;file=index&amp;include=captionator.php'",
"'(?<!/)".$urlbefore."modules.php\?set_albumName=([a-zA-Z0-9]*)&amp;op=modload&amp;name=gallery&amp;file=index&amp;include=slideshow.php'",
"'(?<!/)".$urlbefore."modules.php\?op=modload&amp;name=gallery&amp;file=index&amp;include=albums.php&amp;set_albumListPage=([0-9]*)'",
"'(?<!/)".$urlbefore."modules.php\?op=modload&amp;name=gallery&amp;file=index&amp;include=albums.php'",
"'(?<!/)".$urlbefore."modules.php\?name=gallery'",
);

$urlout = array(
"gallery-view-photo-\\1-item-\\2.html",
"gallery-view-album-\\1-page-\\2.html",
"gallery-view-album-\\1.html",
"gallery-edit-caption-\\1.html",
"gallery-view-sideshow-\\1.html",
"gallery-view-page-\\1.html",
"gallery-list.html",
"gallery.html",
);

?>


and this is .htaccess
Code: ›
# Gallery
RewriteRule ^gallery-view-photo-([a-zA-Z0-9]*)-item-([a-zA-Z0-9]*).html modules.php?set_albumName=$1&id=$2&op=modload&name=gallery&file=index&include=view_photo.php [L]
RewriteRule ^gallery-view-album-([a-zA-Z0-9]*).html modules.php?set_albumName=$1&op=modload&name=gallery&file=index&include=view_album.php [L]
RewriteRule ^gallery-edit-caption-([a-zA-Z0-9]*).html modules.php?set_albumName=$1&op=modload&name=gallery&file=index&include=captionator.php [L]
RewriteRule ^gallery-view-sideshow-([a-zA-Z0-9]*).html modules.php?set_albumName=$1&op=modload&name=gallery&file=index&include=slideshow.php [L]
RewriteRule ^gallery-view-album-([a-zA-Z0-9]*)-page-([0-9]*).html modules.php?set_albumName=$1&op=modload&name=gallery&file=index&include=view_album.php&page=$2 [L]
RewriteRule ^gallery-view-album-([a-zA-Z0-9]*).html modules.php?set_albumName=$1&op=modload&name=gallery&file=index&include=view_album.php [L]
RewriteRule ^gallery-view-page-([0-9]*).html modules.php?op=modload&name=gallery&file=index&include=albums.php&set_albumListPage=$1 [L]
RewriteRule ^gallery-list.html modules.php?op=modload&name=gallery&file=index&include=albums.php [L]
RewriteRule ^gallery.html modules.php?name=gallery [L]


Remember to put a correct $urlbefore value, as described in code GT-gallery.php
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: GT for 1.5.1 - WORKING  

Back to top
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » GalleryTap 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