i was using the code above but needed a bit more flexibility, and the page was loading pretty slowly. so i figured out another way to print all subalbum images within a particular album
`
function getsiblingimages() {
global $_zp_current_album;
$parentalbum = $_zp_current_album->getParent();
$siblingalbums = $parentalbum->getSubalbums();
foreach ($siblingalbums as $siblingalbum) {
$sibalbumobject = new Album($parentalbum->gallery, $siblingalbum);
$sibimagefilenames = $sibalbumobject->getimages();
foreach ($sibimagefilenames as $sibfilename) {
$sibimageobject = new Image($sibalbumobject, $sibfilename);
$sibimage = $sibimageobject->getCustomImage(null, null, 50, null, null, null, null);
echo '[img]'.$sibimage.'[/img]';
}
}
}
echo getsiblingimages();
`
i am by no means a PHP expert, but the code works for my purposes and give me better layout flexibilty, and loads a bit faster than the one above...maybe this is useful for someone
how did i use it and why? i have an album "portfolio". this album contains about 30 subalbums with no more than 3 images within them. my photographer client wants to display his photos as spreads, so, when looking at a subalbum, 1-3 images show up pretty large. also on this subalbum page is the code above (with links and more containers added). this code serves as a horizontal navigation bar, where every subalbum of "portfolio" is represented by all of its images as a mini-spread. nice.
also, i just wanted to give a huge huge thanks to the developers for giving subalbums the attention they deserve in the new version...among everything else....keep on truckin, zenphoto has been incredibly useful for me and really user friendly for my clients...