MyBB Community Forums

Full Version: How to create sideboxes without plugins?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I need them in a theme.. Could someone help me?
I haven't tried it,but I remember someone saying to do this -

Go to the index template and replace whats there with -


<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}
<td>{$forums}</td>
<td>Insert your boxes here</td>
{$boardstats}

<dl class="forum_legend smalltext">
	<dt><img src="{$theme['imgdir']}/on.png" 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.png" 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.png" 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>

Just realize that doing so will mean only static content in the sideboxes.
And they'll be on the right of the forum. If you want them on the left, you need to change it.
You would need to make some CSS and HTML changes. I can do it for you for a small fee if you would like.
Is it possible to do 3 columns? <leftbar> {$forums} <rightbar>
It is, but I know of at least one SideBox plugin that does this 3 column setup.
Could I have a link to this plugin?
I had been experimenting with this ironically Toungue this is what I did (Try on default skin incase something goes wrong):

1. Go to the "index" template and add this peice of code in between {$header} and {$forums}:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="float: right; width: 18%;">
<thead>
<tr>
<td class="thead"><div><strong>Sidebox</strong></div></td>
</tr>
</thead>
<tbody>
<tr>
<td class="tcat"><span class="smalltext"><strong>Sidebox Title</strong></span></td>
</tr>
<tr>
<td class="{$bgcolor}" valign="middle"><div class="smalltext">Sidebox Content</div></td>
</tbody>
</table>

(You can repeat that snippet of coding for how ever many side boxes you want)


2. Edit the "forumbit_depth1_cat" template and find:

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

Replace with:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="float: left; width: 80%; margin-bottom: 10px;">

There should be one small sidebox floated to the right of the container if you did it correctly Wink
Can I put the login thing inside?
I have to insert the welcomeblock, right?
Oh, what I need is the portal sidebar, can you tell me the code? if not i could search it on my own =)
Pages: 1 2 3