forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: E. William on November 28, 2013, 10:39:47 am

Title: sort order in cookies
Post by: E. William 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. (http://lovedollgallery.com/gallery/thumbnails.php?album=8)

Title: Re: sort order in cookies
Post by: Αndré 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?
Title: Re: sort order in cookies
Post by: E. William on November 28, 2013, 08:29:13 pm
That's ok, I'll disable it. I know how :).