MyBB Community Forums

Full Version: remove this side bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
im new to mybb just merged from smf.

I installed a theme but in the board index a sidebar is displayed http://mybb.thetekwar.com

tell me how to remove it and the forum should also get stretched. I tried to edit the index template but failed .

Here is the index template contents please edit it and post here.
<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 class="sidebar" style="float: right; width: 20%">

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

<tr>
   <td class="thead">
      <strong>Header Here</strong>
   </td>
</tr>

<tr>
   <td class="trow1">
       Content here
   </td>
</tr>
</table>
<br />


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

<tr>
   <td class="thead">
      <strong>Header Here</strong>
   </td>
</tr>

<tr>
   <td class="trow1">
       Content here
   </td>
</tr>
</table>
<br />
</div>

<div class="forums" style="float: left; width: 79%;">
{$forums}
</div>
{$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>
I believe it might be this code:

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

<tr>
   <td class="thead">
      <strong>Header Here</strong>
   </td>
</tr>

<tr>
   <td class="trow1">
       Content here
   </td>
</tr>
</table>
Xenos i tried your edit but in my forum previously 2 sidebars were displayed after editing (your edit) 1 got removed but the other got on top of forum and the forum was also not stretched.

Please help me and its a request from me please post the whole php script after editing dont post a part i get confused.
replace with below 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 class="forums" style="float: left; width: 100%;">
{$forums}
</div>
{$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>
ranjani thanks it solved my proble. Support is really great here.