You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 54 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Google Tapping, order important? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
georgiaguy
Sergeant
Sergeant


Joined: Jun 13, 2003
Posts: 98


PostPosted: Mon Nov 03, 2003 10:04 am Reply with quoteBack to top

I know that the order of entries in urlin and urlout must match, but, does it matter what order i put them in within a particular module? IE, will putting the "base" entry first operate as a catch-all that should be put last so that all other matches can be made?
the reason i ask is that i have this:
Code:
"'(?<!/)modules.php\?name=gallery'",
"'(?<!/)modules.php\?op=modload&name=gallery&file=index&include=albums.php&set_albumListPage=([0-9]*)'",
"'(?<!/)modules.php\?full=1&set_albumName=([a-zA-Z0-9_-]*)&id=([a-zA-Z0-9_-]*)&op=modload&name=gallery&file=index&include=view_photo.php'",
"'(?<!/)modules.php\?op=modload&name=gallery&file=index&include=albums.php'",
"'(?<!/)modules.php\?set_albumName=([a-zA-Z0-9_-]*)&id=([a-zA-Z0-9_-]*)&op=modload&name=gallery&file=index&include=view_photo.php'",
"'(?<!/)modules.php\?set_albumName=([a-zA-Z0-9_-]*)&op=modload&name=gallery&file=index&include=view_album.php&page=([0-9]*)'",
"'(?<!/)modules.php\?set_albumName=([a-zA-Z0-9_-]*)&op=modload&name=gallery&file=index&include=view_album.php'",
"'(?<!/)modules.php\?set_fullOnly=([a-zA-Z0-9_-]*)&return=modules.php?id=([a-zA-Z0-9_-]*)&op=modload&name=gallery&file=index&include=view_photo.php&cmd=&op=modload&name=gallery&file=index&include=do_command.php'"

and
Code:
"gallery.html",
"gallery-page\\1.html",
"gallery-photo_\\1-\\2-full.html",
"gallery.html",
"gallery-photo_\\1-\\2.html",
"gallery-album_\\1-page\\2.html",
"gallery-album_\\1.html",
"gallery-photo_\\2-\\1.html"
in my header.php file, and
Code:
RewriteRule ^gallery.html modules.php?name=gallery
RewriteRule ^gallery-page([0-9]*).html modules.php?op=modload&name=gallery&file=index&include=albums.php&set_albumListPage=$1
RewriteRule ^gallery.html modules.php?op=modload&name=gallery&file=index&include=albums.php
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.php
RewriteRule ^gallery-photo_([a-zA-Z0-9_-]*)-([a-zA-Z0-9_-]*)-full.html modules.php?full=1&set_albumName=$1&id=$2&op=modload&name=gallery&file=index&include=view_photo.php
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
RewriteRule ^gallery-album_([a-zA-Z0-9_-]*).html modules.php?set_albumName=$1&op=modload&name=gallery&file=index&include=view_album.php
RewriteRule ^gallery-photo_-([a-zA-Z0-9_-]*)-(full|regular).html modules.php?set_fullOnly=$2&return=modules.php?id=$1&op=modload&name=gallery&file=index&include=view_photo.php&cmd=&op=modload&name=gallery&file=index&include=do_command.php
in .htaccess. however the lines that relate to the fullsized image do not work. in one case, the URL is rewritten, but directs to gallery.html, and in another case, it isn't rewritten at all.
see http://phpnuke.nukedgallery.net/gallery.html click any album. view a photo, then click to view fullsized (either by clicking the image itself, or the full/normal link in the top right).
Find all posts by georgiaguyView user's profileSend private message
Audioslaved
Elite Nuker
Elite Nuker


Joined: Jun 14, 2003
Posts: 420

Location: Hawaii and The Fan Forum

PostPosted: Mon Nov 03, 2003 2:38 pm Reply with quoteBack to top

I have found that putting entries in order from longest URL to shortest is the best way to go in the header.php. I say this because everything gets thrown into an array and seems to get parsed in that order, so if you have your main gallery statement above others that use modules.php?name=gallery, they will more than likely get parsed first. One way around this I have found is to put something like (?!&) at the end of the statement in the header. This should tell it that it should not follow and & sign, meaning it should only convert the URL modules.php?name=gallery and only that. One thing I ran into with the forum tap, was by having the forums.html conversion above everything else, it would rewrite anything that contained modules.php?name=Forums before the other conversions would take place, which happened to be about every URL, moving that conversation to the very bottom eliminated the problem. So should order matter, no, not when we all get spun up on Regular Expressions for PCRE moreso, but as of right now, I would say yes.

_________________
GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/

The Audioslave Fan Forum
http://www.audioslaved.com
Find all posts by AudioslavedView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.257 Seconds - 477 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::