coppermine-gallery.com/forum

No Support => Feature requests => Topic started by: weinman on May 11, 2005, 12:38:21 PM

Title: Option not to count my own views?
Post by: weinman on May 11, 2005, 12:38:21 PM
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
Title: Re: Option not to count my own views?
Post by: Tranz on May 11, 2005, 03:27:39 PM
It's been implemented in 1.4
Title: Re: Option not to count my own views?
Post by: jasonlich on July 07, 2005, 02:42:59 AM
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) {
Title: Re: Option not to count my own views?
Post by: weinman on July 08, 2005, 09:32:22 PM
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
Title: Re: Option not to count my own views?
Post by: Nibbler on July 08, 2005, 09:47:37 PM
There is no option, it just doesn't count hits from admins.
Title: Re: Option not to count my own views?
Post by: weinman on July 11, 2005, 01:46:35 PM
OH, yeah, you are correct, THANKS!!! I didn't even notice..

Pete
Title: Re: Option not to count my own views?
Post by: wildwalker on June 17, 2006, 07:23:16 PM
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.
Title: Re: Option not to count my own views?
Post by: Joachim Müller on June 18, 2006, 10:09:57 AM
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 (http://forum.coppermine-gallery.net/index.php?action=search).
This is a feature requests thread that is marked as "done", not a suppor thread. Locking.