Jump to content


Tutorial info Visit support topic

  • Added on: Oct 24 2005 03:53 AM
  • Date Updated: May 30 2006 07:41 PM
  • Views: 703
 


* * * * *
1 Ratings

Topic count in Board Statistics

Show the total topics count in the Board Statistics section

Posted by Michael on Oct 24 2005 03:53 AM
Open lang/en/lang_boards.php.  Find:
a total of <b><#posts#></b> posts
Add after (on the same line):
 in <b><#topics#></b> topics
Save and upload.

Open sources/Boards.php.  Find:
			$total_posts = $stats['TOTAL_REPLIES'] + $stats['TOTAL_TOPICS'];
Add below:
			$total_topics = $std->do_number_format($stats['TOTAL_TOPICS']);
Find:
			$ibforums->lang['total_word_string'] = str_replace( "<#posts#>" , "$total_posts"		  , $ibforums->lang['total_word_string'] );
Add below:
			$ibforums->lang['total_word_string'] = str_replace( "<#topics#>", "$total_topics"		 , $ibforums->lang['total_word_string'] );
Save and upload.

Enjoy! :)

Powered by Tutorials 1.4.1 © 2012, by Michael McCune