Forum Moderators: martinibuster

Message Too Old, No Replies

Alternate Ads on phpBB aren't working

Anyone have any luck luck?

         

ScottM

12:02 am on Nov 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've tried so many different iterations of the code...I've given up.

Anyone actually get it working?

I want to run an affiliate banner, if that helps.

adamas

10:49 am on Nov 14, 2003 (gmt 0)

10+ Year Member



Yes. I have alternate ads running on my phpBB forums.

I created a page that consists solely of a hyperlinked image to another of my sites and it works nicely.

Have you tried putting the banner in a separate page dedicated to this purpose and putting that url in as your alternate?

ScottM

11:55 am on Nov 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, I tried that.

I can get a banner to "show", but when I click the banner the new page opens within the javascript box. IE-it doesn't go to the page I want.

I used this code:

google_alternate_ad_url = "http://mysite.com/ad.htm";

level80

12:21 pm on Nov 14, 2003 (gmt 0)

10+ Year Member



This is just the javascript for the address of the alternate ad. Is it the alternate ad that opens within the frame when you click on it or the Google Adsense ad?

ScottM

12:25 pm on Nov 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The alternate ad.

adamas

1:35 pm on Nov 14, 2003 (gmt 0)

10+ Year Member



Ah yes, I remember getting that now. Try putting

target='_top'

in your anchor tag in the page you've created to display as the alternate ad i.e.

<a href='http://mylink.example' target='_top'>Banner</a>

ScottM

4:46 pm on Nov 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



FINALLY got it running!

The target="_top" was the key.

Thanks.