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: Thumbnails  (Read 5702 times)

0 Members and 1 Guest are viewing this topic.

KittyBloom98

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Thumbnails
« on: August 30, 2016, 12:34:30 pm »

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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Thumbnails
« Reply #1 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.
Logged

KittyBloom98

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Re: Thumbnails
« Reply #2 on: August 30, 2016, 10:21:02 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Thumbnails
« Reply #3 on: August 31, 2016, 10:24:15 am »

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?
Logged

KittyBloom98

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Thumbnails
« Reply #4 on: September 06, 2016, 07:27:50 am »

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Thumbnails
« Reply #5 on: September 06, 2016, 09:02:43 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:
Set number:
Code: [Select]
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:
Code: [Select]
UPDATE cpg15x_pictures SET hits = hits + 123 WHERE aid = 7
Multiply:
Code: [Select]
UPDATE cpg15x_pictures SET hits = hits * 123 WHERE aid = 7
Logged

KittyBloom98

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Thumbnails
« Reply #6 on: October 03, 2016, 11:29:31 am »

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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Thumbnails
« Reply #7 on: June 30, 2017, 04:38:57 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.