coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: johnfelipe on September 27, 2013, 08:43:49 AM

Title: Random image for all Album thumbnai uploaded
Post by: johnfelipe 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
Title: Re: Random image for all Album thumbnai uploaded
Post by: Αndré on September 27, 2013, 09:24:13 PM
I don't get what you're asking for. Please describe more detailed.
Title: Re: Random image for all Album thumbnai uploaded
Post by: johnfelipe on September 29, 2013, 08:00:40 AM
Please see my attach, i need upload all random for default, not latest upload

Tnks
Title: Re: Random image for all Album thumbnai uploaded
Post by: Αndré 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?
Title: Re: Random image for all Album thumbnai uploaded
Post by: johnfelipe on October 03, 2013, 10:10:56 PM
both

Tnks
Title: Re: Random image for all Album thumbnai uploaded
Post by: Αndré 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:
QuoteUPDATE cpg15x_albums SET thumb = '-1'
(maybe you need to adjust the table prefix).
Title: Re: Random image for all Album thumbnai uploaded
Post by: johnfelipe 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
Title: Re: Re: Random image for all Album thumbnai uploaded
Post by: Jeff Bailey on October 23, 2013, 09:32:50 PM
Quote from: Αndré 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.

Did you complete this part? or did it not work?