I just decided I will take a look if I can add something to the hitcounter plugin itself as that would probably be fitting. Something to choose what total hitcount you wish (all item types, only certain ones etc).
A access check is probably not really needed I guess although not visible/protected items would also be counted.
As usual right within the code and the same here:
https://docs.zenphoto.org/1.5.3/function-getTotalHitcounter.html
It just returns the count, what you do with it is up to you.
Hi,
I have already had a look there.
But I can't get it working.
Putting this code in an codeblock does not work.
Not working means:
There is no output and the footer will not be loaded.
It does well with the normal hitcounter:
I took the code frome here:
https://forum.zenphoto.org/discussion/4812/hit-counter
It seems the problem is how the array is putted in:
$h = getTotalHitcounter('albums', 'images', 'news', 'news_categories', 'pages');
$h = getTotalHitcounter();
Will give a result of 0, which makes sense because the array is empty.
Already tried 'news' or news and also "news".
Would be great if you can give me a hint.