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: Changing statistics on category list page  (Read 3107 times)

0 Members and 1 Guest are viewing this topic.

adam625

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 28
Changing statistics on category list page
« on: August 15, 2006, 01:20:20 am »

After the category list Coppermine displays... "2182 files in 106 albums and 13 categories with 0 comments viewed 273 times".

Is it possible to switch it to look like this... "2182 files in 106 albums and 13 categories"? Leaving off the # of comments and # of times viewed?

I assume to do this involves revising $template_cat_list in theme.php, but as usual I have no idea what to change... LOL! Any help would be great. Thanks!
« Last Edit: August 15, 2006, 07:48:10 am by GauGau »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Changing statistics on category list page
« Reply #1 on: August 15, 2006, 03:22:03 am »

What you're looking for is the language files so if you check the english.php file in the lang folder, you'll find this bit of code:
Code: [Select]
$lang_list_categories = array(
  'home' => 'Home',
  'stat1' => '<b>[pictures]</b> files in <b>[albums]</b> albums and <b>[cat]</b> categories with <b>[comments]</b> comments viewed <b>[views]</b> times',
  'stat2' => '<b>[pictures]</b> files in <b>[albums]</b> albums viewed <b>[views]</b> times',
  'xx_s_gallery' => '%s\'s Gallery',
  'stat3' => '<b>[pictures]</b> files in <b>[albums]</b> albums with <b>[comments]</b> comments viewed <b>[views]</b> times',
);

Edit to suit you needs.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

adam625

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 28
Re: Changing statistics on category list page
« Reply #2 on: August 15, 2006, 03:45:01 am »

Thanks!  8)
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.