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

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.