MyBB Community Forums

Full Version: My Advertisements on index page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have installed my advertisements plugin and have put ads that I want to appear on the extreme right or left of the page. I saw some code that is close to what I want but I cannot make it work can anyone help?
I would want three ads to appear one above the other on the right or left side.
{myadvertisements[zone_6]}
{myadvertisements[zone_7]}
{myadvertisements[zone_8]}
style="float:right; width:120px; height:180px; position:fixed; center: 0; right: 0;">
when "float:right" is used, you need not confuse that again with "position:fixed; center: 0; right: 0;"

"center: 0;" - i dont think thats a valid property

these kind of css edits would be easy to fix if you could provide the forum url....
basically code like below should work
<div style="float: right;">{myadvertisements[zone_6]}</div><br />
<div style="float: right;">{myadvertisements[zone_7]}</div><br />
<div style="float: right;">{myadvertisements[zone_8]}</div>
hello yes I should have however i am in the middle of putting up the new theme square-blue so it is not always live. the url is www.lovegirltalk.com/forum.

thanks for your help but it does not achieve what i require . i got the last code that almost works from another post and by by putting it under the {$header} you get the required position but it disappears at the top and reappears as you scroll down and i cant insert the advertisements code. In the image attached you can see a character on the right where i want the adds to appear.
[Image: sidebar01.jpg]

this screen shot is what happens when i put your code under the other code. it just messes up the page. maybe i am putting it in the wrong place?

[Image: sidebar02.jpg]

the code i used to insert the character is from another post and is
<img src="http://i.imgur.com/tfhmIhP.png" alt="Happy new year" style="float:right; width:120px; height:180px; position:fixed; center: 0; right: 0;">

I will leave this character up on the site so you can see what i am trying to achieve