Option not to count my own views? Option not to count my own 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

Option not to count my own views?

Started by weinman, May 11, 2005, 12:38:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

weinman

As the uploader (or as administrator) how about the option to *not* have your own page views counted?

(Maybe this could be done with the use of a cookie?)

Pete

Tranz


jasonlich

In the mean time this is what I use for 1.3.3.

In displayimage.php:

Find line 127 (aprox.):
if ($album != "lasthits" && !in_array($pid, $USER['liv']) && isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data'])) {

Replace with:
if ($album != "lasthits" && !in_array($pid, $USER['liv']) && isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data']) && $CURRENT_PIC_DATA['owner_id'] != $HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_uid'] && !USER_IS_ADMIN) {

weinman

I cannot find this feature hidden in the config menu of 1.4.   It was the one thing I really wanted to see!
Have I missed something? 
Pete

Nibbler

There is no option, it just doesn't count hits from admins.

weinman

OH, yeah, you are correct, THANKS!!! I didn't even notice..

Pete

wildwalker

Can the option to have admin views be 'enabled' in some way (is there something in the php code I can change?)

Most of my users are Admins as they are my friends and can be trusted to use the site, while they are logged in they can look at others photos, now I am seeing photographs with comments but no views.

Alan.

Joachim Müller

You mustn't make your friends admins. Per definition, an admin is someone who administers an app. Your friends don't, as they have no idea how to do that. They might mistakenly change something they're not aware of. There simply is no need to make others admins who are not meant to perform admin tasks. However, there are other, identical requests to yours that asked how to make admin clicks being taken into account, please search.
This is a feature requests thread that is marked as "done", not a suppor thread. Locking.