MyBB Support

How to add sidebar??

Submitted by Mr_Joker, , Thread ID: 4216

Thread Closed

RE: How to add sidebar??

Mr_Joker
YouR JuSt G4Y
Level:
0
Reputation:
3
Posts:
795
Likes:
51
Credits:
493
OP
30-05-2015, 07:08 PM
#7
30-05-2015, 07:06 PM
subzr Wrote:
here u go
this is my index template of a theme im developing
it includes a side bar and latest threads block without any plugin Wink
Code:
<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>
<style type="text/css">
.buttons {
    background: url(images/arrowright.png) no-repeat;
    width: 16px;
    height: 16px;
    display: block;
    cursor: pointer;
}

.clickedbuttons {
    background: url(images/arrowleft.png) no-repeat;
    width: 16px;
    height: 16px;
    display: block;
    cursor: pointer;
}
</style>
</head>
<body>
{$header}
<a class="buttons" style="float: right;"></a>
<a class="clickedbuttons" style="float: right;"></a>
<br class="clear" />
<div class="sidebar" style="float: right;width: 19%;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead1"><strong>
Latest Threads
</strong></td>
</tr>
<tr>
<td class="trow3">
<p><div class="latestthreads float_left"></div></p>
<script type="text/javascript">
jQuery(function(){
  jQuery(".latestthreads").load("{$mybb->settings['bburl']}/portal.php .latestthreads_portal");
});
</script>
</td>
</tr>
</table>
</div>
<div style="float:{$left};width: 80%;">{$forums}</div>

{$boardstats}
</div>

<br class="clear" />
{$footer}
</body>
</html>

It doesnt show latest threads though :/

Users browsing this thread: 1 Guest(s)