Album thumb image

How does EasyPhpAlbum determine which image in an album it will use for the album icon? I've been using index.jpg to choose my own and that's perfectly fine but I'm still curious and haven't been able to figure it out with (limited) tests. Thank you.

Re:Album thumb image

I see. I did not understand that previously. I thought the configuration had to stay the same in the subdirectories. So I sort from newest to oldest in the abum and on the start page I sort from oldest to newest to have the most recent thumbnail. Thanks for the help.

Re:Album thumb image

Well this is a complex issue, the albums have their own configuration, the main page also has its own configuration.

You will have to change the main page ordering method to see any changes, it will not look into the ordering method of the individual albums.

An alternative would be to display an icon instead (include an index.jpg image in each album)...

Re:Album thumb image

I removed date from the initial Album Page and this seems solved now. Even though the other solution would be nicer ... it makes no sense to start the album with the most recent picture but to show the oldest one as Album thumbnail.

Re:Album thumb image

if (substr($firstimage,0,strrpos($firstimage,'.'))=='index') {
array_push($file_names,$file . '/' . $firstimage);
break;

seems to be right here, but I dont know how to change it to last picture. Any hints ?Post edited by Steve, at 2006/01/27 2332

Re:Album thumb image

admin wrote
This will be the first image normally displayed in the album. Images in an album can be sorted acc. to name, date etc.

If you have any index.png/jpg/gif image this will be used as the albums icon.

I used Your awesome Album to show pictures from newest to oldest, the problem I have is that the thumbnail and the text always shows the oldest picture and not the newest.

I don't understand much about .php but it seems that around Lines 1048-1065 the albums/directories are read, but I cannot find where to change the thumbnail picture from first to last, so I will have newest picture first in Album and its date in thumbnail. Any hints ?

ThanksPost edited by Steve, at 2006/01/25 1307

Re:Album thumb image

This will be the first image normally displayed in the album. Images in an album can be sorted acc. to name, date etc.

If you have any index.png/jpg/gif image this will be used as the albums icon.