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: Unique Visitors Only?  (Read 2303 times)

0 Members and 1 Guest are viewing this topic.

irene

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Unique Visitors Only?
« on: August 04, 2012, 02:52:43 pm »

Hi,

How can I make the index count per view? or image view.. not cookies by IP? I want it to count per view and not per IP

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: Unique Visitors Only?
« Reply #1 on: August 06, 2012, 11:15:39 am »

Copy the function theme_html_picture from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist. Then, find
Code: [Select]
if ((!USER_IS_ADMIN && $CONFIG['count_admin_hits'] == 0 || $CONFIG['count_admin_hits'] == 1) && !in_array($pid, $USER['liv']) && $superCage->cookie->keyExists($CONFIG['cookie_name'] . '_data')) {and replace with
Code: [Select]
if ((!USER_IS_ADMIN && $CONFIG['count_admin_hits'] == 0 || $CONFIG['count_admin_hits'] == 1)) {

Next time, please use the board search before starting a new thread, as that question has already been asked and answered before.
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 19 queries.