1.4.8: spiderfrindly plugin ignores sort order 1.4.8: spiderfrindly plugin ignores sort order
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

1.4.8: spiderfrindly plugin ignores sort order

Started by Zarzal, July 16, 2006, 12:24:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zarzal

Hi,

my servernow allow me to use the mod_rewrite and so I try ot the spider frindly plugin in Coppermine 1.4.8
Seems to works but if I enter one of my gallerys I see that my sort order of the photos is ignored. When I disable the plugin the sort order is back. Can anyone confirm this and have maybe a solution?

/edit: I test it again ... strange ... now it work as it should. I must try a bit more. This post can be deleted.

Joachim Müller

We don't delete threads. They stay as a reference for others. Marking accordingly.

garry

#2
It was the same problem untill I added some lines into original files ht.txt and codebase.php

in ht.txt -
RewriteRule thumbnails-([a-z0-9]*)-page-([0-9]*)-sort-([a-z]*)\.html thumbnails.php?album=$1&page=$2&sort=$3 [NC]
before the line:
RewriteRule thumbnails-([a-z0-9]*)-page-([0-9]*)\.html thumbnails.php?album=$1&page=$2 [NC]

in codebase.php -
    $html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)(\&|\&)page=([0-9]+)(\&|\&)sort=([a-z]+)/i','thumbnails-$1-page-$3-sort-$5.html',$html);
before the line:
    $html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)(\&|\&)page=([0-9]+)/i','thumbnails-$1-page-$3.html',$html);

Now it works properly.

garry

One more addition to make correct links from user-profile (lastupby and lastcomby):

in ht.txt

add line:
RewriteRule thumbnails-([0-9a-z]*)-user-([0-9]*)\.html thumbnails.php?album=$1&uid=$2 [NC]
before:
RewriteRule thumbnails-([0-9a-z]*)\.html thumbnails.php?album=$1 [NC]

add line:
RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)-user-([0-9]*)\.html displayimage.php?album=$1&cat=$2&pos=$3&uid=$4 [NC]
before:
RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&cat=$2&pos=$3 [NC]

in codebase.php

add line:
    $html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)(\&|\&)uid=([0-9]+)/i','thumbnails-$1-user-$3.html',$html);
before:
    $html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)/i','thumbnails-$1.html',$html);

add line:
    $html = preg_replace('/displayimage\.php\?album=([a-z0-9]+)(\&|\&)cat=([\-0-9]+)(\&|\&)pos=([\-0-9]+)(\&|\&)uid=([\-0-9]+)/i','displayimage-$1-$3-$5-user-$7.html',$html);
before:
    $html = preg_replace('/displayimage\.php\?album=([a-z0-9]+)(\&|\&)cat=([\-0-9]+)(\&|\&)pos=([\-0-9]+)/i','displayimage-$1-$3-$5.html',$html);

and reinstall plugin.

garry

Sorry, just forget a couple of lines  :) :

in ht.txt

add line:
RewriteRule thumbnails-([0-9a-z]*)-([\-]?[0-9]*)-user-([0-9]*)-page-([0-9]*)\.html thumbnails.php?album=$1&cat=$2&uid=$3&page=$4 [NC]
before:
RewriteRule thumbnails-([a-z0-9]*)-([\-]?[0-9]*)-page-([0-9]*)\.html thumbnails.php?album=$1&cat=$2&page=$3 [NC]

in codebase.php

add line:
    $html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)(\&|\&)cat=([\-0-9]+)(\&|\&)uid=([0-9]+)(\&|\&)page=([0-9]+)/i','thumbnails-$1-$3-user-$5-page-$7.html',$html);
before:
    $html = preg_replace('/thumbnails\.php\?album=([a-z0-9]+)(\&|\&)cat=([\-0-9]+)(\&|\&)page=([0-9]+)/i','thumbnails-$1-$3-page-$5.html',$html);

treret


Zarzal

I'm not sure to open a new thread or replying in my own. Its just a note.

After doing a servermove I encounter trouble with rewrite. I get 403 errors. The server generel support it and I after some comparing I bring it to work again.
I disable the following line in .htaccess by placing a # in front:
# Options FollowSymLinks SymLinksIfOwnerMatch

After doing this, my rewrite works again.

For safety I add the following:

## make sure nobody gets the htaccess files
<Files ~ "^[\._]ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>