coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: xplicit on October 24, 2004, 02:22:56 PM

Title: CPG 1.3.1 Counter doesn't increase last commented and most viewed pictures
Post by: xplicit on October 24, 2004, 02:22:56 PM
Hi there,

I have searched but haven't found a solution for the following question.

My counter doesn't seem to increase the counter number when people go directly to the most viewed or last commented images.
The only way it seems to increase is if they really are looking in the album itself. I see a lot of people only viewing the best vieuwed pictures but the counter doesn't count them. So I was wondering if there is someting wrong with it or am I the only one?

In the script I found (displayimage.php)

// Add 1 to hit counter
   if ($album != "lasthits" && !in_array($pid, $USER['liv']) && isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data'])) {
       add_hit($pid);
       if (count($USER['liv']) > 4) array_shift($USER['liv']);
       array_push($USER['liv'], $pid);
   }

is there a way to modify this or do I have to search for the solution in another part of the file (or different file)?

Thnx a lot in advance!

Title: Re: CPG 1.3.1 Counter doesn't increase last commented and most viewed pictures
Post by: lamama on November 02, 2004, 09:11:12 PM
I today watched a strange LASTHITS-behavior that maybe is connected with the above problem:

I acutally watch a anonymous user who is opening some pictures in my gallery. I can follow his behaviour realtime in the apache access_log.
Curious about what he was actually watching, I clicked on LASTHITS - but the last entry was from an hour ago.

Then I browsed the album myself and clicked on some thumbs.
They DID appear in the LASTHITS view.

I tried the same with different thumbnail views: Tophis, Lastup, Toprated...
LASTHITS always logged my clicks, but NOT the ongoing clicks of that other user (who browsed regular albums and the Lastup view).

So I guess there must be something that keeps LASTHITS from working properly.
Title: Re: CPG 1.3.1 Counter doesn't increase last commented and most viewed pictures
Post by: lamama on November 02, 2004, 11:09:02 PM
Ooops! Found out that the particular gallery mentioned above was still running under version 1.3.0  :o  Just updated it.