latest album: Thumbnail not showing

Hello Admin,

i'm listing the latest albums using the following code. which is not working, when it has sub albums, it is showing default zenphoto error image.

<?php
$latestalbums = array(getAlbumStatistic(20, "latest"));
foreach ($latestalbums as $latestalbum) {
printAlbumStatistic(20, "latest", $latestalbum['title']);
}
?>

Comments

  • acrylian Administrator, Developer
    Why don't you just use `printLatestAlbums(20)`. There are wrapper functions for all options. Please take a look at the functions guide. You probably need to update your Zenphoto install (you didn't say what version).
  • Hi acrylian,
    Thanks for your reply. I'm using latest ZenPhoto 1.2.2 version, but i didn't used wrapper functions, now i updated, but the problem is still there.

    For ex: The current album has sub album, but there is no images, then it is not showing thumbnail for this album.
  • acrylian Administrator, Developer
    So you have an album without images but with subalbums... Actually it should take an image from the subalbum then.. I did not notice that yet but will try to reproduce it.
  • Yes, an album without images but with subalbums. Example: http://album.mirchiwoods.com/page/top-rated-albums
Sign In or Register to comment.