I can give you a sample of how this is achieved. You can then modify it to suit your needs.
Templates to be modified:
1st - index_whosonline
<tr>
<td colspan="6" class="tcat"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</tr>
<tr>
<td class="trow1 smalltext" align="center" width="1"><img src="{$theme['imgdir']}/online.png" alt="" /></td>
<td colspan="6" class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</tr>
2nd - index_stats
<tr>
<td colspan="6" class="tcat"><span class="smalltext"><strong>{$lang->boardstats}</strong></span></td>
</tr>
<tr>
<td class="trow1 smalltext" align="center" width="1"><img src="{$theme['imgdir']}/stats.png" alt="{$lang->boardstats}" /></td>
<td colspan="6" class="trow1"><span class="smalltext">
{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />
{$lang->stats_newestuser}<br />
{$lang->stats_mostonline}
</span>
</td>
</tr>
<tr>
<td colspan="6" class="tcat"><span class="smalltext"><strong>Legend</strong></span></td>
</tr>
<tr>
<td class="trow1 smalltext" valign="middle" align="center"><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" /></td>
<td class="trow1 smalltext" valign="middle" align="center">{$lang->new_posts}</td>
<td class="trow1 smalltext" valign="middle" align="center"><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" /></td>
<td class="trow1 smalltext" valign="middle" align="center">{$lang->no_new_posts}</td>
<td class="trow1 smalltext" valign="middle" align="center"><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" /></td>
<td class="trow1 smalltext" valign="middle" align="center">{$lang->forum_locked}</td>
</tr>
3rd - index_boardstats
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td colspan="6" class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
{$forumstats}
<tr>
<td colspan="6" class="tfoot" style="text-align: right">
<span class="smalltext">
{$logoutlink}
<a href="misc.php?action=markread">{$lang->markread}</a> |
<a href="showteam.php">{$lang->forumteam}</a> |
<a href="stats.php">{$lang->forumstats}</a>
</span>
</td>
</tr>
</tbody>
</table>
<br />
4th - index_birthdays
<tr><td colspan="6" class="tcat"><span class="smalltext"><strong>{$lang->todays_birthdays}</strong></span></td></tr>
<tr>
<td colspan="6" class="trow1"><span class="smalltext">{$bdays}</span></td>
</tr>
5th - index
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$forums}
{$boardstats}
<br class="clear" />
{$footer}
</body>
</html>
Hope this helps.
Shedrock