acrylian, for the moment I don't need the option any more (but I think it may be usefull for others too), I changed my template in a way that I don't use Print_album_menu any more.
But I have another question. I found the functions getNumImages and getNumSubalbums but is there also a function already available that counts the images in the subalbums?
Or some codelines to achieve the same.
I will have some toplevel albums (as catagories) wich all contains a number of subalbums.
Here I would like to show with each toplevel the total number of images and the number of subalbums (getNumSubalbums).
I know where to put it (gallery.php, div album) but I don't see directly how to get the right number.
Many thanks in advance,
No, there is no direct function to get the number of images within the subalbums of a certain album.
You have two way to get those:
via object orientation using our classes: Code a loop using the album class method getSubalbums()and create an album of each of that to get its image number and then add them together.
via MySQL: A count query using the LIKE statement as all subalbums have the name of their top level album in there name (e.g. toplevelalbum/sublevelalbum/...).