How to prevent visitors from changing the order of the thumbnails? How to prevent visitors from changing the order of the thumbnails?
 

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

How to prevent visitors from changing the order of the thumbnails?

Started by KchoPrro, June 19, 2013, 09:03:31 AM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

KchoPrro

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

Niecher

Edit thumbnails.php

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

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

Best regards.

KchoPrro

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

KchoPrro


Αndré

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".

KchoPrro

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

Αndré

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".

KchoPrro

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