echo "Image ". imageNumber()." of ".getNumImages() for example. All documentated on our functions guide by the way.
Since yout set the number of images per page you can use getOption('images_per_page') to calculate the x to y of z number thing.
the printf()/gettext() in your example is just for translation support via gettext. If you don't need that at all you can skip that. Without this would read echo "Images ".$firstimage." - ".$lastimage. " of ".getNumImages()
Thanks, the "Image # of #" works beautifully. Though with this echo "Images ".$firstimage." - ".$lastimage. " of ".getNumImages(); I get this output Images - of 76?
Edit // Never mind, just had to change "firstimage" to "firstImage", and "lastimage" to "lastImage". Thanks for the help!
getNumAlbums(); prints the number of total albums in the index, but is there a way to print the total number of images in all the albums as well? Couldn't find that in the functions guide. Same with returning something like "Albums 1-20 of 28" if I've set ZP to show 20 albums per page -- are these things possible?
part of the code you have quoted is not related to the n-m of p so you can delete
if (isLandscape()) { $iw = 89; $ih = NULL; $cw = 89; $ch = 67; } else { $iw = NULL; $ih = 89; $ch = 89; $cw = 67;
being careful, of course to not screw up the if/else sets.
look at the Effervescence+ theme customfunctions. It has a printNofM() function.