sort order in cookies sort order in cookies
 

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

sort order in cookies

Started by E. William, November 28, 2013, 10:39:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

E. William

Hi everyone,

I have the default sort order set to "pa", and users can override this in the album(s), but when they override the sort order it applies to every album they visit.

What I'd like to do is to have the sort order reset to the default sort order when they visit an album (even if it's the same album), so I guess all I need to do is to keep CPG from saving the sort order in the cookie file. Unfortunately I have no idea where I can change this.

Thanks for the help.

Link to the gallery: Please be aware that this page is safe, but other pages contain adult content.


ΑndrĂ©

Quote from: E. William on November 28, 2013, 10:39:47 AM
I guess all I need to do is to keep CPG from saving the sort order in the cookie file
If it won't be saved, it will reset on every page load (e.g. if you switch to the next thumbnail page), which will result in unexpected behavior for your visitors.

To reset the sort order we could add the sort parameter to each link to thumbnail.php.

Another option would be to disable custom sorting completely.

What's your preferred solution?

E. William

That's ok, I'll disable it. I know how :).