Changing statistics on category list page Changing statistics on category list page
 

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

Changing statistics on category list page

Started by adam625, August 15, 2006, 01:20:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

adam625

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!

Gizmo

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:

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