Options Version: 1.0.3 Author: Rhino Liêm Author URI: http://www.liemmp.com */ function self_deprecating_sidebar_registration(){ register_sidebar(array( 'name' => __( 'Ads custom code' ), 'id' => 'ads-custom-right-sidebar', 'description' => __( 'Put your ads code by your custom. This will appear in right bottom' ), 'before_title' => '

', 'after_title' => '

' )); } function adslink(){ if (get_option('adslink_ads_type')=="1"){ //Flash echo ""; echo "
"; echo ""; echo "
"; echo ""; echo "
"; echo "
"; }elseif(get_option('adslink_ads_type')=="2"){ //Image echo ""; echo "
"; echo ""; echo "
"; echo ""; echo ""; echo ""; echo "
"; echo "
"; }elseif(get_option('adslink_ads_type')=="3"){ //Custom echo ""; echo "
"; echo ""; echo "
"; echo dynamic_sidebar('Ads custom code'); echo "
"; echo "
"; } } function adslink_imageandlink(){ $ads_flash_default = "/wp-content/plugins/ads-in-right-bottom/image/ads-in-right-bottom.swf"; if(get_option('adslink_ads_flash')==false){ add_option('adslink_ads_flash',$ads_flash_default); } $ads_flash=get_option('adslink_ads_flash'); $ads_flash = explode(',',$ads_flash); $ads_image_default = "/wp-content/plugins/ads-in-right-bottom/image/ads-right-bottom.jpg"; if(get_option('adslink_ads_image')==false){ add_option('adslink_ads_image',$ads_image_default); } $ads_image=get_option('adslink_ads_image'); $ads_image = explode(',',$ads_image); $ads_link_default = ""; if(get_option('adslink_ads_link')==false){ add_option('adslink_ads_link',$ads_link_default); } $ads_link=get_option('adslink_ads_link'); $ads_link = explode(',',$ads_link); $ads_width_default = "200"; if(get_option('adslink_ads_width')==false){ add_option('adslink_ads_width',$ads_width_default); } $ads_width=get_option('adslink_ads_width'); $ads_width = explode(',',$ads_width); $ads_height_default = "263"; if(get_option('adslink_ads_height')==false){ add_option('adslink_ads_height',$ads_height_default); } $ads_height=get_option('adslink_ads_height'); $ads_height = explode(',',$ads_height); $ads_type_default = "2"; if(get_option('adslink_ads_type')==false){ add_option('adslink_ads_type',$ads_type_default); } $ads_type=get_option('adslink_ads_type'); $ads_type = explode(',',$ads_type); } function adslink_admin_menu(){ if (function_exists('add_submenu_page') ) { add_submenu_page('plugins.php', __('Ads link bottom'), __('Ads link bottom'),'manage_options' , 'adslink-options','adslink_options'); } } function adslink_options(){ if ( isset($_POST['submit']) ) { if ( function_exists('current_user_can') && !current_user_can('manage_options') ){ die(__('Are you admin?')); } update_option('adslink_ads_type',$_POST['adslink_ads_type']); update_option('adslink_ads_image', $_POST['adslink_ads_image']); update_option('adslink_ads_flash', $_POST['adslink_ads_flash']); update_option('adslink_ads_link', $_POST['adslink_ads_link']); update_option('adslink_ads_width', $_POST['adslink_ads_width']); update_option('adslink_ads_height', $_POST['adslink_ads_height']); } if ( !empty($_POST)) : ?>

Ads link and image

Step 1: Configure your ads

Flash ads

Flash url


(include http:// - .swf)

Flash file width


(Pixels of image, only number please!)

Flash file height


(Pixels of image, only number please!)

Image ads

Link to your content


(include http://)

Image url


(include http:// - .jpg, .gif....)

Image width


(Pixels of image, only number please!)

Image height


(Pixels of image, only number please!)

Widget Custom ads

Guideline

If you choose this option, you could put everything you like in to Ads right bottom box.
Please put your Ads code to Ads custom code Sidebar.
In this tutorial, I use Text widget.

To make your plugin more stronger, you may intergate Custom Ads Sidebar. This plugin will put your ads in to right bottom with flexible effect.

Step 2: Choose your ads type

Please select Ads type to display

Step 3: Display your ads

To display your ads, please insert this code into your theme (recommend footer.php)
<?php if(function_exists('adslink')) { adslink(); } ?>

If you find this plugin useful, please rate at wordpress plugin dir or send me a cup of coffee
' width='' height=''>