Boards statistics - amount of topics

28 Nov 2010, 15:01

If we want to show in our forum statistics how many topics are started, we should follow the instructions:

Otwórz: admin/applications/forums/modules_public/forums/boards.php

Find:

$stats_output['total_posts'] = $stats['total_replies'] + $stats['total_topics'];

Add bellow:

$stats_output['total_topics'] = $stats['total_topics'];

Find:

$this->lang->words['total_word_string'] = str_replace( "<#link#>"  , $stats_output['last_mem_link'] , $this->lang->words['total_word_string'] );

Add bellow:

$this->lang->words['total_word_string'] = str_replace( "<#topics#>"  , $stats['total_topics'] , $this->lang->words['total_word_string'] );

Go to ACP -> Look & Feel tab -> Manage Languages -> language

Find in forums/public_boards string:

total_word_string

Replace content to:

Our members have made a total of <b><#posts#></b> posts, in <b><#topics#></b> topics<br />We have <b><#reg#></b> registered members<br />The newest member is <b><a href='<#link#>'><#mem#></a></b> 

Go to: ACP -> Look & Feel tab -> skin -> Board Index -> boardIndexTemplate

Find:

<dt>{$this->lang->words['total_posts']}</dt>

<dd>{$stats['info']['total_posts']}</dd>

Add below:

<dt>Topics</dt>

<dd>{$stats['info']['total_topics']}</dd>


Article category: IP.Board