MyBB Community Forums
[How To?] Putting board stats on sidebar - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Putting board stats on sidebar (/thread-195179.html)



Putting board stats on sidebar - Sladex Themes - 2016-07-04

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?


RE: Putting board stats on sidebar - Ashley1 - 2016-07-04

There are plugins for this

http://mods.mybb.com/view/sidebox
http://community.mybb.com/thread-131633.html


RE: Putting board stats on sidebar - Sladex Themes - 2016-07-04

But still what's the code? Where do I place it?

And my forum is 1.8


RE: Putting board stats on sidebar - Ashley1 - 2016-07-04

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.


RE: Putting board stats on sidebar - Sladex Themes - 2016-07-04

Now, where do I place it?