MyBB Community Forums

Full Version: Putting board stats on sidebar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I know putting the board stats on certain theme won't work but I'd like to know how do I put the board stats on my side? What is the exact code? Where do I put it?
But still what's the code? Where do I place it?

And my forum is 1.8
Sidebox uses the code for the portal page to place on other pages. You will find that code inside the install package of the plugin, or portal.php. The template for boardstats is portal_stats

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$lang->forum_stats}</strong></td>
</tr>
<tr>
<td class="trow1">
<span class="smalltext">
<strong>&raquo; </strong>{$lang->num_members} {$stats['numusers']}<br />
<strong>&raquo; </strong>{$lang->latest_member} {$newestmember}<br />
<strong>&raquo; </strong>{$lang->num_threads} {$stats['numthreads']}<br />
<strong>&raquo; </strong>{$lang->num_posts} {$stats['numposts']}
<br /><br /><a href="{$mybb->settings['bburl']}/stats.php">{$lang->full_stats}</a>
</span>
</td>
</tr>
</table>
<br />

Using the above code as is on a page other than portal won't work.
Now, where do I place it?