Unique Visitors Only? Unique Visitors Only?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Unique Visitors Only?

Started by irene, August 04, 2012, 02:52:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

irene

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


ΑndrĂ©

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
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
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.