MyBB Community Forums

Full Version: sidebox - code?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
ok gave up on the plugin sidemods as it just messes my template up so had ago at doing it this way, problem is my sidebox aint at the side lol Sad ..its just above the forum? guess it just needs a quick fix but dunno what?

my board url is http://www.carpinmad.co.uk

Ta Smile

<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}
{$fadingsablon}
{myshoutbox}
<div style="float: left; width: 19%;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<strong>BOX 1</strong>
</td>
</tr>
<tr>
<td class="trow1">
BOX CONTENT
</td>
</tr>
</table></div>
<div style="width: 80%;">
</div>
{$forums}
{$boardstats}
<dl class="forum_legend smalltext">
	<dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->no_new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
	<dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
</body>
</html>

had another go wit the div tage but now it looks even more weird as its only moved 1 part of my forum to the side ?
ah sorted it, just needed the float tag added \o/
Well I'm still pretty new but here's my dirty fix.

Add the following code between {$header} and {$forums} in the index template:

<div class="sidebar">

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">

<tr>
   <td class="thead">
        Your Title
   </td>
</tr>

<tr>
   <td class="trow2">
    <p>Your Message
   </td>
</tr>
</table>
</div>

Edit: Did Not See Latest Message Smile