Hi,
I have already had a look there.
But I can't get it working.
<?php
$h = getTotalHitcounter('albums', 'images', 'news', 'news_categories', 'pages');
if ($h == 1) {
echo "".gettext('1 view')."
";
} else {
echo "".sprintf(gettext('%u views'),$h)."
";
}
?>
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:
<?php
$h = getHitcounter();
if ($h == 1) {
echo "".gettext('1 view')."
";
} else {
echo "".sprintf(gettext('%u views'),$h)."
";
}
?>
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.