forum.coppermine-gallery.net

No Support => General discussion (no support!) => Topic started by: prl242 on June 22, 2004, 09:06:53 pm

Title: [Solved]: How do I change display of statistics information
Post by: prl242 on June 22, 2004, 09:06:53 pm
Where would I go (what file) to change the content of:
<span class="statlink"><b>{STATISTICS}</b></span>

I believe this shows the stats such as:
16 pictures in 5 albums and 1 categories with 0 comments viewed 63 times

I would like to remove the bit about comments.

Thanks
Title: Re: How do I change display of statistics information
Post by: Nibbler on June 22, 2004, 10:25:18 pm
You can change the entry in the language file for $lang_list_categories.
Title: Re: How do I change display of statistics information
Post by: prl242 on June 30, 2004, 01:25:13 am
Thanks for the reply, however since I am very new at this I did not really understand it.  Could you please be more specific.

Thanks
Title: Re: How do I change display of statistics information
Post by: Casper on June 30, 2004, 10:52:48 am
Open your language file, and find;

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', //cpg1.3.0
  'stat2' => '<b>[pictures]</b> files in <b>[albums]</b> albums viewed <b>[views]</b> times', //cpg1.3.0
  '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', //cpg1.3.0
);

Now edit 'stat1' to read;

Code: [Select]
'stat1' => '<b>[pictures]</b> files in <b>[albums]</b> albums and <b>[cat]</b> categories viewed <b>[views]</b> times', //cpg1.3.0
and edit 'stat3' to read;

Code: [Select]
'stat3' => '<b>[pictures]</b> files in <b>[albums]</b> albums viewed <b>[views]</b> times', //cpg1.3.0
);
Title: Re: How do I change display of statistics information
Post by: prl242 on June 30, 2004, 05:08:31 pm
Thanks