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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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 2 Guests 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é