forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: irene on August 04, 2012, 02:52:43 pm

Title: Unique Visitors Only?
Post by: irene 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

Title: Re: Unique Visitors Only?
Post by: Αndré 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 (http://forum.coppermine-gallery.net/index.php/topic,74263.0.html) before.