2015-09-29, 06:34 AM
Hi again,
In Board Statistics, there are 3 sub stats:
I tried editing following :
index.php
Home » Template Sets » Default Templates » Edit Template: index_boardstats
And added a template under Index Page Templates, named index_customstats
But Custom Statistics does not appear on index page. Any guidance pls?
In Board Statistics, there are 3 sub stats:
- Who's Online
- Birthdays
- Board Statistics
I tried editing following :
index.php
//added
$templatelist .= ",index_customstats";
$customstats = '';
if($mybb->settings['showindexstats'] != 0)
{
eval('$customstats = "'.$templates->get('index_customstats').'";');
}
Home » Template Sets » Default Templates » Edit Template: index_boardstats
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
{$forumstats}
{$customstats}
<tr>
And added a template under Index Page Templates, named index_customstats
<tr><td class="tcat"><span class="smalltext"><strong>Custom Statistics</strong></span></td></tr>
<tr>
<td class="trow1"><span class="smalltext">
Some info<br />
Some info<br />
More info
</span>
</td>
</tr>
But Custom Statistics does not appear on index page. Any guidance pls?