PHP Code:
$banners = array (
"banner1.gif|redirect1.pl|alt text 1|0|468|60",
"banner2.gif|redirect2.pl|alt text 2|0|468|60"
);
$banner = $banners[mt_rand(0,sizeof($banners) - 1)];
list($imgsrc,$myurl,$alttext,$border,$width,$height) = explode ('|',$banner);
This code is what is used on a normal website. You'll have to use something different for vB, I expect. Haven't looked at the rest of the thread.
Code:
echo("<A HREF=\"http://www.yoursite.com/cgi-bin/$myurl\" TARGET = \"_blank\"><IMG src=\"http://www.yoursite.com/banners/$imgsrc?" . mt_rand(1,999) . "\" border=\"$border\" width=\"$width\" height = \"$height\" alt=\"$alttext\"></A>");
Clicking the banners fires the perl script in your cgi-bin folder. This is so you can run reports on your activity log file to count the number of times each perl script has been opened. This is the number of clicks of each banner.
Hope this helps.