View Full Version : Remove both sidebars from GreenLeaves
dkessaris
07-11-2006, 12:12 PM
Hi all,
I want to remove both sidebars from the GreenLeaves template, I suppose it shouldn't be to complicated but I don't know how to write a single line of code. Can anyone help me with this?
Thank You,
Dimitris
Edit: Oops, this was supposed to be posted in the existing templates forum. Sorry about that.
...I want to remove both sidebars from the GreenLeaves template, I suppose it shouldn't be to complicated but I don't know how to write a single line of code. Can anyone help me with this?
Thank You,
Dimitris
...
To remove left bar with all elements that are in it just open header.tpl file and remove following block of code: <td valign="top" height="10%" class="column">
{if $config.editors}
<div class="box">
<div class="box-caption2-right">
<div class="box-caption2-left">
<div class="box-caption2">{$lang.editors_area}</div>
</div>
</div>
<div class="box-content">
{if $editor}
{$lang.welcome}, <strong>{$editor.username}</strong>!
<ul class="editor-menu">
{if $category.id > 0 || $config.categories_list}
<li><a href="suggest-category.php{if $category.id}?id={$category.id}{else}?id=0{/if}">{$lang.suggest_category}</a></li>
<li><a href="suggest-link.php{if $category.id}?id={$category.id}{else}?id=0{/if}">{$lang.suggest_link}</a></li>
{/if}
{if $editor.type}
<li><a href="approval-links.php">{$lang.approval_links}</a></li>
<li><a href="editor-categories.php">{$lang.view_my_categories}</a></li>
{/if}
<li><a href="editor-links.php">{$lang.view_my_links}</a></li>
<li><a href="editor-account.php">{$lang.edit_account}</a></li>
{foreach from=$menus item=menu_item name=bottom_menus}
{in_array_exist def=3 values=$menu_item.menus}
{if $result_valid}
<li>{if $menu_item.unique_url}
<a href="{$menu_item.unique_url}">{$lang[$menu_item.name]}</a>
{else}
{if $config.mod_rewrite}
<a href="{$config.base}{$config.dir}p{$menu_item.name}.html">{$lang[$menu_item.name]}</a>
{else}
<a href="{$config.base}{$config.dir}page.php?name={$menu_it em.name}">{$lang[$menu_item.name]}</a>
{/if}
{/if}</li>
{/if}
{/foreach}
<li><a href="logout.php?action=logout">{$lang.logout}</a></li>
</ul>
{else}
<form action="{$config.base}{$config.dir}login.php" method="post">
<table class="no" cellpadding="2" cellspacing="0">
<tr>
<td>{$lang.username}:<br /><input type="text" tabindex="1" name="username" size="20" value="" /></td>
</tr>
<tr>
<td>{$lang.password}:<br /><input type="password" tabindex="2" name="password" size="20" value="" /></td>
</tr>
<tr>
<td colspan="2" style="font-size: 10px;"><input type="submit" tabindex="3" name="login" value="{$lang.login}" />
<a href="{$config.base}{$config.dir}forgot.php">{$lang.forgot}</a>
{if $category.id > 0 OR not $config.editors_dmoz}
<a href="{$config.base}{$config.dir}register.php?id={$categ ory.id}" rel="nofollow">{$lang.register}</a>
{/if}</td>
</tr>
</table>
</form>
{/if}</div>
</div>
{/if}
{if $news && $config.news}
<div class="box">
<div class="box-caption2-right">
<div class="box-caption2-left">
<div class="box-caption2">{$lang.news}</div>
</div>
</div>
<div class="box-content">
<div class="links">
{foreach from=$news item=one_news}
<div class="news-title">
{if $config.mod_rewrite}
<a href="{$config.base}{$config.dir}news/{convert_str string=$one_news.title}-n{$one_news.id}.html" id="news{$one_news.id}">{$one_news.title}</a></div>
{else}
<a href="{$config.base}{$config.dir}news.php?id={$one_news. id}" id="news{$one_news.id}">{$one_news.title}</a></div>
{/if}
<div class="news-body">{$one_news.body|truncate:$config.news_max:"..."}</div>
<div class="news-date">{$one_news.date|date_format:$config.date_format}</div>
{/foreach}
</div>
</div>
</div>
{/if}
</td>
<td class="dotted"></td>
Similar for the right bar. Open footer.tpl file and remove:<td class="dotted"></td>
<td valign="top" height="10%" class="column">
{if $sponsored_links}
<div class="box">
<div class="box-caption2-right">
<div class="box-caption2-left">
<div class="box-caption2">{$lang.sponsored_links}</div>
</div>
</div>
<div class="box-content">
<div class="links">
{foreach from=$sponsored_links item=link}
<div class="sponsored-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div>
{/foreach}
</div>
</div>
</div>
{/if}
{if $featured_links && $config.featured_box}
<div class="box">
<div class="box-caption2-right">
<div class="box-caption2-left">
<div class="box-caption2">{$lang.featured_links}</div>
</div>
</div>
<div class="box-content">
<div class="links">
{foreach from=$featured_links item=link}
<div class="featured-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div>
{/foreach}
</div>
</div>
</div>
{/if}
This will also remove all features like "sponsored" and "featured" listings which are located it the right side bar...
dkessaris
07-12-2006, 04:40 PM
Thank you, I will try this
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.