MyBB Community Forums

Full Version: How to add Ad Boxes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I want to put a box on the right hand side of my forum to display vertical banners. I have found one that will do it but it seems to have problems:

http://mods.mybboard.net/view/side-boxes-21

Is there another mod that will do this or can anyone fix the mod above?

Thanks in advance
In your index template, find:

{$forums}

Replace with:

<table>
<tr>
<td width="80%" valign="top">{$forums}</td>
<td width="20%" valign="top">CODE FOR ADS</td>
</tr>
</table>

See if that's what you want.
Will get a banner made up and give it a try.

Thank You Smile
(2009-05-05, 05:21 PM)MattRogowski Wrote: [ -> ]In your index template, find:

{$forums}

Replace with:

<table>
<tr>
<td width="80%" valign="top">{$forums}</td>
<td width="20%" valign="top">CODE FOR ADS</td>
</tr>
</table>

See if that's what you want.

Just tried using this now and it makes the forum width half the size, what would be causing this?
Paste the index template here.
Here we go:

<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}
<table>
<tr>
<td width="80%" valign="top">{$forums}</td>
<td width="20%" valign="top">CODE FOR ADS</td>
</tr>
</table>
{$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>
Can I have a URL to see how it looks?? No reason that should be doing anything weird.
Its running locally so here is a screen:
http://img257.imageshack.us/img257/72/forumscreen.jpg

It is the standard theme, only thing I have changed is colours.
(2010-11-27, 12:15 PM)Nayar Wrote: [ -> ]try mine: http://mods.mybb.com/view/sidebox

Looks good but want to make it part of the theme to begin with (so the theme can be distributed with side boxes).
Pages: 1 2