How to hide number of album views/details in Album List How to hide number of album views/details in Album List
 

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]

Main Menu

How to hide number of album views/details in Album List

Started by aeroskies, February 13, 2011, 03:12:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aeroskies

In the Album List, I want to hide the number of album views and the date the last file was added.  I cannot find a setting to do this.  Would someone please provide guidance?

Thanks,
Paul


aeroskies

Quote from: Αndré on February 14, 2011, 12:21:08 PM
http://forum.coppermine-gallery.net/index.php/topic,66559.msg331180.html#msg331180

I tried to change or copy the functions discussed on that thread, however it did not change anything. Any further help would be greatly appreciated.

Αndré

Open index.php, find
            $alb_list[$alb_idx]['alb_hits'] = sprintf($lang_list_albums['alb_hits'], $alb_hits);
            $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : "") . (($CONFIG['link_pic_count'] && $link_pic_count > 0 ) ? sprintf(", {$lang_list_albums['n_link_pictures']},  {$lang_list_albums['total_pictures']}", $link_pic_count, $count + $link_pic_count) : "");

and replace with
            $alb_list[$alb_idx]['alb_hits'] = '';
            $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count);

(twice)


find
            $alb_list[$aid]['alb_hits'] = sprintf($lang_list_albums['alb_hits'], $album['alb_hits']);
            $alb_list[$aid]['album_info'] = sprintf($lang_list_albums['n_pictures'], $album['pic_count']) . ($album['pic_count'] ? sprintf($lang_list_albums['last_added'], $last_upload_date) : "") . (($CONFIG['link_pic_count'] && $link_pic_count > 0)  ? sprintf(", {$lang_list_albums['n_link_pictures']}, {$lang_list_albums['total_pictures']}", $link_pic_count, $album['pic_count'] + $link_pic_count) : "");

and replace with
            $alb_list[$aid]['alb_hits'] = '';
            $alb_list[$aid]['album_info'] = sprintf($lang_list_albums['n_pictures'], $album['pic_count']);

(twice).

aeroskies


Αndré