tweak number of views? tweak number of views?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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.