Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How to hide number of album views/details in Album List  (Read 7260 times)

0 Members and 1 Guest are viewing this topic.

aeroskies

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
How to hide number of album views/details in Album List
« 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15761
Logged

aeroskies

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: How to hide number of album views/details in Album List
« Reply #2 on: February 18, 2011, 02:04:29 am »

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15761
Re: How to hide number of album views/details in Album List
« Reply #3 on: February 18, 2011, 08:22:46 am »

Open index.php, find
Code: [Select]
            $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
Code: [Select]
            $alb_list[$alb_idx]['alb_hits'] = '';
            $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count);
(twice)


find
Code: [Select]
            $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
Code: [Select]
            $alb_list[$aid]['alb_hits'] = '';
            $alb_list[$aid]['album_info'] = sprintf($lang_list_albums['n_pictures'], $album['pic_count']);
(twice).
Logged

aeroskies

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: How to hide number of album views/details in Album List
« Reply #4 on: February 18, 2011, 02:09:19 pm »

Thanks a million! That worked perfectly!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15761
Re: How to hide number of album views/details in Album List
« Reply #5 on: February 23, 2011, 10:48:11 am »

Marking accordingly.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.