Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Option not to count my own views?  (Read 4547 times)

0 Members and 1 Guest are viewing this topic.

weinman

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Option not to count my own views?
« 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
« Last Edit: May 11, 2005, 03:27:55 pm by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Option not to count my own views?
« Reply #1 on: May 11, 2005, 03:27:39 pm »

It's been implemented in 1.4
Logged

jasonlich

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Option not to count my own views?
« Reply #2 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.):
Code: [Select]
if ($album != "lasthits" && !in_array($pid, $USER['liv']) && isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data'])) {
Replace with:
Code: [Select]
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) {
Logged

weinman

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Option not to count my own views?
« Reply #3 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
Logged

Nibbler

  • Guest
Re: Option not to count my own views?
« Reply #4 on: July 08, 2005, 09:47:37 pm »

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

weinman

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Option not to count my own views?
« Reply #5 on: July 11, 2005, 01:46:35 pm »

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

Pete
Logged

wildwalker

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Option not to count my own views?
« Reply #6 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Option not to count my own views?
« Reply #7 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.
This is a feature requests thread that is marked as "done", not a suppor thread. Locking.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.