MyBB Community Forums

Full Version: Vertical Ads - [Solved]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to add vertical ads on my forum, and I have googled and read/tried every possible method listed and posted, and I cannot get it to work.

I am using W3-responsive as a theme (I am mainly asking so I know where I need to go in any theme to add vertical ads)


As I said, I am trying to add vertical ads to my forum (left and right side of the forum). I have no idea what code to use, or where to place it.
I'd rather use one Ad system (My Advertisements) than two. But thanks for the suggestion.
In global.css ( from your theme ). Find and replace.

Find:
#content {
	width: auto !important;
	padding: 40px 10px;
	overflow: hidden;
	background: #fcfcfc repeat scroll left top;
}



Replace with:
#content {
	width: auto !important;
	padding: 40px 10px;
	overflow: hidden;
	background: #fcfcfc  repeat scroll left top;
}

.sidebar {
	width: 15%;
	float: right;
}

.forum {
	width: 85%;
	float: left;
}

On index page templates -> index
Find:
{$forums}
</div>


Add below:
	<br>
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<strong>Advertise Here</strong>
</td>
</tr>
<tr>
<td class="trow1"><center>
{myadvertisements[zone_X]}
</center>	
</td>
</tr>
</table>

Where the X stands for the zone number from My Advertisements.

Hope this will help you Smile
Not sure what I did wrong, but this is what happened:

http://prntscr.com/d56q8y (The pink boxes are were it should have been placed)
Home » Template Sets » Your theme Templates » Edit Template: index
After {$boardstats} add;
<td valign="top">
	
	
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<div class="float_left"><strong>ADS</strong></div
</td>
</tr>
<tr>
<td align="center" class="trow2">
<a class="ads" href="https://yourlink"><i style="font-size: 16px;" class="ads"></i></a>
</td>
</tr>
</table>
  
Still no avail.
Can you post a screen?
I hired someone to make me this but in plugin form where I can control which groups see it. (It is strictly compatible with the theme I am using.)

Thanks to everyone who tried to help!