2017-04-26, 01:13 AM
I'd like to add a sidebar to my forum displaying the latest threads. I'm currently using this code below to add a Sidebar to my forum and I'd like to know what I need to do to display all the Latest Threads in the sidebar similar to the display in the Portal.
Index Template
This is literally the last step to completing my forum. I'm so happy! If I could get some support I would really appreciate it
Index Template
<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}
<div class="forum">
{$forums}
{$ps_footer_index}
</div>
<div class="sidebar">
{$forumteamonline}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong><i class="fa fa-pie-chart"></i> Forum Stats</strong></td>
</tr>
<tr>
<td class="trow1">
<span class="smalltext">
Members Registered - {$stats['numusers']}<br />
Newest Member - {$newestmember}<br />
We have total number of Threads {$stats['numthreads']}<br />
We have total number of Posts {$stats['numposts']}
</span>
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong><i class="fa fa-globe"></i> Online Users</strong></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</tr>
</table>
<br />
</div>
{$boardstats}
{$footer}
</body>
</html>
This is literally the last step to completing my forum. I'm so happy! If I could get some support I would really appreciate it