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