Hi,
I want to see on my index.php the total images views per album including subalbums. I've done it at the moment this way:
in my image.php I have:
So everytime the image is viewed it adds 1 to the image hitcounter and 1 to the albums hitcounter.
Therefore with on index.php I get the total views of that album.
The only problem with this workaround is, it doesn't work anymore if I work with subalbums. Is there a code that gives the total image views per album including subalbums?
Like does it for the total number of images.
I hope you understand my problem (well its not huge a problem though, I still enjoy my zenphoto very much),
cheers,
Jeroen
you can pass a the id of an album or image directly to the hitcounter() function to get it for a specific album/image. If you know the ids of them all you can summarize them. There is of course a way to do that more convenient via the classes. Another way would be to use a db query to get them. But I currently don't have the time to try that.