tweak number of views? tweak number of views?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

tweak number of views?

Started by dawhoo, April 12, 2006, 06:31:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dawhoo

We have flash games in the gallery.  For some galleries, we have like 100 views, but 200 comments - seems odd.

Is there a way to change the way views are counted?  I tried looking around theme.php, but nothing I did seemed to make a difference.  I used a non-admin account to check views.

ANy suggestions?

cpg 1.4.2


Joachim Müller

The hits counter are unique per visitor. A person could visit a page multiple times (and post multiple comments on it), yet the hit counter doesn't increase each time he visits, but only the first time. Also, admin views aren't being taken into account at all. The hit counter probably is OK, what you have seems like expected behaviour to me.

dawhoo

Yes, I completely understand it's an unique per visitor count and there's nothing wrong with the counter, but it looks really odd when there are 47 views and 186 comments.

I tried adding

// Add 1 to hit counter

add_hit($pid);


to theme.php, but it didn't seem to do anything.  I saw that suggestion for a similar situation in the 1.3 forum, since it was 1.3, I wasn't really expecting it to work anyway.