2015-11-29, 11:50 PM
(This post was last modified: 2015-11-29, 11:52 PM by beastlyryan.)
I've been trying to add sidebars to my forum without a plugin. So far I've added the divider and everything except i can't seem to grab the latest threads. The link is http://therlest.com/forum/ . It shows the divider but not latest threads.
This is my sidebar code in the index: (not full index code just sidebar code)
This is my portal_latestthreads_thread
This is my sidebar code in the index: (not full index code just sidebar code)
{$header}
<div class="sidebar" style="float: right; width: 17%;">
<script type="text/javascript">
jQuery(function(){
jQuery(".latestthreads").load("{$mybb->settings['bburl']}/portal.php .latestthreads_portal");
}); </script>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
Latest Threads
</td>
</tr>
<tr>
<td class="trow3" style="{$collapsed['ths_e']}" id="ths_e">
<div class="latestthreads float_left">
</div>
</td>
</tr>
</table>
</div>
<div class="forums" style="float: left; width: 83%;">
{$forums}
</div>
{$boardstats}
This is my portal_latestthreads_thread
<tr class="latestthreads_portal">
<td class="{$altbg}">
<strong><a href="{$mybb->settings['bburl']}/{$thread['threadlink']}">{$thread['subject']}</a></strong>
<span class="smalltext"><br>
<a href="{$thread['lastpostlink']}">{$lang->latest_threads_lastpost}</a> {$lastposterlink}<br>
{$lastpostdate} {$lastposttime}<br>
</span>
</td>
</tr>