Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: Mar 23 2009 04:01 PM
    • Views: 1872
     


    * * * * *
    5 Ratings

    Topic count in Board Statistics

    Show the total topics count in the Board Statistics section

    Posted by Michael on Mar 23 2009 04:01 PM
    This will add a total topics count into your board statistics section at the bottom of the page, to go with the total posts stat already there.

    Go to the Look & Feel tab -> Manage Languages page of your Admin CP.  Use the 'Import Language XML' tool at the bottom to import the attached XML file to import a new language string.

    Next, go to the Look & Feel tab -> Look & Feel  -> Manage Skin Sets & Templates page, click a skin and choose the Board Index -> boardIndexTemplate skin template.  In the code find this:
    				<dt>{$this->lang->words['total_posts']}</dt>
    				<dd>{$stats['info']['total_posts']}</dd>
    Add this below that:
    				<dt>{$this->lang->words['total_topics']}</dt>
    				<dd>{parse format_number="$this->caches['stats']['total_topics']"}</dd>
    Save the template, and repeat for each skin.

    Enjoy! :)

    Attached Files


    Powered by Tutorials 1.4.1 © 2012, by Michael McCune