coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: drgonzo120 on November 06, 2003, 04:15:05 PM

Title: turn off counter ?
Post by: drgonzo120 on November 06, 2003, 04:15:05 PM
hello


is it possible to turn off the counter?

i checked all options, but nowhere i have seen aa counter check box or something like that ...


http://www.psygarden.be/coppermine/thumbnails.php?album=47

i don't want it to look like a championship ... ;) for most clicks


thanks (i also checked the database but nowhere i could find a click field in the album records )


thanks
Title: turn off counter ?
Post by: Joachim Müller on November 06, 2003, 06:54:54 PM
you'll have to manually edit the file displayimage.php (if I remember it right) - I don't have the source code here at this pc I'm writing on.

If you don't find it, please re-post (as a *bump* for me).

GauGau
Title: turn off counter ?
Post by: drgonzo120 on January 29, 2004, 08:42:30 AM
*bump*

;)

 :cry:
Title: turn off counter ?
Post by: Joachim Müller on January 29, 2004, 09:04:30 AM
edit include/functions.inc.php and look for$caption = ($rowset[$key]['title']||$rowset[$key]['hits']) ? "<span class=\"thumb_title\">".$rowset[$key]['title'].(($rowset[$key]['title'])?"-":"").sprintf($lang_get_pic_data['n_views'], $rowset[$key]['hits'])."</span>" : '';
Replace it with$caption = ($rowset[$key]['title']||$rowset[$key]['hits']) ? "<span class=\"thumb_title\">".$rowset[$key]['title'].(($rowset[$key]['title'])?"":"")."</span>" : '';
GauGau
Title: turn off counter ?
Post by: Joachim Müller on January 29, 2004, 09:35:57 AM
btw: added this to be an admin settable option (in coppermine config) inside the dev branch of the cvs (in other words: will be in the next version).

GauGau
Title: turn off counter ?
Post by: drgonzo120 on January 29, 2004, 10:00:51 AM
thanks for the quick reply  :o
Title: turn off counter ?
Post by: user0815 on February 03, 2004, 04:03:49 PM
can i disable the counter for all user, but only the administrators can see the views (counter).
is this possible?

thanks.
Title: turn off counter ?
Post by: Joachim Müller on February 03, 2004, 11:47:40 PM
not tested, but should be something like$caption = ($rowset[$key]['title']||$rowset[$key]['hits']) ? "<span class=\"thumb_title\">".$rowset[$key]['title'].(($rowset[$key]['title'])?"-":"");
if (GALLERY_ADMIN_MODE) { $caption .=sprintf($lang_get_pic_data['n_views'], $rowset[$key]['hits']); }
$caption .= "</span>" : '';

GauGau
Title: turn off counter ?
Post by: user0815 on February 04, 2004, 09:31:46 PM
sorry, that code was wrong. i became a error.

now, i use this code (for other users information):


if (GALLERY_ADMIN_MODE)
{
 $caption = ($rowset[$key]['title']||$rowset[$key]['hits']) ? "<span class=\"thumb_title\">".$rowset[$key]['title'].(($rowset[$key]['title'])?"-":"").sprintf($lang_get_pic_data['n_views'], $rowset[$key]['hits'])."</span>" : '';
}
 else
{
 $caption = ($rowset[$key]['title']||$rowset[$key]['hits']) ? "<span class=\"thumb_title\">".$rowset[$key]['title'].(($rowset[$key]['title'])?"":"")."</span>" : '';
}


it's the easy combination from the original code and the modified code (from the posting on top) :wink: