This script can be pasted in any parts of the php templete, comments.tpl, node.tpl, all tpl files. I ahve attested it modify with your needs.
1. you need to specify the where the ads text residing is residing. If its in the FILES folder then u have to write files/ads.txt. Create a file named ads.txt or whatever and put all the ad codes inside that file in the format mentioned below.
2 you need to write ~ after ever script.for eg
~
ad code (may be banner ads found in commission junction, amazon associates,adsense or any script)
~
ad code (may be banner ads found in commission junction, amazon associates,adsense or any script)
~
3. All ads are supported Adsense, flash, banner, bla, bla.
4. You only need to properly place the script in the .tpl files.
6. if you put a header ad the you probably will add a 468x60 banner. Then so all ads in that ads.txt file should of 468x60 dimension, if you put in 120x600 your layout will get corrupt.
7. you can create multiple sections ads, you only need to create multiple txt files of different name and specify the path to it in the script.
8. The script will randomly display ads. You can insert multiple ads in the .tpl file, only need to change the align tag to your need.
See it for yourself at http://thinktechno.com
| Comment | File | Size | Author |
|---|---|---|---|
| ad_rotator_2.txt | 209 bytes | maina231 |
Comments
Comment #1
pfaocleNow thats what I call a proper duplicate... see node/48910