MyBB Community Forums
add recent threads in sidebar - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Support (https://community.mybb.com/forum-10.html)
+---- Thread: add recent threads in sidebar (/thread-143455.html)



add recent threads in sidebar - Tasker - 2013-08-01

Hello.
Well, i'm using this theme :
http://mods.mybb.com/view/cms-bb
And in this theme, there is already a sidebar, as you can see. Now i want to add a list of recent threads in the sidebar .. Well, i installed a sidebar-plugin (http://mods.mybb.com/view/sidebox), but there is a problem: The layout is destroyed. So actually i just need the template-code for the recent topics, so i can manually insert the code to the sidebar which already exist in the CMS-BB theme (which i linked above).
So can someone tell me the code of recent threads in the sidebar-plugin, so i can add it manually? and would that work? Thank you very much!

P.S.: my forum isn't online yet so i can't give a link or something like that.


RE: add recent threads in sidebar - Bala - 2013-08-01

Well to add recent threads in sidebar you can
{$latestthreads}
do not put that inside a td, just a div for placement.

And for a sidebar, you can refer to this tutorial, http://community.mybb.com/thread-73062.html

Instead of using the plugin.

For a demo you can take a look at my site. I use {$latestthreads} to display on the index page.


RE: add recent threads in sidebar - Tasker - 2013-08-02

I don't need a sidebar. The theme already has a sidebar, i just need the code for displaying the latest threads. Look at this theme :
http://mods.mybb.com/view/cms-bb
Look on the right side, there is already a sidebar installed.
http://mods.mybb.com/uploads/previews/24766-1289213230-CMS%20BB.png
Now i want to display the latest threads in the sidebar. I tried to use {$latestthreads}, but it doesn't work. I don't see a change after i inserted the variable. Look here, the header template (just a part of it)
<div id="container">
	<br />
	<div id="sidebar">
		{$welcomeblock}
		
		
		

{$latestthreads}
</div>
	<div id="content">
		{$pm_notice}
		{$bannedwarning}
		{$bbclosedwarning}
		{$unreadreports}
		{$pending_joinrequests}



RE: add recent threads in sidebar - subzr1 - 2014-10-13

u should try on index template and not header Wink