Hi there,

Is there any way to print node counts in the node.tpl?
I am printing my node counts by drupal's statistics module however i am having a problem:

$statistics = statistics_get($node->nid);
                            print format_plural($statistics['totalcount'], '1 read', '@count');

or just print $links;

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.
So i decided to show only unqiue visits and installed advanced statistics module.

but i still getting the same result. I was wondering if this plugin can help with this issue.

Thanks alot in advance.

Shiva

Comments

drupalnesia’s picture

Version: 6.x-2.9 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (fixed)

7.x-1.0-beta1: New: Views integration
7.x-1.0-beta2: New: Save uid, nid, type, browser name, browser version, platform

Since Views was supported and nid was recorded then you can use utilize them in your tpl.php file.