Not Solved [How To?] Recent Thread Sidebar on index
#1
Not Solved
Hi, i want to show the latest threads in my index page.

   

this is my code in index page.
<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 id="home">
{$header}
<div class="forums">
{$welcomeguest}
{$dvz_shoutbox}

{$forums}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><a href="{$mybb->settings['bburl']}/online.php" alt="Online users now" title="Online users now"><i class="fa fa-globe"></i></a> Currently Active Users</td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</tr>
</table>
<br/>
</div>
<div class="sidebar">

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><i class="fa fa-pie-chart"></i> Our Forum Statistics</td>
</tr>
<tr>
<td class="trow1">
<span class="stats_right">
<i class="fa fa-file" aria-hidden="true"></i> Total Threads <strong>{$stats['numthreads']}</strong><br/>
<i class="fa fa-comments" aria-hidden="true"></i> Total Posts<strong>{$stats['numposts']}</strong><br/>
<i class="fa fa-users" aria-hidden="true"></i> Total Members<strong>{$stats['numusers']}</strong><br/>
<i class="fa fa-user-circle" aria-hidden="true"></i> Newest Member<strong>{$newestmember}</strong>
</span>
</td>
</tr>
</table> 
<br/>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<div class="float_left"><i class="fa fa-bar-chart"></i> Advertise with Us</div
</td>
</tr>
<tr>
<td align="center" class="trow2">
Please add a banner in this area
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">

<tr>
<td class="thead">
<i class="fa fa-comments"></i> Recent threads
</td>
</tr>
<tr>

<td class="trow1">
 Recent Threads
 </td>

</tr>
</table>
</div>
<br class="clear" />
{$footer}
</body>
</html>
#2
Not Solved
One thread is enough.
https://community.mybb.com/thread-223243.html


Forum Jump:


Users browsing this thread: 1 Guest(s)