RSS Feed for This Post

WordPress Plugin AdSense-Deluxe

Updated for WordPress 2.0…
AdSense-Deluxe is an easy-to-use plugin for WordPress 1.5+ (including WP 2.0) for quickly inserting Google or Yahoo! ads into your blog posts, and managing when and where those ads are displayed. It was developed for my own use after an exhaustive search for a similar tool turned up nothing adequate.Have you added Google AdSense to your WordPress blog yet? Or maybe thought about it? I was thinking about this last year and knew I could do it generically in the templates, or painfully by pasting the AdSense code into each post I wanted it in, but neither seemed like the optimal way to accomplish my aims. I wanted some flexibility in deciding which posts ads appear in and perhaps some control of which ad format would display in any given blog post.


I found Phil Hord’s AdSense WordPress plugin (http://philhord.com/wp-hacks/adsense) and gave it a test. It’s simplicity was great and it offered some of the control I thought I wanted while avoiding template changes. Phil’s plugin is configured by pasting your AdSense code into the plugin PHP file, then adding an HTML comment (““<!–adsense–>””) anywhere in a post, then your ads are substituted for the placeholder when the post is served. The plugin operates in the common role of a WordPress filter hook.
,
Working from phil’s simple and effective design, I started digging into the basics of WordPress plugin coding to add some of my the items on my wish list. The first item on the list was having a choice in different AdSense code blocks. It would have been trivial to just put all the different blocks into the PHP code and use a bit of conditional logic for choosing among them, but that’s not very nice for anyone not comfortable mucking about in PHP source code. Which led me to discovering that plugins can have their own configuration pages….Cool!

AdSense-Deluxe Plugin Download & Version:

Selectively embed Google AdSense and Yahoo! Publisher Network ads in your WordPress posts.

Installation:

» Requires WordPress 1.5+ (including WP 2.0)
» Installed like most all WordPress plugins, just copy the adsense-deluxe.php file into wp-content/plugins
» See the ReadMe.txt file included with the download (before you email me for support!).

Source : http://wordpress.newspartner.net

More : www.acmetech.com

681 Read

Trackback URL