SMF Ads Support Forum

Support => General Support => Topic started by: clive on July 07, 2009, 05:26:46 PM

Title: smfads and openX
Post by: clive on July 07, 2009, 05:26:46 PM
Hi all, thank you for this admod

I have installed smfads onto default template of 2.0rc1-1 and also installed openX adserver onto my server... I am having trouble getting the invocation code to make anything happen and wonder if openx is a bit bulky for my needs...

I am after a lightweight banner rotator for ads that I create myself. I'm not using google ads....(just plain jpeg images nothing fancy...

So does anyone have any experience of openX with smf ads and would they be willing to do some paid work to help me set up a couple of test ads on my forum

Or, is there an alternative to openX that is a bit less complicated that will allow me to upload and rotate my own ads?
Title: Re: smfads and openX
Post by: KingKoz on July 11, 2009, 11:46:20 AM
I found this code at http://javascript.internet.com/text-effects/banner-ads.html that sounds like what you want. Here is how I implemented it. I didn't have much experience (at the time) with Javascript but since it is very "english friendly" I was able to adapt it for my use.


<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var how_many_ads = 12;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="KozRadio.biz";
url="http://www.kozradio.biz";
alt="kozradio.biz";
banner="banners/banner01.gif";
width="468";
height="60";
}
if (ad==2) {
txt="Help the search for Extraterrestial Life by donating!";
url="https://planetary.org/donations.html";
alt="planetary.org";
banner="banners/seti02.gif";
width="468";
height="60";
}
if (ad==3) {
txt="Learn to play the Guitar";
url="http://hop.clickbank.net/?kingkoz/jamorama";
alt="jamorama.com";
banner="banners/banner04.gif";
width="468";
height="60";
}
if (ad==4) {
txt="Stop Adware and Spyware now!";
url="http://adwarexterminator.com/pestprotector.asp?revid=kingkoz";
alt="adwarexterminator.com";
banner="banners/banner05.gif";
width="468";
height="60";
}
if (ad==5) {
txt="Movie downloads";
url="http://moviedownloadpro.com/www2/index.asp?revid=kingkoz";
alt="moviedownloadpro.com";
banner="banners/banner06.gif";
width="468";
height="60";
}
if (ad==6) {
txt="Subliminal Audio CD's";
url="http://www.subliminal-audio.com/?afl=16063";
alt="subliminal-audio.com";
banner="banners/banner07.gif";
width="468";
height="60";
}
if (ad==7) {
txt="KozRadio 5252";
url="http://live.kozradio.biz:5252/listen.pls";
alt="live.kozradio.biz:5252";
banner="banners/5252listen.gif";
width="468";
height="60";
}
if (ad==8) {
txt="Dr Demento Radio Show";
url="http://www.drdemento.com";
alt="drdemento.com";
banner="banners/banner09.jpg";
width="468";
height="60";
}
if (ad==9) {
txt="Fresh hand-dipped Incense";
url="http://incense.kozradio.biz";
alt="incense.kozradio.biz";
banner="banners/incense_banner.gif";
width="468";
height="60";
}
if (ad==10) {
txt="KozRadio Online Store";
url="http://www.cafepress.com/kozradio";
alt="cafepress.com";
banner="banners/promo_468x60_01.gif";
width="468";
height="60";
}
if (ad==11) {
txt="This is my score, whats your score?";
url="http://speedtest.dslreports.com";
alt="DSLReports.com";
banner="banners/dslreports.jpg";
width="468";
height="60";
}
if (ad==12) {
txt="KozRadio";
url="http://www.kozradio.biz";
alt="kozradio.biz";
banner="banners/kozradio_banner.gif";
width="468";
height="60";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<font color=\"silver" size=\"-1">' + txt + '</font></a>');
document.write('</center>');
// End -->
</SCRIPT>


Hope that helps

Koz