I once again,
it is possible to insert in the Garland theme statistics?
something like this:
xxx visitors have viewed this page
xxx albums (xx unpublished)
xxx pictures (xx unpublished)
in the individual albums about something like:
xxx visitors have viewed this album
xxx pictures in this album include subalbums.
best wishes
kalli
Comments
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetHitcounter
xxx albums (xx unpublished)
http://www.zenphoto.org/documentation/classes/Gallery.html#methodgetNumAlbums
xxx pictures (xx unpublished)
http://www.zenphoto.org/documentation/classes/Gallery.html#methodgetNumImages
in the individual albums about something like:
xxx visitors have viewed this album
See above
xxx pictures in this album include subalbums.
http://www.zenphoto.org/documentation/classes/Album.html#methodgetNumImages
I strongly recommend to read this tutorial before using the class methods:
http://www.zenphoto.org/news/zenphotos-object-model-framework
PHP knowledge about object orientation of use.
`
</ h1>
<? php
$ t = $ _zp_gallery-> getNumImages ();
$ c = $ $ t-_zp_gallery-> getNumImages (true);
if ($ c> 0) {
printf (ngettext ('% 1 $ u image', '% 1 $ u images', $ t), $ t, $ c);
Else {}
printf (ngettext ('% u image', '% u images ", $ t), $ t);
}
> </ h2>
</ li>
<? php
$ t = $ _zp_gallery-> getNumAlbums (true);
$ c = $ $ t-_zp_gallery-> getNumAlbums (true, true);
if ($ c> 0) {
printf (ngettext ('% 1 $ u album', '% $ 1 albums u', $ t), $ t, $ c);
Else {}
printf (ngettext ('% u album', '% u albums', $ t), $ t);
}
> </ h2>
</ li>
</ ul>
</ div>
</ div>
`
when an album is called, this display disappears, so far so good.
You should see the statistics for the album.
What do I have to enter to a statistic appears album.php in?
rgds
kalli
I'll read first.
Thanks for the info.
kalli
I have found what I was looking for.
Thanks for the information.
The result you can watch our here:
http://thw-jugend-frankenberg.de/zenphoto/index.php
thank you
kalli