Options || Ads: Check the best hotels in RoomsFinder.net Version: 1.0.2 Author: Rhino Liêm Author URI: http://www.liemmp.com */ 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"){ //Textlink echo ""; echo "
"; echo ""; echo "
"; echo ""; echo get_option('adslink_ads_text'); echo ""; echo "
"; echo "
"; }elseif(get_option('adslink_ads_type')=="4"){ //Custom echo ""; echo "
"; echo ""; echo "
"; echo get_option('adslink_ads_custom'); echo "
"; echo "
"; } } function adslink_imageandlink(){ $ads_text_default = "Put your ads text"; if(get_option('adslink_ads_text')==false){ add_option('adslink_ads_text',$ads_text_default); } $ads_text=get_option('adslink_ads_text'); $ads_text = explode(',',$ads_text); $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 = "http://www.youradslinkdomain.com/"; 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_text', $_POST['adslink_ads_text']); update_option('adslink_ads_custom', $_POST['adslink_ads_custom']); 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: Choose your ads type

Please select Ads type first

Step 2: 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!)

Text ads

Link to your content


(include http://)

Text Ads


Put your text link ads here (exam: Wordpress Plugin, Wordpress Theme).

Custom ads

Custom Key (For custom ads)


Put your custom key (exam: ads-post). Quảng cáo sẽ xuất hiện tùy thuộc vào giá trị của custom field bạn điền vào ở mỗi bài viết. Xem hướng dẫn thêm tại đây.

Important Note

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
YOUR ADS HERE
'>' width=''>