MyBB Community Forums

Full Version: Sidebar help?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys I'm currently running the "square" theme on my forum. Could anyone help me get a sidebar? Thanks. Big Grin
Sidebar for...?
I need a sidebar like the one in the photo attached. Big Grin    

I need it to show this kind of code shown below.

 <a href="http://www.gametracker.com/server_info/27.50.70.42:27110/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/27.50.70.42:27110/b_350x20_C692108-381007-FFFFFF-000000.png" border="0" width="350" height="20"  alt=""/></a>
ACP > Templates & Styles > Templates > Square Templates > Index Group Templates > open index template

replace your index template with this new one:

<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>
{$header}
<div style="width: 654px; min-width: 654px; max-width: 654px; float: left; margin-right: 20px;">
    {$forums}
</div>

<div style="width: 350px; min-width: 350px; max-width: 350px; float: right;">
    <a href="http://www.gametracker.com/server_info/27.50.70.42:27110/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/27.50.70.42:27110/b_350x20_C692108-381007-FFFFFF-000000.png" border="0" width="350" height="20"  alt=""/></a>
</div>
<br class="clear" /><br />
{$boardstats}
{$footer}
</body>
</html>
It worked but it made the sidebar go all the way to the bottom and made the forum smaller.  You know any fixes?
Also how can i add a background and borer for it to suit the square template theme?
Try this new 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>
</head>
<body>
{$header}
<div style="width: 614px; min-width: 614px; max-width: 614px; float: left; margin-right: 20px;">
    {$forums}
</div>

<div style="width: 350px; min-width: 350px; max-width: 350px; float: right;">

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
    <tr>
        <td class="thead"><strong>YOUR TITLE HERE</strong></td>
    </tr>
    <tr>
        <td style="padding: 0;">
            <a href="http://www.gametracker.com/server_info/27.50.70.42:27110/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/27.50.70.42:27110/b_350x20_C692108-381007-FFFFFF-000000.png" border="0" width="350" height="20"  alt=""/></a>
        </td>
    </tr>
</table>
<div class="theadend"></div>

</div>
<br class="clear" /><br />
{$boardstats}
{$footer}
</body>
</html>
Thanks enVy it looks super nice now Big Grin. Think you could help me make it so the forums aren't as squashed up?
Could anyone give me help? Big Grin