Quote:
Originally Posted by pnd
try
$leftcolumn_advertisement
<br>
$leftcolumn_advertisement
|
With this code, the advertisements you put in the ad code block will appear twice. The idea was to have 2 different ads appear one after the other.
Quote:
Originally Posted by tekguru
I use this which works for me:
PHP Code:
<table border=0 align=center>
ADDCODE HERE
</TABLE>
<br />
<TABLE BORDER="0" >
ADDCODE HERE
</TABLE>
<br />
<TABLE BORDER="0" >
ADDCODE HERE
</TABLE>
Works for me
|
I don't know if that really works, but it certainly is broken code. vBulletin is valid XHTML Transitional. Nothing a hack or style does should break that. The code you posted above does.
If you want 2 different ads to fall in-line vertically, the easiest code to use is this in the ad code block (you don't need to edit the templates):
Code:
[first ad code]
<br />
[second ad code]
If you want 2 different ads to appear in-line horizontally, use this code:
Code:
[first ad code] [second ad code]
If you use rotating ads and still want 2 ads to show at once, place your separator (the default separator is the vertical bar "|") between the sets of double ads - each set consists of a [first ad code] and [second ad code]. It might appear like this for a vertical ad:
Code:
[first ad code]
<br />
[second ad code]|
[first ad code]
<br />
[second ad code]|
[first ad code]
<br />
[second ad code]
That would produce 3 different sets of ads as long as the ad code you used was different for each ad. That doesn't mean you have to have 6 different ads (or however many repeats you make). You can use the same ad code more than once, but have it appear on top in one view and on bottom in the other.
If centering the ads are an issue for you, the easiest solution for that is with this code used for each of the examples above:
Code:
<div align="center">[first ad code]</div>
<div align="center">[second ad code]</div>
Code:
<div align="center">[first ad code] [second ad code]</div>
Code:
<div align="center">[first ad code]</div>
<div align="center">[second ad code]</div>|
<div align="center">[first ad code]</div>
<div align="center">[second ad code]</div>|
<div align="center">[first ad code]</div>
<div align="center">[second ad code]</div>
As you can see, I left out the <br /> in the vertical code. Using DIVs causes an automatic line break similar to using <br />. However, if you find the ads appear to touch each other and that might confuse the user, or be against the TOS of the advertiser, you can add the <br /> after the first set of DIVs:
Code:
<div align="center">[first ad code]</div>
<br />
<div align="center">[second ad code]</div>
All of this code depends a great deal on the code you are supplied by your advertiser. That code may already contain centering or table/div structure. My experience with most advertisers though, is they don't really care if their code is valid and they don't really care about how it affects your users, as long as it gives them an advertisement that someone will click on. I often times find myself having to fix the rendering code of the advertisement or asking the advertiser to do something about the code script that makes page loads slow to a crawl. But of course, that doesn't have anything to do with this particular discussion.
While I'm here: The terminology is
ad=advertisement
add=mathematic function
Jim
PS: Merry Christmas