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: Don't display album views  (Read 3007 times)

0 Members and 1 Guest are viewing this topic.

Morgy

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Don't display album views
« on: October 29, 2012, 10:40:20 am »

Hello everyone,

I would like to show no picture views and no album views in a 1.5 album. I have found the option to disable picture views in settings. But how can I disable album views? I am using the theme "curve".

Thanks
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Don't display album views
« Reply #1 on: October 29, 2012, 04:02:03 pm »

Open index.php, find
Code: [Select]
            $alb_list[$alb_idx]['alb_hits'] = sprintf($lang_list_albums['alb_hits'], $alb_hits);and replace with
Code: [Select]
            $alb_list[$alb_idx]['alb_hits'] = '';(twice)


find
Code: [Select]
            $alb_list[$aid]['alb_hits'] = sprintf($lang_list_albums['alb_hits'], $album['alb_hits']);and replace with
Code: [Select]
            $alb_list[$aid]['alb_hits'] = '';(twice).
Logged

Morgy

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Don't display album views
« Reply #2 on: October 29, 2012, 08:41:24 pm »

Thanks a lot. Works perfectly!  ;D
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Don't display album views
« Reply #3 on: October 29, 2012, 10:07:39 pm »

Then please
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.