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: Random image for all Album thumbnai uploaded  (Read 3864 times)

0 Members and 1 Guest are viewing this topic.

johnfelipe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 83
Random image for all Album thumbnai uploaded
« on: September 27, 2013, 08:43:49 am »

Hi, please tell me if possible change default Last uploaded for Random image for all image uploaded

Tnks
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Random image for all Album thumbnai uploaded
« Reply #1 on: September 27, 2013, 09:24:13 pm »

I don't get what you're asking for. Please describe more detailed.
Logged

johnfelipe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 83
Re: Random image for all Album thumbnai uploaded
« Reply #2 on: September 29, 2013, 08:00:40 am »

Please see my attach, i need upload all random for default, not latest upload

Tnks
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Random image for all Album thumbnai uploaded
« Reply #3 on: October 01, 2013, 05:12:38 pm »

Do you want to set it as default for already existing albums or just new created albums?
Logged

johnfelipe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 83
Re: Random image for all Album thumbnai uploaded
« Reply #4 on: October 03, 2013, 10:10:56 pm »

both

Tnks
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Random image for all Album thumbnai uploaded
« Reply #5 on: October 04, 2013, 11:23:07 am »

This has to be done directly in your database, with a tool like phpMyAdmin.

To set it as default for new albums, open the albums table and change the default value for thumb to -1.

To set it as default for all existing albums, execute this query:
Quote
UPDATE cpg15x_albums SET thumb = '-1'
(maybe you need to adjust the table prefix).
Logged

johnfelipe

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 83
Re: Random image for all Album thumbnai uploaded
« Reply #6 on: October 23, 2013, 02:04:49 am »

Done it works, and now for new created albums?, default and dont change in properties albums?

Tnks
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Re: Random image for all Album thumbnai uploaded
« Reply #7 on: October 23, 2013, 09:32:50 pm »

This has to be done directly in your database, with a tool like phpMyAdmin.

To set it as default for new albums, open the albums table and change the default value for thumb to -1.

Did you complete this part? or did it not work?
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 19 queries.