Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How to prevent visitors from changing the order of the thumbnails?  (Read 6968 times)

0 Members and 1 Guest are viewing this topic.

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza

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
Logged

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: How to prevent visitors from changing the order of the thumbnails?
« Reply #1 on: June 19, 2013, 09:43:26 am »

Edit thumbnails.php

find:
Quote
js_include('js/thumbnails.js');

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

Best regards.
Logged

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza
Re: How to prevent visitors from changing the order of the thumbnails?
« Reply #2 on: June 19, 2013, 10:07:22 am »

Edit thumbnails.php

find:
and replace:
Best regards.

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

Best regards!

KchoPrro
Logged

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza
Re: How to prevent visitors from changing the order of the thumbnails?
« Reply #3 on: June 20, 2013, 08:16:13 pm »

works perfectly, thank you very much!  :) :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: How to prevent visitors from changing the order of the thumbnails?
« Reply #4 on: August 21, 2013, 02:29:08 pm »

For your information, there's also a solution without code modification.
Quote from: CHANGELOG.txt
2012-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".
Logged

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza
Re: Re: How to prevent visitors from changing the order of the thumbnails?
« Reply #5 on: August 22, 2013, 09:47:00 am »

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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: How to prevent visitors from changing the order of the thumbnails?
« Reply #6 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".
Logged

KchoPrro

  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 296
    • Adolfo Ventas - Naturaleza Andaluza
Re: Re: How to prevent visitors from changing the order of the thumbnails?
« Reply #7 on: August 22, 2013, 11:54:23 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
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.