|
The banner routine is admittedly pretty simple. The script already does a lot of database interaction, so I intentionally made the banner system... well, primitive, for lack of a better word.
Look in your /installdir/banners/ directory you should see a few files
like 0.html 1.html 2.html etc ..
These are the included sample banners. You can simply overwrite them, but I'd apreciate it if you left one or more in. 0.html is my own Google Adsense banner, and clicks on it are my only compensation for maintaining the script and this site.
So, copy the html for your banner, and paste it into a new .html file. Name the new HTML file with the next available number... 3.html should really be overwritten so.. name it 3.html
If you'd like to double that banner's chance of getting shown, copy 3.html to 4.html..
Want to triple it's odds? copy 4.html to 5.html
You can create as many banners as you like, just name them sequentially..
6.html, 7.html ... 218.html 219.html
If you want an ad shown more frequently than others, create multiple copies of it.
Finally, determine the highest number in the /banners directory, and enter that number
in include/config.php
So, if the highest is 12.html, change the $numbanners variable accordingly
[code]
// Set this to the number of banner files in the /banners directory.
$numbanners = "12";
[code]
On every page view, a random number between zero and $numbanners is selected, and the corresponding banner is displayed.
|