Advanced search  

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

Pages: [1]   Go Down

Author Topic: Changing statistics on category list page  (Read 3026 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 19 queries.