Here is a short description of how the advertisements are organized on `Ruboard test forum' (and how can you earn money by advertising on your boards).
I'm using two banner systems - ValueClick and LinkExchange. You may use anything yu like. ValueClick pays $0.12..$0.15 per click and LinkExchange lets you advertise your products.
Assuming you are using Apache web server (as I am) here are the steps:
- The Value
Click and LinkExchange
accounts was opened;
- The parameter ``$adfile="ad.html";'' added to
ruboard.cf;
- The file ad.html created:
<CENTER><!--#exec cmd="/www/lib/scripts/ad"--></CENTER>
- Nearly the same line added to the index page (and actually to almost
all htmls on this site :));
- The following two lines added to the .htaccess file:
Options +Includes AddHandler server-parsed .html
- The script `/www/lib/script/ad' created as follows (don't forget to change account number):
#!/usr/bin/perl srand($$); $id=int(rand(10000)); if(rand>0.4) { print <<EOT; <iframe src="http://leader.linkexchange.com/$id/X835952/showiframe?" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no> <a href="http://leader.linkexchange.com/$id/X835952/clickle" target="_top"><img width=468 height=60 border=0 ismap alt="" src="http://leader.linkexchange.com/$id/X835952/showle?"></a></iframe> EOT } else { print <<EOT; <A TARGET="_top" HREF="http://www22.valueclick.com/cgi-bin/redirect?host=h0032839&b=$id"><IMG BORDER=0 WIDTH=468 HEIGHT=60 ALT="Please visit our sponsors." SRC="http://www22.valueclick.com/cgi-bin/cycle?host=h0032839&b=$id"></A> EOT } exit(0); - That's all! If you have problems placing advertisements on your forums - do not hesitate to ask me.
I wish you good luck and big cash!
And don't forget to register Ruboard if you've decided to place advertisements on your site!