Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Brujo64
Newbie
Newbie



Joined: Jun 02, 2007
Posts: 2

PostPosted: Sat Jan 05, 2008 11:53 am Reply with quote

i like to share my working tap with the menalto gallery >1.5.2

Notice: there was a change in the gallery code around the Version 1.5.2 and for this you have to modify the $urlbefore with your domain name.

Code:
#Gallery
RewriteRule ^gallery.html modules.php?name=gallery [L]
RewriteRule ^gallery-albumlistpage_([0-9]*).html modules.php?op=modload&name=gallery&file=index&include=albums.php&set_albumListPage=$1 [L]
RewriteRule ^gallery.html modules.php?op=modload&name=gallery&file=index&include=albums.php [L]
RewriteRule ^gallery-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-album_([a-zA-Z0-9_-]*).html modules.php?set_albumName=$1&op=modload&name=gallery&file=index&include=view_album.php [L]
RewriteRule ^gallery-photo_([a-zA-Z0-9_-]*)-([a-zA-Z0-9_-]*).html modules.php?set_albumName=$1&id=$2&op=modload&name=gallery&file=index&include=view_photo.ph
p [L]
RewriteRule ^gallery-photo_([a-zA-Z0-9_-]*)-([a-zA-Z0-9_-]*).html modules.php?full=1&set_albumName=$1&id=$2&op=modload&name=gallery&file=index&include=view_photo.php [L]

Code:
$urlbefore = 'http://your.domain/';
$urlin = array(
'"(?<!/)'.$urlbefore.'modules.php\?full=1&amp;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;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\?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"',
'"(?<!/)modules.php\?name=gallery"'
);

$urlout = array(
'gallery-photo-full_\\1-\\2.html',
'gallery-photo_\\1-\\2.html',
'gallery-album_\\1-page-\\2.html',
'gallery-album_\\1.html',
'gallery-albumlistpage_\\1.html',
'gallery.html',
'gallery.html'
);


have a lot of fun with it
Brujo


Last edited by Brujo64 on Sat Jan 05, 2008 1:39 pm; edited 1 time in total 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Jan 05, 2008 11:59 am Reply with quote

Wow! I have never heard of anyone being 100% successful in tapping Gallery so my hat is off to you!

Thank you for sharing this!

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Brujo64
Newbie
Newbie



Joined: Jun 02, 2007
Posts: 2

PostPosted: Sat Jan 05, 2008 12:46 pm Reply with quote

the gallery tap works for me and hopefull for others to... and it is not 100%, i missed to shorten some links like the Diashow.....

and thanks to you because i using your scripts Shortlinks & Dyn Titles on my site...

with best regards
Brujo
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Jan 05, 2008 3:27 pm Reply with quote

Sounds good. Thanks again.
 
View user's profile Send private message Visit poster's website
supporters
Newbie
Newbie



Joined: Oct 05, 2008
Posts: 1

PostPosted: Sun Oct 05, 2008 3:46 pm Reply with quote

Quote:
Notice: there was a change in the gallery code around the Version 1.5.2 and for this you have to modify the $urlbefore with your domain name.


Which file are you modifying here?

Thanks!
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch