album thumbnails album 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

album thumbnails

Started by zebraplayer, October 15, 2004, 07:15:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zebraplayer

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.

Thanks!

Tranz

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:
http://forum.coppermine-gallery.net/index.php?topic=10087.msg45392#msg45392 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. http://gallery.tu2.net/index.php?cat=32 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.

zebraplayer

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

$sql = "SELECT $select_columns FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $ALBUM_SET ORDER BY RAND() LIMIT $limit2";

And replaced it with this

$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. http://www.group101clt.com/Group101Actors/nfpicturepro/index.php?cat=3

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

What am I doing wrong?