[pmwiki-users] Page Statistics - counter-dba.php

Patrick Ogay lists at basel-inside.ch
Fri Feb 11 06:56:39 CST 2005


I  improved  counter.php and added on the Site counter-dba-php
http://www.pmwiki.org/wiki/Cookbook/SimplePageCounter

I use a DBA-File (instead of a file per site)  and there is also a new 
markup  (:$SiteStats:) which displays all Couters of Pages quite nicely.
see here: http://www.blug.ch/wiki?n=Blug.Statistics

--------
I didn't arrive yet, to ** call an object from pmwiki.tmpl** (for a 
workarround I could display a global variable instead).
in pmwiki.tmpl
$[Page last modified on $LastModified, visited: $GLOBALS['po']->PageCount()]
The call in the markup  works:  
Markup('PageCount', 
'directives','/\\(:\\$PageCount:\\)/e',"\$GLOBALS['po']->PageCount()");  

I'd be greatful for a hint.


regards
Patrick Ogay




More information about the pmwiki-users mailing list