Resource icon

Down and dirty simple rotating ads

Mr Lucky

Well-known member
Mr Lucky submitted a new resource:

Down and dirty simple rotating ads - How to show rotating ads very simpy, no addons required

Option 1 (very very simple)

  • Edit the code (see below) to include each ad's LINK_URL and IMAGE_URL
  • (Optional) Edit duration of display var howOften = 7; default =7 seconds
  • Create an ad in ACP > Setup > Advertising
  • Paste both part 1 and part 2 of the code in the ad (it doesn't matter which order)

Option 2 ( very simple)

After editing as above
  • Paste part 1 of the code at the bottom of...

Read more about this resource...
 
OK, need a little help. I chose Option 1. I carefully edited the code to put in two ShareASale links. I created an Ad choosing as placement "Forum view: Above node list". Pasted the edited file one and file 2 in the HTML. Clicked display criteria, and chose all user groups. Made display order 1. Check Display is Active. Saved....but I don't see anything on my website.

www.hobbygreenhousegrowers.com

EDIT: Tried Option2 as well, but still nothing.
 
Last edited:
OK, need a little help. I chose Option 1. I carefully edited the code to put in two ShareASale links. I created an Ad choosing as placement "Forum view: Above node list". Pasted the edited file one and file 2 in the HTML. Clicked display criteria, and chose all user groups. Made display order 1. Check Display is Active. Saved....but I don't see anything on my website.

www.hobbygreenhousegrowers.com

EDIT: Tried Option2 as well, but still nothing.


First you can test the ad without the code works.

Just type the word TEST or something into the ad, and see if that word it's visible where it's supposed to be.
 
Let me make sure I am understanding you correctly....

I removed the code....
<xf:comment>Part 2 - The ad container that appears on your page</xf:comment>
<layer id="placeholderlayer"></layer><div id="placeholderdiv"></div>

from the ad and replaced it with the word TEST.
Saved the ad, refreshed my forum, but am not seeing anything.
 
Let me make sure I am understanding you correctly....

I removed the code....
<xf:comment>Part 2 - The ad container that appears on your page</xf:comment>
<layer id="placeholderlayer"></layer><div id="placeholderdiv"></div>

from the ad and replaced it with the word TEST.
Saved the ad, refreshed my forum, but am not seeing anything.

Yes remove all code form the ad, that way you can test it without the code.

if you type a word there and it isn't showing, then the issue is not with the code.
 
Here is the code I used for the two banners....with x's to replace my affiliate code here on the forum.

<a target="_blank" href="http://shareasale.com/r.cfm?b=305332&amp;u=XXXXXX&amp;m=XXXXX&amp;urllink=&amp;afftrack="><img src="http://static.shareasale.com/image/29411/728x90-ee-yg-g-1.jpg" border="0" alt="Great Deals on Greenhouses - Eartheasy.com" /></a>

<a target="_blank" href="http://shareasale.com/r.cfm?b=305299&amp;u=XXXXXX&amp;m=XXXXX&amp;urllink=&amp;afftrack="><img src="http://static.shareasale.com/image/29411/728x90-ee-yg-1.jpg" border="0" alt="Your Garden Deserves the Best - Eartheasy.com" /></a>
 
So did you get it working with TEST?

But anyway I doubt it would work with what you pasted above as it isn’t the same format - note the single quotes not double in my code, also you have a lot of extra stuff
 
So it won’t work anyway until you have figured out what is wrong there.

Your code is not going to work either
 
Don't know what it could be. I double and triple checked my installation against your directions. I'll play around with it more tonight or tomorrow. I'll let you know if I get it working, and what the problem is/was.

This is compatible with XF2.0, right?
 
Don't know what it could be.

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.

This is compatible with XF2.0, right?

Yes, my screenshot is xf2. But it will also work in xf1.
 
Just found that even with same dimension images, there can by page jumping in some browsers, i will post a fix for this tomorrow, but basically the placeholder div will need styling with min-height
 
Top Bottom