Member
Member
southdreamz   2008-12-27, 01:47
#1
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']);
}
?>
Administrator
Administrator
acrylian   2008-12-27, 12:29
#2
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).
Member
Member
southdreamz   2008-12-28, 05:59
#3
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.
Administrator
Administrator
acrylian   2008-12-28, 11:41
#4
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.
Member
Member
southdreamz   2009-10-19, 17:42
#5
Yes, an album without images but with subalbums. Example: http://album.mirchiwoods.com/page/top-rated-albums
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.