Member
Member
weweje   2010-03-17, 15:49
#1
Hello again.
I'm certainly missing something here but when I use printCustomAlbumThumbMaxSpace() to display a thumb per gallery inside gallery.php, the function returns a random image extracted from each gallery.

I don't know any way to specifie it to choose only the first image of each gallery...
Could you help me?

`
<?php while (next_album()): ?>

<div class="thumb">
>:'); ?> <?php echo getBareAlbumTitle();?>">

<?php printCustomAlbumThumbMaxSpace(getBareAlbumTitle(), '800', '300', null, null, null); ?>

<div class="albumdesc">
<?php printAlbumTitle(); ?>

<?php echo truncate_string(getAlbumDesc(), 45); ?>



</div>
</div>
<?php endwhile; ?>
`
Administrator
Administrator
acrylian   2010-03-17, 17:15
#2
Albumthumbs are always randomly taken from the gallery if you don't set a fixed album thumb on the album admin page.
Member
Member
sbillard   2010-03-17, 19:10
#3
Note also that you can change the default thumbnail selection criteria from the reset thumbnails utility on the overview page
Member
Member
weweje   2010-03-17, 23:39
#4
yeeeeeeeeeeeeeeeeees!
thank you!
the "choose this image as album cover " had just done the trick.
So evident I didn't saw it Wink
And the shuffle mode from the reset thumbnails page is a way back.
This way one can switch between fixed and random images with the same function.

Each step I make into that soft proves me its totally clever conception - the code documentation is also a masterpiece.
As a webdesigner popping out off a loads of bloated web apps, coding with zenphoto is a holyday trip.

Thanks again Mr billard, Mr acrylian, and the others regular contributors.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.