MyBB Community Forums
Sidebar latest thread w/out plugin help - 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: Sidebar latest thread w/out plugin help (/thread-186744.html)



Sidebar latest thread w/out plugin help - beastlyryan - 11-29-2015

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)
{$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>



RE: Sidebar latest thread w/out plugin help - SvePu - 11-30-2015

You have disabled portal in ACP, that's why your index template JS code doesn't work.


RE: Sidebar latest thread w/out plugin help - beastlyryan - 11-30-2015

(11-30-2015, 08:15 AM)SvePu Wrote: You have disabled portal in ACP, that's why your index template JS code doesn't work.

I just enabled it and it still doesn't work


RE: Sidebar latest thread w/out plugin help - SvePu - 11-30-2015

Did you also enabled "show latest discussions" in ACP portal settings?


RE: Sidebar latest thread w/out plugin help - HMR - 11-30-2015

Same happening with me (i guess he and me are using codes of Square theme for placing that latest threads sidebar)
i have enabled portals and show latest discussions also.
My Site: Post4VPS.com

If i could get a latest threats just like http://realityforum.net then that would be awesome (there sidebar updates automatically weather we reload our site or not)


RE: Sidebar latest thread w/out plugin help - beastlyryan - 11-30-2015

(11-30-2015, 02:02 PM)SvePu Wrote: Did you also enabled "show latest discussions" in ACP portal settings?

Yes, it is enabled