MyBB Community Forums

Full Version: Add Sidebar ads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,
I want to add Ads on sidebar without plugins if possible (to avoid problems when upgrading to a new version).

This is how I want it:
[Image: lQLstjb.jpg]


When I tried, this was my "best" result but I don't want it like that:
[Image: 9SH1VB5.jpg]
Nothing?
For simplicity, I'd suggest taking a look at this: http://mods.mybb.com/view/side-boxes-plus-2

When installed, we can tweak these settings.
Home » Board Settings » Side Boxes Plus index
Select "No" for the options other than the additional box. In the additional one; paste your advertisement code.

You will have to repeat the same in
Home » Board Settings » Side Boxes Plus Thread Showing Settings

I am using this plugin on my forum; gets the job done.
This is what happen when I try to edit it:
http://gyazo.com/81028aaf107d1a313f300fb340946202.png
You are specifically asking for a non-plugin solution, so:

On the page you want side bars find:

{$header}

and change it to

{$header}
<table>
<tr>
<td>
<!-- left side boxes here -->
</td>
<td>

and then find

{$footer}

and change it to

</td><td>
<!-- right side boxes here -->
</td>
</tr>
</table>
{$footer}

But of course there is width and CSS to add to get everything looking like the rest of the forum and this method doesn't allow any PHP-generated content-- static HTML only.

For a more complete solution, try my plugin Advanced Sidebox (link is in my signature). It may be more than what you need, but you'll find it is much easier and saves you work.