Search Engine Friendly URLs v1.3History
v1.3 (2008.06.03) (Makc666)---------------------------------
Lines added to: codebase.php---------------------------------
- $html = preg_replace('/thumbnails\.php\?album=lastupby(\&|\&)uid=([0-9]+)/i','thumbnails-lastupby-$2.html',$html);
- $html = preg_replace('/thumbnails\.php\?album=lastcomby(\&|\&)uid=([0-9]+)/i','thumbnails-lastcomby-$2.html',$html);
- $html = preg_replace('/displayimage\.php\?album=lastupby(\&|\&)cat=([\-0-9]+)(\&|\&)pos=([\-0-9]+)(\&|\&)uid=([0-9]+)/i','displayimage-lastupby-$2-$4-$6.html',$html);
- $html = preg_replace('/displayimage\.php\?album=lastcomby(\&|\&)cat=([\-0-9]+)(\&|\&)pos=([\-0-9]+)(\&|\&)uid=([0-9]+)/i','displayimage-lastcomby-$2-$4-$6.html',$html);
- $html = preg_replace('/displayimage\.php\?pid=([\-0-9]+)(\&|\&)fullsize=1/i','displayimage-$1-fullsize.html',$html);
- $html = preg_replace('/profile\.php\?uid=([0-9]+)/i','profile-$1.html',$html);
- $html = preg_replace('/ratepic\.php\?pic=([0-9]+)(\&|\&)rate=([0-5])/i','ratepic-$1-$3.html',$html);
---------------------------------
---------------------------------
Lines added to: ht.txt---------------------------------
- RewriteRule thumbnails-lastupby-([a-z0-9]*)\.html thumbnails.php?album=lastupby&uid=$1 [NC]
- RewriteRule thumbnails-lastcomby-([a-z0-9]*)\.html thumbnails.php?album=lastcomby&uid=$1 [NC]
- RewriteRule displayimage-lastupby-([\-]?[0-9]+)-([\-]?[0-9]+)-([0-9]+)\.html displayimage.php?album=lastupby&cat=$1&pos=$2&uid=$3 [NC]
- RewriteRule displayimage-lastcomby-([\-]?[0-9]+)-([\-]?[0-9]+)-([0-9]+)\.html displayimage.php?album=lastcomby&cat=$1&pos=$2&uid=$3 [NC]
- RewriteRule displayimage-([\-]?[0-9]+)-fullsize\.html displayimage.php?pid=$1&fullsize=1 [NC]
- RewriteRule profile-([0-9]*)\.html profile.php?uid=$1 [NC]
- RewriteRule ratepic-([0-9]*)-([0-5])\.html ratepic.php?pic=$1&rate=$2 [NC]
---------------------------------
Fixes for:1. User Name link is now ok on page:
http://coppermine-gallery.net/demo/cpg14x/displayimage.php?pos=-367In line:
Album name: RedFalcon / Architecture
2. When you click on that User Name you get to page:
http://coppermine-gallery.net/demo/cpg14x/profile.php?uid=22286On that page two links:
- Last uploaded file. Click to see all uploads by RedFalcon
- Last comment. Click to see all comments made by RedFalcon
now also have a correct links
3. When you click on any of this two links:
- Last uploaded file. Click to see all uploads by RedFalcon
- Last comment. Click to see all comments made by RedFalcon
you get to page:
http://coppermine-gallery.net/demo/cpg14x/thumbnails.php?album=lastupby&uid=22286or
http://coppermine-gallery.net/demo/cpg14x/thumbnails.php?album=lastcomby&uid=22286Urls on that pages are now also OK.
4. Fullsize images now also have Friendly URLs
http://coppermine-gallery.net/demo/cpg14x/displayimage.php?pid=325&fullsize=1How to Update:- Backup your Galleries .htaccess file
- Delete Old Version via Config
- Re-apload plugin's files with new one
- Update manually .htaccess if you have your own lines there, or you can update it automatically via plugin's install if you don't have such lines
- Install New Vesion via Config with overwriting .htaccess if you don't have your own lines there
UPDATED: Search for the latest version in this thread.