coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: dawhoo on April 12, 2006, 06:31:05 PM

Title: tweak number of views?
Post by: dawhoo on April 12, 2006, 06:31:05 PM
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

Title: Re: tweak number of views?
Post by: Joachim Müller on April 12, 2006, 06:49:10 PM
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.
Title: Re: tweak number of views?
Post by: dawhoo on April 12, 2006, 09:07:03 PM
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.