CPG 1.3.1 Counter doesn't increase last commented and most viewed pictures CPG 1.3.1 Counter doesn't increase last commented and most viewed pictures
 

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

CPG 1.3.1 Counter doesn't increase last commented and most viewed pictures

Started by xplicit, October 24, 2004, 02:22:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xplicit

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!

Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

lamama

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.

lamama

Ooops! Found out that the particular gallery mentioned above was still running under version 1.3.0  :o  Just updated it.