MyBB Community Forums

Full Version: [help] Advanced Stats on Index/Portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Greetings,

I need help please. My Advanced Stats on Index/Portal are not working properly.

Here is my index template.

<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
{$overview_headerinclude}
</head>
<body{$overview_body_onload}>
{$header}<br />
{$overview} {$boardmsg}<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tcat">&nbsp;</td>
<td class="tcat" width="100%"><strong>{$lang->forumbit_forum}</strong></td>
<td class="tcat" width="175" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_lastpost}</strong></td>
<td class="tcat" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_threads}</strong></td>
<td class="tcat" align="center"><strong>{$lang->forumbit_posts}</strong></td>
</tr>
{$forums}

<tr>
<td class="tfoot" align="center" colspan="5"><a href="misc.php?action=markread">{$lang->markread}</a> &nbsp; &nbsp; <a href="showteam.php">{$lang->forumteam}</a>
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div><strong><a href="stats.php">{$lang->forumstats}</a></strong></div>
</td>
</tr>
</thead>
<tr>

<td class="tcat" colspan="2"><div class="expcolimage"><img src="{$theme['imgdir']}/stats/collapse{$collapsedimg['online']}.gif" id="online_img" class="expander" alt="[-]" /></div><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</td>
</tr>
<tbody style="{$collapsed['online_e']}" id="online_e">
<tr>
<td class="trow2" style="width:30px;" align="center"><img src="$theme[imgdir]/online.gif" alt="{$lang->whos_online}" /></td>
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</tr>
</tbody>

{$birthdays}

<tr><td class="tcat" colspan="2"><div class="expcolimage"><img src="{$theme['imgdir']}/stats/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" /></div><a href="stats.php"><strong>{$lang->boardstats}</strong></a></td></tr>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
<tr>
<td class="trow2" style="width:30px;" align="center"><img src="$theme[imgdir]/stats.gif" alt="{$lang->boardstats}" /></td>
<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>
</tbody>
</table>
<br />
<div align="center">

<table border="1" width="557" height="47" style="border-collapse: collapse" bordercolor="#E5E7E9" cellspacing="1" bgcolor="#F5F5FF">
<tr>
<td height="41" width="61" align="center">
<img src="$theme[imgdir]/on.gif" alt="$lang->new_posts"> </td>
<td height="41" width="126" align="center">
<span class="smalltext">{$lang->new_posts}</span></td>
<td height="41" width="61" align="center">
<img src="$theme[imgdir]/off.gif" alt="$lang->no_new_posts"><span class="smalltext"> </span></td>
<td height="41" width="126" align="center">
<span class="smalltext">{$lang->no_new_posts}</span></td>
<td height="41" width="61" align="center">
<img src="$theme[imgdir]/offlock.gif" alt="$lang->forum_locked"></td>
<td height="41" width="126" align="center">
<span class="smalltext">{$lang->forum_locked}</td>
</tr>
</table>

</div><div align="right" style="font-size:12px">&nbsp;</div>
{$footer}
{$overview_body}
</body>
</html>

Where am I supposed to add
{$boardstats}

Thx
Solved it.
Then why not delete the thread?
ok but there is one other problem Online24 is not showing up. Seems like Online24 has to be added in this index template. But where?