I'm looking at the info in the link you give and at the code of template-functions.php. I see:
/**
function getTotalImagesIn($album) {
global $_zp_gallery;
$sum = $album->getNumImages();
$subalbums = $album->getSubalbums(0);
while (count($subalbums) > 0) {
$albumname = array_pop($subalbums);
$album = new Album($_zp_gallery, $albumname);
$sum = $sum + getTotalImagesIn($album);
}
return $sum;
}
====== NOT ALL THE SLASHES AND STARS COPY OVER FROM THE ACTUAL CODE!!!!!========
in the file but don't see either showing on the Gallery pages for each album.
Added the code to template-functions.php, wasn't sure if there was specific spot so put here:
$_zp_albums = $search->getAlbums($all ? 0 : $_zp_page);
/ RBC 22-Apr-2008 added to show number of images /
echo getNumImages();
} else {
$_zp_albums = $_zp_current_album->getSubAlbums($all ? 0 : $_zp_page, $sorttype);
}
} else {
no number is appearing on the Gallery pages
I replaced all code within and with the above (I closed the last . Added the code to index.php in my DEFAULT theme. Looked at the Gallery page and the Thumbnail page of the album and no display of how many images in album.
Removed code from template-functions.php as previously understood it went.
Sorry, I don't understand what is so difficult to add getNumImages() within the next_album() loop on index.php or album.php. My example above was more than clear and exactly from index.php....
You don't have to replace any code, just add getNumImages like shown above.