Number of views 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

Number of views

Started by Steve1234, January 03, 2008, 07:52:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Steve1234

My counter is working fine, however I would like it to register each time a photo is viewed from the same pc. ideally I would prefer a time delay of maybe ten minutes.
I have spent a number of hours looking for solution in forum using the search facility but cant find the answer

Steve

Joachim Müller

Such a solution doesn't exist - Coppermine counts unique hits. That's why your search didn't yield any results. If you need this behaviour changed, you'll have to code it.

Steve1234

Could you advise where I should look.
I know your not reccomended to change themes.inc.php
however is it this that needs changing or is it a lot more complicated
// Add 1 to hit counter
    if (!USER_IS_ADMIN && !in_array($pid, $USER['liv']) && isset($_COOKIE[$CONFIG['cookie_name'] . '_data'])) {
        add_hit($pid);
        if (count($USER['liv']) > 4) array_shift($USER['liv']);
        array_push($USER['liv'], $pid);


any point in the right direction would be appreciated


Steve1234


Joachim Müller

Marking thread accordingly. However, for the benfit of others with similar issues, you should share your insight and post what you did to solve your issue - that's the whole point of a support board: think of it as a knowledge base.