[Solved]: How do I change display of statistics information [Solved]: How do I change display of statistics information
 

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

[Solved]: How do I change display of statistics information

Started by prl242, June 22, 2004, 09:06:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl242

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

Nibbler

You can change the entry in the language file for $lang_list_categories.

prl242

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

Casper

Open your language file, and find;

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

'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;

'stat3' => '<b>[pictures]</b> files in <b>[albums]</b> albums viewed <b>[views]</b> times', //cpg1.3.0
);
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here