July 2, 2006
Adsense Injection MOD
Dax Herrera had written a great Adsense Injection Wordpress plugin that injects Google ads in Wordpress.
The only problem that it tends to break the code if a post does not begin with a <p> tag.
This prompted me to start modding the plugin and I got a bit carried away and after about four hours added some more stuff to it. So here we go:
Added
- $marker into replacement procedure instead of <p> so it won’t be breaking the whole thing if a post starts with something other than <p>
- 336×280 Large Rectangle format
- Alternative Colour and Alt URL options (if no URL - goes for color, if no color - goes FFFFFF)
- text, text_image, image, options
- CSS formatting - top bottom inner outer
- ads not shown in preview
Changed
- increased the number of ads from 3 to 4 (probably pointless)
- ad channel outputs only when channel is set
- re-ordered formats (as in Google) plus added format names
- minor cosmetic HTML changes
Download it here: Adsense Injection MODed by LZZR
tags: google adsense, wordpress, wordpress plugin
Posted by LZZR under Stuff | Comments (6)































