Advanced search  


CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: album thumbnails  (Read 3025 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
album thumbnails
« on: October 15, 2004, 07:15:43 pm »

I asked how to change Album thumbnails before and someone referred me to the documentation.

I should have explained that I meant how to change it to a specific thumb_ file. Something other than the last uploaded or one of the files in that album. For example, I have an album called FiestWave. I have made a custom thumbnail for that album called thumb_FirstWave.jpg which I have placed in the folder where the movies for that album are in.

Now, when I go to the Update album page and I click on the album thumbnail dropdown list, I only get the options of Last Uploaded or one of the movie files I got in there uploaded.

Should the thumbnail file be called thumb_album or thumb_thriller or thumb_3 (after the category number).

I have looked in the documentation and searched the forum with all kind of querries. I'm sure I'm not the first to want to do this, but I still can't find the answer.



  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: album thumbnails
« Reply #1 on: October 15, 2004, 07:37:49 pm »

Yes, you're not the first, and the answer has been found. One solution is to upload the image that you want to use as the album thumbnail into the album. I think the reason the thumbnail isn't showing up for you is because you only put the thumbnail file without going through the process of adding the image to the album, so CPG doesn't recognize it in the database.

Then, to hide the album thumbnail from showing up in the gallery, read this: You should read the other posts for context, but that post pertains to the feature at hand.

You can see an example of this at my gallery. Notice the album called 'Stanford in Stitches'. It's for wide images whose thumbnails could mess up my layout. If you go into the album, that album image doesn't show up. It also doesn't show up in the meta albums like Random, etc.


  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: album thumbnails
« Reply #2 on: October 17, 2004, 03:01:45 am »

Hey TND,

I looked at that post and I implemented the changes to the code, but I could not detect any change whatsoever to my album.

I grabbed this

Code: [Select]
$sql = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $ALBUM_SET ORDER BY RAND() LIMIT $limit2";
And replaced it with this

Code: [Select]
$sql = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE title <> 'FirstWave.jpg' AND approved = 'YES' $ALBUM_SET ORDER BY RAND() LIMIT $limit2";
Yet the image called FirstWave.jpg still appears in the Random Files area.

Should the name of the file include the .jpg extension?

What am I doing wrong?

Pages: [1]   Go Up

Page created in 0.019 seconds with 20 queries.