forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: adam625 on August 15, 2006, 01:20:20 am

Title: Changing statistics on category list page
Post by: adam625 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!
Title: Re: Changing statistics on category list page
Post by: Gizmo 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.
Title: Re: Changing statistics on category list page
Post by: adam625 on August 15, 2006, 03:45:01 am
Thanks!  8)