MyBB Community Forums

Full Version: There is an error on board stats
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using mybb 1.67 with 2.0_Inspired theme. The board stats look like this

Our members have made a total of {1} posts in {2} threads.
We currently have {1} members registered.
Please welcome our newest member, {1}
The most users online at one time was {1} on {2} at {3}
Here is what the template says:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><div class="thead_text"><strong>{$lang->boardstats}</strong></div></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
<tr>
<td class="tcat"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
<td class="tcat"><span class="smalltext"><strong>{$lang->boardstats}</strong></span></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
<td class="trow2"><span class="smalltext">
{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />
{$lang->stats_newestuser}<br />
{$lang->stats_mostonline}
</span>
</td>
</tr>

<tr>
<td class="tfoot" style="text-align: right" colspan="2">
<span class="smalltext">
{$logoutlink}
<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> &nbsp;
<a href="showteam.php">{$lang->forumteam}</a> &nbsp;
<a href="stats.php">{$lang->forumstats}</a>
</span>
</td>
</tr>
</tbody>
</table>

<br />

I unchecked the show small stats on my forum.. and it still shows..

Something needs to be changed or better yet just hide the stats...How can I do this? Oh my website is:

http://thefreeweb.org/tfwforum

thank youBig Grin
Your index.lang.php file is changed. Replace it with new one and everything will be good. Or if you want to hide it, go to index template and find boardstats and delete it from there.
Have you edited any of the index "templates" ?? Does reverting "index_stats" back to default solve the issue ?
I will take a look but I did not change anything on the index

Index stats:
<tr><td class="tcat"><span class="smalltext"><strong>{$lang->boardstats}</strong></span></td></tr>
<tr>
<td class="trow1"><span class="smalltext">
{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />
{$lang->stats_newestuser}<br />
{$lang->stats_mostonline}
</span>
</td>
</tr>
Index was not touched... Index.stats were not changed did not need to be reverted..but
when I tried to revert the boardstats. It went blank on the forum. .. not showing like on the apart theme. I think the error is in the code on the themeShy