coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: KchoPrro on June 19, 2013, 09:03:31 AM

Title: How to prevent visitors from changing the order of the thumbnails?
Post by: KchoPrro on June 19, 2013, 09:03:31 AM
How to prevent visitors from changing the order of the thumbnails?

The help menu says;

"This option determines the default order in which thumbnails should be displayed. Your visitors can override this by selecting a custom sort order from the sort buttons above the albums (unless you have disabled that option in your custom theme)."

How I can turn this off?, Can not find it in the settings.

Thank you!

KchoPrro
P.D. My Gallery (http://www.adolfoventas.es/galeria)
Title: Re: How to prevent visitors from changing the order of the thumbnails?
Post by: Niecher on June 19, 2013, 09:43:26 AM
Edit thumbnails.php

find:
Quotejs_include('js/thumbnails.js');

and replace:
Quote//js_include('js/thumbnails.js');

Best regards.
Title: Re: How to prevent visitors from changing the order of the thumbnails?
Post by: KchoPrro on June 19, 2013, 10:07:22 AM
Quote from: Niecher on June 19, 2013, 09:43:26 AM
Edit thumbnails.php

find:
and replace:
Best regards.

Ok, I'll change it today. Thank you very much!  ;)

Best regards!

KchoPrro
Title: Re: How to prevent visitors from changing the order of the thumbnails?
Post by: KchoPrro on June 20, 2013, 08:16:13 PM
works perfectly, thank you very much!  :) :)
Title: Re: How to prevent visitors from changing the order of the thumbnails?
Post by: Αndré on August 21, 2013, 02:29:08 PM
For your information, there's also a solution without code modification.
Quote from: CHANGELOG.txt2012-07-06 [A] Added hidden feature to toggle the display of the sort buttons on the thumbnail page {eenemeenemuu}

The corresponding config value in the database is named "custom_sortorder_thumbs", which has to be set to "0".
Title: Re: Re: How to prevent visitors from changing the order of the thumbnails?
Post by: KchoPrro on August 22, 2013, 09:47:00 AM
Quote from: Αndré on August 21, 2013, 02:29:08 PM
For your information, there's also a solution without code modification.
The corresponding config value in the database is named "custom_sortorder_thumbs", which has to be set to "0".

Thanks for helping me.

The solution Niecher I said, just hiding the buttons, the order was not correct.

Exactly what I have to change?, You must forgive me but I'm no expert in programming, if you could give me any more information I'd appreciate it.

Regards

KchoPrro
Title: Re: How to prevent visitors from changing the order of the thumbnails?
Post by: Αndré on August 22, 2013, 10:26:19 AM
Open the config table in your Coppermine MySQL database with a tool like phpMyAdmin, search for the row "custom_sortorder_thumbs" and set it from "1" to "0".
Title: Re: Re: How to prevent visitors from changing the order of the thumbnails?
Post by: KchoPrro on August 22, 2013, 11:54:23 AM
Quote from: Αndré on August 22, 2013, 10:26:19 AM
Open the config table in your Coppermine MySQL database with a tool like phpMyAdmin, search for the row "custom_sortorder_thumbs" and set it from "1" to "0".

Ah! Very simple, thank you very much for the help!, Just solved the problem!

Regards

KchoPrro