Author Advertising Plugin

This plugin allows blog admins to create a revenue sharing program utilising one of the many advertising programs out there i.e Yahoo, Google Adsense, Amazon, Allposters etc. It can also be used as a banner manager, author photo/website widgets.. actually it has about a zillion uses. Give it a try and lemme know if you use it for anything really groovy.

Admin has complete control over…
The percentage of author’s ads to admin ad’s.
The user level that an author has to be before they get to participate in the revenue sharing program
Whether to randomise author ads on the front page of the blog.
The page that authors see before entering their publisher id.
Custom fields where you can collect additional information from your authors and display it.
The positioning and content of ads.
Up to three Author Advertising widgets.
Authors publisher ID’s, and other custom information (you can edit and delete an author’s advertising entries)

Installation

  • 1. Disable your Author Advertising/Adsense plugin (if any). If you’ve used this plugin before version 2.5 of Wordpress then you’ll need to delete your author_advertising table. You could always export the publisher information and import again using phpMyAdmin. You could also simply add two new columns to the table author_custom1 (text) and author_custom2 (text) and delete the kd_author_advertising option in the wp_options table.
  • 2. Upload author-advertising.php into your Wordpress plugins folder.
  • 3. Activate the plugin from your admin plugins menu.
  • 4. Change the admin options from Settings > Author Advertising Config.
  • 5. You can also modify author settings from Users > Author Advertising

Compatibility
This plugin is for Wordpress 2.6. Anything lower than 2.5 and all the admin pages will look as if they fell from the ugly tree and hit every branch. You should always use the latest version anyway ;P.
Many themes don’t support the automatic ad-placement that’s used in this plugin. To get around this simply disable the ads and use the included funtion in your theme or the tags in your post. Placement problems are due to the themes not the plugin.. (plugin works fine with default and classic themes ;)

Get it from the Plugin Directory

Usage
There are three ways to display ads on your site automatically, by modifying your theme or by inserting code into your posts.

Automatic Placement
Automatic Placement: The plugin gives you the option to use automatic placement. Simply check the checkboxes in the Dashboard > Settings > Author Advertising Config section.
If you have Ad Place 1 and 2 active then the Recent Posts widget will display ads before and after the list, I can’t help that but if you want to use Recent Posts then simply un-check Ad Place 1 % 2 and use the below template tags in your template.

Template Tags: Use the function <?php kd_template_ad($type); ?> in your template to specify where an ad will go. The $type variable is just a number from 1-4 corresponding to the ad boxes. So if you have an ad in Ad Place 3 and you’ve un-checked Active? then you simply put <?php kd_template_ad(3); ?> into your template to display the ad.

Tagging: Another way to display ads is by using the tags %authorad1%, %authorad2%, %authorad3% and %authorad4% in the post.

This plugin can be used for a number of different advertising services it could also be used as an on-site banner service so say you have 100 authors who also have their own websites you could implement a widget that rotates on the homepage showing the URLs of your authors’ websites.

Usage with Google Adsense
This plugin used to be Author Adsense but due to Google changing their advertising formats I decided to make this plugin more generic. Adsense can still be used however it means you’ll be allowing authors to enter a slot ID for their ads and they can change the ad colours and size of your ads. If you have trustworthy authors or a good moderation team then life should be simpler. Modify the page the authors see and activate a custom field. The custom field’s name will be Google Slot ID or something similar. Then in the Ad Place, put a google ad in and change the publisher ID field to %pubid% and the slot ID field to %custom1%.