News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Search results for: count admin views

Search order
#1
cpg1.4 miscellaneous / Count admin views?
December 09, 2005, 06:30:16 PM by hasemann
#2
...... .  QuoteProblem 3: The function add the number of views of the image does not work (I do not see that it  ............  anything). The hit count is subject to gallery settings. If browsing as an  ............ , the default is to not update hit counts.  QuoteProblem 4: For some reason, it doesn't  ......
......  stores your last 5 views in a cookie. A view is just counted if the  ............  cookie. Additionally, there's a config setting to count admin views......
......  I'm anxious about this error since having this admin option open for all to access could mean my  ............  to fix it. I've looked at config & even phpMyAdmin since I thought it may be a database error since  ............  anything. In other news, I also switched off 'count album views' in config but it's still showing in  ......
......  1.4.18 where i have an annoying problem.  The counter for picture views doenst increase. - And im  ............  of that Admin views doesnt count. I've tried another browser  ............  trick. But the same thing happends - The view counter doenst increase.  the gallery in question is  ......
......  and there is a small difference with the hit counting with this version compared to 1.4.x. It  ............  that the view count only goes up if you view the fullsize image but  ............  the old version views increased when the intermediate image is viewed.  ............   Also, are you aware of this thread regarding the admin/user mode?  http://forum.coppermine-gallery.net/ ......
#7
cpg1.4 miscellaneous / Re: No picture views...
April 25, 2006, 09:54:48 PM by lalyil
...... : Stramm on April 25, 2006, 09:51:25 PMIt doesn't count admin views  Oooh thank you. I was hoping  ......
......  it should say that in the config like Note: "admin views dont count" .  ......
#9
cpg1.4 miscellaneous / Views Count not Working
April 09, 2006, 08:40:43 PM by PsychoGTI
......  1.4.4 on my server, and noticed that the views counter is not working. I know it's not supposed  ............  count Admin views, but when viewing from another  ............  as a regular browser, the count still does not increment. Also, I cannot add pics  ......
...... , in the original coppermine gallery the admin views don't get counted but your plugin does  ............  those views. Could you change that to the original way?  Will  ......
......  in debug mode: While executing query "SELECT count(*) FROM `cpgx_fr_topics`;" on 0  mySQL error:  ............  'db.cpgx_fr_topics' doesn't exist  The admin forum manager works, and I have a Link in the sys  ............  '0',  `replies` int(10) NOT NULL default '0',  `views` int(10) NOT NULL default '0',  `locked` tinyint( ......
......  you for this information!   But it looks like the counter had slowed down anyway. Can this problem occur  ............ ? I've seen many visitors on my site but the counter doesn't move?  Morgan  Quote from: TranzNDance  ............  March 03, 2006, 11:14:47 PMAdmin views don't count.  ......
#13
cpg1.4 miscellaneous / Views not increasing
August 13, 2008, 02:04:27 PM by roxanacaz
...... .  Image views not increasing - I know admin and repeated views  ............ 't count. I have this error on the bottom of the page:    ............  -   select count(*) as total from sessions where sesskey = ' ......
#14
...... 'user_lang'] : '') . ')'); define('USER_IS_ADMIN', (int)$USER_DATA['has_admin_access']);  ............ ['group_id'] . ')'); define('USER_IS_ADMIN', 0); define('USER_CAN_SEND_ECARDS', (int) ............  mysql_free_result($results); } } // Test if admin mode $USER['am'] = isset($USER['am']) ? (int)$ ............ ['am'] : 0; define('GALLERY_ADMIN_MODE', USER_IS_ADMIN && $USER['am']); define(' ............  USER_CAN_CREATE_ALBUMS && $USER['am'] && !GALLERY_ADMIN_MODE); // Process theme selection if present in  ............ ; // Retrieve the "private" album set if (!GALLERY_ADMIN_MODE && $CONFIG['allow_private_albums'])  ............  html_albummenu($id) { global $template_album_admin_menu, $lang_album_admin_menu; static $ ............  $params = array('{CONFIRM_DELETE}' => $lang_album_admin_menu['confirm_delete'], '{DELETE}' =>  ............ $lang_album_admin_menu['delete'], '{MODIFY}' => $ ............ '], '{EDIT_PICS}' => $lang_album_admin_menu['edit_pics'], ); $ ............  = template_eval($template_album_admin_menu, $params); } $params = array('{ ............  >= " . FIRST_USER_CAT); $album_count = mysql_num_rows($result); while ( ............ ); $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']}, {$CONFIG[' ............ = mysql_fetch_array($result); $pic_count = $nbEnr[0]; $subcat[' ............ {$subcat['name']}</a>"; if ($album_count) { $cat_data[] = array($link,  ............ $ident . $subcat['description'], $album_count, $pic_count); $HIDE_USER_CAT = ............  = {$subcat['cid']}"); $album_count = mysql_num_rows($result); while ( ............ ); $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']}, {$CONFIG[' ............  mysql_free_result($result); $pic_count = $nbEnr[0]; $subcat['name'] = $ ............ ">{$subcat['name']}</a>"; if ($pic_count == 0 && $album_count == 0) { $ ............ ($link, $ident . $subcat['description'], $album_count, $pic_count, 'cat_albums' => $cat_albums);  ............  mysql_free_result($result); } if (count($album_set_array) && $cat) { $set = '';  ............  ($cat == 0) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} WHERE 1");  ............  = mysql_fetch_array($result); $album_count = $nbEnr[0]; mysql_free_result($result);  ............  $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1");  ............  = mysql_fetch_array($result); $picture_count = $nbEnr[0]; mysql_free_result($result);  ............  $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_COMMENTS']} WHERE 1");  ............  = mysql_fetch_array($result); $comment_count = $nbEnr[0]; mysql_free_result($result);  ............  $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_CATEGORIES']} WHERE 1");  ............  $nbEnr = mysql_fetch_array($result); $cat_count = $nbEnr[0] - $HIDE_USER_CAT;  ............  $nbEnr = mysql_fetch_array($result); $hit_count = (int)$nbEnr[0]; mysql_free_result($ ............ ); if (count($cat_data)) { $statistics = strtr($ ............ ['stat1'], array('[pictures]' => $picture_count, '[albums]' => $album_count,  ............  '[cat]' => $cat_count, '[comments]' => $ ............ , '[views]' => $hit_count)); } else { $ ............ ['stat3'], array('[pictures]' => $picture_count, '[albums]' => $album_count,  ............  '[comments]' => $comment_count, '[views]' => $hit_count));  ............ & $ALBUM_SET) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} WHERE 1 $ ............  = mysql_fetch_array($result); $album_count = $nbEnr[0]; mysql_free_result($result);  ............  $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1 $ ............  = mysql_fetch_array($result); $picture_count = $nbEnr[0]; mysql_free_result($result);  ............  $nbEnr = mysql_fetch_array($result); $hit_count = (int)$nbEnr[0]; mysql_free_result($ ............ ['stat2'], array('[pictures]' => $picture_count, '[albums]' => $album_count,  ............  '[views]' => $hit_count)); } else { $ ............ ')) { $result = udb_list_users_query($user_count); } else { $sql = "SELECT user_id," .  ............ " user_name," . " COUNT(DISTINCT a.aid) as alb_count," . "  ............ (DISTINCT pid) as pic_count," . " MAX(pid) as thumb_pid " . " ............ ; $result = db_query($sql); $user_count = mysql_num_rows($result); } if (!$ ............ $CONFIG['thumbrows']; $totalPages = ceil($user_count / $user_per_page); if ($PAGE > $totalPages) $ ............ -1) * $user_per_page; $upper_limit = min($user_count, $PAGE * $user_per_page); $row_count = $ ............ ($result, $lower_limit, $row_count); } else { $rowset = array();  ............ $row = mysql_fetch_array($result)) && ($i++ < $row_count)) $rowset[] = $row; mysql_free_result($ ............ " class="image" border="0" />'; $user_pic_count = $user['pic_count']; $user_thumb_pid = $ ............ ['thumb_pid']; $user_album_count = $user['alb_count']; if ($ ............  sprintf($lang_list_users['n_albums'], $user_album_count); $pictures_txt = sprintf($ ............ ['n_pics'], $user_pic_count); $params = array('{USER_NAME}' => $user[ ............  } theme_display_thumbnails($user_list, $user_count, '', '', 1, $PAGE, $totalPages, false, true, ' ............ ['max_tabs']; $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = ............ ($alb_thumbs_q); $disp_album_count = count($alb_thumbs); $album_set = '';  ............ $album_set, 0, -2) . ')'; $sql = "SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max( ............  } for ($alb_idx = 0; $alb_idx < $disp_album_count; $alb_idx++) { $alb_thumb = &$alb_thumbs[$ ............  $alb_stat = $cross_ref[$aid]; $count = $alb_stat['pic_count']; } else {  ............  $alb_stat = array(); $count = 0; } // Inserts a thumbnail if  ............  album contains 1 or more images if ($count > 0) { $visibility = $alb_thumb[' ............ ['group_id']) { $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $ ............ ']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx][' ............ '] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums[' ............  $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID +  ............  description $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $ ............ ']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx][' ............ '] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums[' ............  $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID +  ............ ['max_tabs']; $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = ............ ($alb_thumbs_q); $disp_album_count = count($alb_thumbs); $album_set = '';  ............ $album_set, 0, -2) . ')'; $sql = "SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max( ............  } for ($alb_idx = 0; $alb_idx < $disp_album_count; $alb_idx++) { $alb_thumb = &$alb_thumbs[$ ............  $alb_stat = $cross_ref[$aid]; $count = $alb_stat['pic_count']; } else {  ............  $alb_stat = array(); $count = 0; } // Inserts a thumbnail if  ............ ']) { // test for visibility if ($count > 0) { // Inserts a thumbnail if the album  ............ ['group_id']) { $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $ ............ ']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx][' ............ '] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums[' ............  $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID +  ............  description $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $ ............ ']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx][' ............ '] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums[' ............  $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID +  ............  config if ($breadcrumb != '' || count($cat_data) > 0) theme_display_breadcrumb($ ............ ': if ($breadcrumb != '' || count($cat_data) > 0) theme_display_cat_list($ ............ '] > 86400) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1");  ............ ; mysql_free_result($result); $pic_count = $nbEnr[0]; $granularity = floor($ ......
......  ging das auch. Als ich dan als angemeldeter admin nicht mer die admin einstellungen erreichen  ............  aufgespielt.  nun ist mir aufgefallen, das ich im admin modus "mein profil" nich mehr aufrufen kann,  ............  wird ziemlich rege benutzt: 1jahr - 200'000 views  hier noch einer der vielen Debug-Info (ich hab  ............ ] => 1  [can_create_albums] => 1  [has_admin_access] => 1  [pub_upl_need_approval] => 0   ............ (can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN( ............  WHERE category = 2  [8] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 5  [11] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 6  [14] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 7  [17] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 9  [20] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 3  [23] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 24  [26] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 25  [29] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 26  [32] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 15  [35] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 4  [38] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 14  [41] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 12  [44] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 11  [47] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 13  [50] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 16  [53] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 22  [56] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 21  [59] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 17  [62] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 19  [65] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 20  [68] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 28  [71] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  as a WHERE category>=10000  [74] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............  WHERE category = 10  [77] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a  ............ .aid = a.aid AND category = 10  [78] => SELECT count(*) FROM cpg132_albums as a WHERE category = '10'   ............  ORDER BY a.pos LIMIT 0,23  [80] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max( ............ ) as last_upload, sum(hits) as viewcount FROM cpg132_pictures WHERE aid IN (125, 106, 102,  ............  as a WHERE category = '0'  [99] => SELECT count(*) FROM cpg132_albums as a WHERE 1  [100] =>  ............  count(*) FROM cpg132_pictures as p LEFT JOIN  ............  as a ON a.aid=p.aid WHERE 1  [101] => SELECT count(*) FROM cpg132_comments as c LEFT JOIN  ............  as a ON a.aid=p.aid WHERE 1  [102] => SELECT count(*) FROM cpg132_categories WHERE 1  [103] =>  ............  as a ON p.aid=a.aid WHERE 1  [104] => SELECT count(*) FROM cpg132_albums as a WHERE category = '0'   ............  ORDER BY a.pos LIMIT 0,2  [106] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max( ............ ) as last_upload, sum(hits) as viewcount FROM cpg132_pictures WHERE aid IN (46, 63) AND  ............  WHERE pid='4191'  [108] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'    ............  ORDER BY pid DESC LIMIT 0 ,4  [110] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'    ............ => SELECT VERSION() as version  [113] => SELECT count(*) FROM cpg132_pictures WHERE 1  [114] =>  ......
...... ?? no? ja.. Or just thought that may be when in admin mode views dont count, and in user mode views  ......
#17
cpg1.4 miscellaneous / Re: "displayed" info time delay?
August 13, 2008, 04:36:53 PM by Nibbler
......  doesn't count repeat or admin views. 'statcounter' probably  ............ . The hit counter is not updated 'every so often' but live. As  ......
#18
cpg1.4 miscellaneous / Re: no counts the click
November 07, 2006, 06:21:57 AM by Abbas Ali
...... .br/4x4/displayimage.php?album=3&pos=2 pic. The count was 0 initially and it incremented to 1.  I think  ............  are logged in as admin and views are not counted if user is admin......
...... Admin views don't count. Double visits by one user don' ............  count. If this doesn't answer your question, post a  ......
......  are aware that admin views don't count? You are aware that several  ............  from one visitor will only increase the counter by one and not several times? Because that's  ......
......  on January 20, 2008, 10:35:24 PMCPG does not count views from the admin.  CPG no cuenta el ver de el  ......
Admin views don't count in v. 1.4.
#23
cpg1.4 miscellaneous / Re: page view not accurate
November 08, 2006, 07:05:01 PM by Nibbler
......  does not count 'pageviews'. It counts distinct views of actual  ............  by non admin users. ......
#24
cpg1.4 miscellaneous / Re: Times imaged viewed not showing up
September 07, 2007, 03:31:00 AM by Nibbler
...... Admin views don't count. Repeated views don't count.   ............  apply to you then post a link and test account if required. ......
#25
......  version currently in development does not count admin views.  ......
......  believe one can tweak the 1.3x code so it doesn't count admin views. I did a couple of searches and  ......
#27
cpg1.4 miscellaneous / Re: No. of views not displaying
January 27, 2006, 07:31:13 AM by Tranz
......  all the views visited by you as admin? Admin views don't count.  ......
#28
......  that admin views don't count. I couldn't test your gallery  ............  error about cookies, which is another reason why views don't increment. I ran update.php and the message  ......
#29
cpg1.4 miscellaneous / Re: Views / Viewed not updating
December 03, 2005, 01:41:01 AM by kegobeer
...... Admin views don't count. Does this happen to everyone  ......
#30
cpg1.4 install / Re: Picture count doesn't work
January 16, 2006, 09:18:51 PM by Tranz
...... admin views don't count. If that isn't the problem,  ......