Thumbnails Thumbnails
 

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]

Main Menu

Thumbnails

Started by KittyBloom98, August 30, 2016, 12:34:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

KittyBloom98

I was looking at a old post where someone wanted to edit their thumbnail views and Andre provided them with a code and all. I followed Andre's instructions and it work fine but it edit's all your albums thumbnail views, so is there a way to change the thumbnail views of one specific album not all the thumbnail views of all the albums in your gallery?

Αndré

Please post a link of the other thread, so we don't have to re-create everything from scratch.

KittyBloom98

Quote from: Αndré on August 30, 2016, 02:04:57 PM
Please post a link of the other thread, so we don't have to re-create everything from scratch.

Here you go http://forum.coppermine-gallery.net/index.php/topic,78552.20.html

Αndré

I assume you want to edit this script, as I already posted in the other thread how to update the views for a specific album. Right?

KittyBloom98

Where exactly did you tell us how to edit a specific album? And yes that is what I meant.

Αndré

Quote from: KittyBloom98 on September 06, 2016, 07:27:50 AM
Where exactly did you tell us how to edit a specific album?

Have you actually clicked the link? It directs you to this post:
Quote from: Αndré on January 13, 2016, 04:32:39 PM
Set number:
UPDATE cpg15x_pictures SET hits = 123 WHERE aid = 7
(don't forget to adjust the table prefix "cpg15x_" and the values for hits and aid).

Add number:
UPDATE cpg15x_pictures SET hits = hits + 123 WHERE aid = 7

Multiply:
UPDATE cpg15x_pictures SET hits = hits * 123 WHERE aid = 7

KittyBloom98

Sorry, I managed to do the query but I was wondering that script you posted above is there a way to modify/edit where it displays a random number between 1 and 10?

Αndré

Quote from: KittyBloom98 on October 03, 2016, 11:29:31 AM
is there a way to modify/edit where it displays a random number between 1 and 10?

Yes, in the other link I already posted: http://forum.coppermine-gallery.net/index.php/topic,51863.msg380719.html#msg380719