This plugin is compatible with google adsense policies. You can also use it with any other ad network. Author: Ahsan Sana Author URI: http://www.ahsan.pk Plugin URI: http://www.ahsan.pk/2011/05/wp-plugin-adsense-float/ */ /* Copyright 2011 ahsan.pk This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /* Version check */ global $wp_version; $exit_msg='Adsense Float requires WordPress 2.8 or newer. Please update!'; if (version_compare($wp_version,"2.8","<")) { exit ($exit_msg); } add_action('admin_menu', 'adsense_float_menu'); function adsense_float_menu() { add_options_page('Adsense Float Settings', 'Adsense Float', 'manage_options', 'adsense-float', 'adsense_float_options_page'); //call register settings function add_action( 'admin_init', 'adsense_float_admin_init' ); function adsense_float_admin_init() { //register our settings register_setting( 'adsense_float_options', 'adsense_float_plugin_options'); } function adsense_float_options_page() { ?>

Adsense Float

Adsense Adcode:

Please enter adsense code for 160x600 vertical ads only.

   
/> Disable Powered by Adsense Float link
Please consider writing a post about this plugin before disabling this option
 

 

This plugin will show one author's ad per hundred impressions. By using this plugin you consent to display author's ad on your site.
Option to disable it will be made available in future versions.

Adsense Float Homepage Help

Follow AdsenseFloat on Twitter

"; if ($options['adsense_adcode'] == "") echo $auth_ad; else { $random= mt_rand(1,100); if ($random == 47) echo $auth_ad; else echo $options['adsense_adcode']; } if ($options['credit'] != 1) echo "

Powered by Adsense Float

"; echo "
"; } add_action('wp_footer', 'show_float_adsense'); add_action('wp_head', 'place_in_header'); function place_in_header () { echo ""; } ?>