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

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]

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