MyBB Community Forums

Full Version: Removing Advertisement Popin from a theme
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hey guys

i recently downloaded this theme
http://mods.mybb.com/view/verque - P.S thanks to the creator , i love it

But the only thing i want to change besides the banner ofcourse is that advertisement "your code goes" here area

id like to remove that since i dont need it but i have no clue how
Thats the collapsible sidebar. Do you wanna remove the sidebar or replace the content with some other materials?

Either way, you will find that chunk of code in "index" template.
i just wanna remove the sidebar, i have no use of it'

i just checked and found this in index templates > index

i think its the code, but i want to double check before i go removing anything and destroying my forum

<div class="sidebar" style="float: right;width: 19%;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>
Advertisements
</strong></td>
</tr>
<tr>
<td class="trow1">
Your code goes here
</td>
</tr>
</table>
</div>
<div class="forums" style="float: left;width: 80%;">
{$forums}
</div>
<br class="clear" />
{$boardstats}
You have to remove the whole table as the container is still in column with less % width.

Best option is revert that template to the default code. This:

<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}
{$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>
thanks, worked like a charm Big Grin , <3 the support from the mybb community