Resource icon

Down and dirty simple rotating ads

MoonShadows

Active member
I think your code is wrong. The code you quoted above is wrong and not the same. I think the semicolns will break it. You must use the same code and only replace the text in capitals with simple URLs, if you are wanting to get all the affiliate stuff to work, then I think this is not what you want, it's just a very simple and basic method to get rotating banners. Your URLs have all kinds of stuff that will break this, e.g ? ; and target="_blank"

HOWEVER

if you cannot get a test ad displaying with something very simple, e.g. the word TEST as mentioned above (or a simple image URL) then you could be wasting time trying this out.



Yes, my screenshot is xf2. But it will also work in xf1.
Perhaps that is what happened; the semicolons broke it.
I did use the same code and only replaced the code in capitals, but the URLs for the affiliate I want to display are not "simple". I guess it won't work for ShareASale affiliate links.

I did try it with your exact code and a simple link to a banner I uploaded on my server, and it still didn't work...so, as you said, I may be wasting my time.

Thanks anyway. No harm, no foul.
 
Last edited:
Yes, my screenshot is xf2. But it will also work in xf1.[/QUOTE]

How would this work with xf1.3? The ACP doesn't have an ad setting.

Many thanks!
M
 

TLBofBL

New member
Just tried this on our site (xf2), and it worked flawlessly first try. Thank you for posting this.
 

Matthew S

Active member
I use @Pixel Exit 's FlatAwesome+ style which includes customisable HTML boxes in the footer. I pasted both sections into one of the boxes and it works great! Had to change the XF template comments to normal HTML comments, otherwise it was plug and play. Thanks!
 

Mr Lucky

Well-known member
I’m not sure why you would need to change the comments, however that’s fine to change to normal html comments. They are just comments, you don’t actually need them.
 

Matthew S

Active member
I’m not sure why you would need to change the comments, however that’s fine to change to normal html comments. They are just comments, you don’t actually need them.
True, but for example, I made a comment with a reference to this resource so I can remember where I saw it. In any case, I was just hoping to let you and others know that this doesn't necessarily have to go in an advert position, and the template syntax isn't needed in that case. (y)
 
Top