coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: aeroskies on February 13, 2011, 03:12:29 AM

Title: How to hide number of album views/details in Album List
Post by: aeroskies on February 13, 2011, 03:12:29 AM
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
Title: Re: How to hide number of album views/details in Album List
Post by: Αndré on February 14, 2011, 12:21:08 PM
Quote from: aeroskies on February 13, 2011, 03:12:29 AM
In the Album List, I want to hide the number of album views
http://forum.coppermine-gallery.net/index.php/topic,66559.msg331180.html#msg331180
Title: Re: How to hide number of album views/details in Album List
Post by: aeroskies on February 18, 2011, 02:04:29 AM
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.
Title: Re: How to hide number of album views/details in Album List
Post by: Αndré on February 18, 2011, 08:22:46 AM
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).
Title: Re: How to hide number of album views/details in Album List
Post by: aeroskies on February 18, 2011, 02:09:19 PM
Thanks a million! That worked perfectly!
Title: Re: How to hide number of album views/details in Album List
Post by: Αndré on February 23, 2011, 10:48:11 AM
Marking accordingly.