Active
Project:
Statistics Advanced
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2011 at 11:48 UTC
Updated:
11 Apr 2011 at 11:48 UTC
Hi there,
I want to print the number of unique visits of each node in the node.tpl.
before installing this module i was doing something like this in my node.tpl:
$statistics = statistics_get($node->nid);
print format_plural($statistics['totalcount'], '1 read', '@count');however, because i have a block in my page which loads the same node type to show a menu kind of thing... therefore everytime I refresh the page it increments it by 2.
That's why i decided to show only unqiue visits and installed advanced statistics module.
now, how can i print the numbers in my template??
Thanks alot in advance.
Sh