Advanced search  

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

Pages: [1]   Go Down

Author Topic: sort order in cookies  (Read 3441 times)

0 Members and 1 Guest are viewing this topic.

E. William

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
sort order in cookies
« on: November 28, 2013, 10:39:47 am »

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.

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: sort order in cookies
« Reply #1 on: November 28, 2013, 02:21:24 pm »

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?
Logged

E. William

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: sort order in cookies
« Reply #2 on: November 28, 2013, 08:29:13 pm »

That's ok, I'll disable it. I know how :).
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.