MyBB Community Forums
[How To?] Recent Thread Sidebar on index - 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?] Recent Thread Sidebar on index (/thread-223247.html)



Recent Thread Sidebar on index - vonmhel1995 - 2019-06-02

Hi, i want to show the latest threads in my index page.

[attachment=41815]

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>



RE: Recent Thread Sidebar on index - effone - 2019-06-02

One thread is enough.
https://community.mybb.com/thread-223243.html