Mine is just a random banner plugin, I don't track # of impressions or clicks, I just know they show up randomly...
If you want to use it, make a new plugin, hook location: global_start, execution order: 5
php code:
PHP Code:
$random_number = rand(1, 3);
$random_banner[1] = '<a href="http://www.juot.net/forums/forumdisplay.php?f=33"><img src="http://qapla.com/juotbanners/drnicksfreeclinic.gif" alt="Dr. Nicks Free Clinic" border="0" /></a>';
$random_banner[2] = '<a href="http://www.officedelegate.com/"><img src="http://qapla.com/juotbanners/banner_officedel.gif" alt="Office Delegate - Administrative Project Management" border="0" /></a>';
$random_banner[3] = '<a href="http://www.babyonhold.com/"><img src="http://qapla.com/juotbanners/bohbanner1.jpg" alt="Visit Baby on Hold" border="0" /></a>';
That code picks 1 of 3 random banners, you can obviously edit it for as many banners as you want... just add an entry for each and change the "3" in the rand() function to your max number.
Then in your ad_header_logo template, or wherever you want to show a banner ad:
PHP Code:
$random_banner[$random_number]
And you have a basic random banner setup.. though without the tracking options you want. There are random banner mods available but personally I never found one as simple as the above implementation.