'', 'ab_dspcnt' => '', 'ab_target' => '', 'ab_adsense' => '', 'ab_adsense_fixed' => '', 'ab_adsense_pos' => '', 'ab_adsense_pubid' => '', 'ab_adsense_channel' => '', 'ab_adsense_corners' => '', 'ab_adsense_col_border' => '', 'ab_adsense_col_title' => '', 'ab_adsense_col_bg' => '', 'ab_adsense_col_txt' => '', 'ab_adsense_col_url' => '', 'ab_nocss' => '', 'ab_width' => '', 'ab_padding' => '', 'ab_nofollow' => '', 'ab_powered' => '', 'ab_yah' => '', 'ab_yourad' => '' ); $ol_flash = ''; if(isset($_POST['ab_dspcnt'])) { if (is_numeric ($_POST['ab_dspcnt'])) { $widget_adbuttons_cfg['ab_title'] = $_POST['ab_title']; $widget_adbuttons_cfg['ab_dspcnt'] = $_POST['ab_dspcnt']; $widget_adbuttons_cfg['ab_target'] = $_POST['ab_target']; $widget_adbuttons_cfg['ab_adsense'] = $_POST['ab_adsense']; $widget_adbuttons_cfg['ab_adsense_fixed'] = $_POST['ab_adsense_fixed']; $widget_adbuttons_cfg['ab_adsense_pos'] = $_POST['ab_adsense_pos']; if($widget_adbuttons_cfg['ab_adsense_pos'] > $widget_adbuttons_cfg['ab_dspcnt']){ $widget_adbuttons_cfg['ab_adsense_pos'] = $widget_adbuttons_cfg['ab_dspcnt']; } $widget_adbuttons_cfg['ab_adsense_pubid'] = $_POST['ab_adsense_pubid']; $widget_adbuttons_cfg['ab_adsense_channel'] = $_POST['ab_adsense_channel']; $widget_adbuttons_cfg['ab_adsense_corners'] = $_POST['ab_adsense_corners']; $widget_adbuttons_cfg['ab_adsense_col_border'] = trim($_POST['ab_adsense_col_border'], "#"); $widget_adbuttons_cfg['ab_adsense_col_title'] = trim($_POST['ab_adsense_col_title'], "#"); $widget_adbuttons_cfg['ab_adsense_col_bg'] = trim($_POST['ab_adsense_col_bg'], "#"); $widget_adbuttons_cfg['ab_adsense_col_txt'] = trim($_POST['ab_adsense_col_txt'], "#"); $widget_adbuttons_cfg['ab_adsense_col_url'] = trim($_POST['ab_adsense_col_url'], "#"); $widget_adbuttons_cfg['ab_nocss'] = $_POST['ab_nocss']; $widget_adbuttons_cfg['ab_width'] = $_POST['ab_width']; $widget_adbuttons_cfg['ab_padding'] = $_POST['ab_padding']; $widget_adbuttons_cfg['ab_nofollow'] = $_POST['ab_nofollow']; $widget_adbuttons_cfg['ab_powered'] = $_POST['ab_powered']; $widget_adbuttons_cfg['ab_yah'] = $_POST['ab_yah']; $widget_adbuttons_cfg['ab_yourad'] = $_POST['ab_yourad']; update_option('widget_adbuttons_cfg',$widget_adbuttons_cfg); $ol_flash = "Your settings have been saved."; } else { $ab_num_err = 1; } } ?>

' . $ol_flash . '

'; ?>

Ad Buttons Settings

'; ?> #dhtmlgoodies_colorPicker{ position:absolute; width:250px; padding-bottom:1px; background-color:#FFF; border:1px solid #317082; width: 252px; /* IE 5.x */ width/* */:/**/250px; /* Other browsers */ width: /**/250px; } #dhtmlgoodies_colorPicker .colorPicker_topRow{ padding-bottom:1px; border-bottom:3px double #317082; background-color:#E2EBED; padding-left:2px; width: 250px; /* IE 5.x */ width/* */:/**/248px; /* Other browsers */ width: /**/248px; height: 20px; /* IE 5.x */ height/* */:/**/16px; /* Other browsers */ height: /**/16px; } #dhtmlgoodies_colorPicker .colorPicker_statusBar{ height:13px; padding-bottom:2px; width:248px; border-top:3px double #317082; background-color:#E2EBED; padding-left:2px; clear:both; width: 250px; /* IE 5.x */ width/* */:/**/248px; /* Other browsers */ width: /**/248px; height: 18px; /* IE 5.x */ height/* */:/**/13px; /* Other browsers */ height: /**/13px; } #dhtmlgoodies_colorPicker .colorSquare{ margin-left:1px; margin-bottom:1px; float:left; border:1px solid #000; cursor:pointer; width: 12px; /* IE 5.x */ width/* */:/**/10px; /* Other browsers */ width: /**/10px; height: 12px; /* IE 5.x */ height/* */:/**/10px; /* Other browsers */ height: /**/10px; } .colorPickerTab_inactive,.colorPickerTab_active{ height:17px; padding-left:4px; cursor:pointer; } .colorPickerTab_inactive span{ background-image:url(\"".$ab_plugindir."/tab_left_inactive.gif\"); } .colorPickerTab_active span{ background-image:url(\"".$ab_plugindir."/tab_left_active.gif\"); } .colorPickerTab_inactive span, .colorPickerTab_active span{ line-height:16px; font-weight:bold; font-family:arial; font-size:11px; padding-top:1px; vertical-align:middle; background-position:top left; background-repeat: no-repeat; float:left; padding-left:6px; -moz-user-select:no; } .colorPickerTab_inactive img,.colorPickerTab_active img{ float:left; } .colorPickerCloseButton{ width:11px; height:11px; text-align:center; line-height:10px; border:1px solid #317082; position:absolute; right:1px; font-size:12px; font-weight:bold; top:1px; padding:1px; cursor:pointer; width: 15px; /* IE 5.x */ width/* */:/**/11px; /* Other browsers */ width: /**/11px; height: 15px; /* IE 5.x */ height/* */:/**/11px; /* Other browsers */ height: /**/11px; } #colorPicker_statusBarTxt{ font-size:11px; font-family:arial; vertical-align:top; line-height:13px; } form{ padding-left:5px; } .form_widget_amount_slider{ border-top:1px solid #9d9c99; border-left:1px solid #9d9c99; border-bottom:1px solid #eee; border-right:1px solid #eee; background-color:#f0ede0; position:absolute; bottom:0px; width: 5px; /* IE 5.x */ width/* */:/**/3px; /* Other browsers */ width: /**/3px; height: 5px; /* IE 5.x */ height/* */:/**/3px; /* Other browsers */ height: /**/3px; } .colorSliderLabel{ width:15px; height:20px; float:left; font-size:11px; font-weight:bold; } .colorSlider{ width:175px; height:20px; float:left; } .colorInput{ width:45px; height:20px; float:left; } .colorPreviewDiv{ width:186px; margin-right:2px; margin-top:1px; border:1px solid #CCC; height:20px; float:left; cursor:pointer; width: 188px; /* IE 5.x */ width/* */:/**/186px; /* Other browsers */ width: /**/186px; height: 22px; /* IE 5.x */ height/* */:/**/20px; /* Other browsers */ height: /**/20px; } .colorCodeDiv{ width:50px; height:20px; float:left; } "; ?>
Number of Ad Buttons to display in the sidebar widget
Target attribute for ad links > target "_blank"
> target "_top"
> don't use target attribute
open links in new tab/window
open links in current window
Strict DOCTYPE compatibility
Target attribute for ad links > use nofollow links
When checked, this ads the rel="nofollow" attribute to the Ad Buttons links
Link love > show 'powered by Ad Buttons' link
Show some link love to the author of this plugin. If you need to hide the link, please considerer making a small donation to the Ad Buttons project .

Show 'Your Ad Here' button > When checked, this shows a button linking to your advertizing details page
'Your Ad Here' page 0, 'child_of' => 0, 'selected' => $widget_adbuttons_cfg['ab_yourad'], 'echo' => 1, 'name' => 'ab_yourad' ); wp_dropdown_pages($args); ?> The page on your site that contains details about advertizing on your website. This page should contain contact details, website statistics, advertizing plans, etc.

AdSense > enable AdSense this adds one 125 x 125 AdSense ad to your rotating ad pool
AdSense fixed position show the adsense ad always in this ad position
Ad client " size="25" maxlength="25"> your AdSense Publisher ID (pub-xxxxxxxxxxxxxxxx)
Ad channel optional ad channel (needs to be created in your AdSense account first)
AdSense corner style AdSense corner style
AdSense colors
border color
title color
background color
text color
link color
use hex color codes with a lenght of 7 characters
(i.e. #FFFFFF = white, #000000 = black, #0000FF = blue)
preview of your current ad settings:
'; ?>
please remember not to click on your own AdSense ads, this will get you banned from AdSense!

Disable css styling > disable css check to disable below parameters for layout control. With some wordpress themes the layout breaks when using css styling on the ads
Ad block width width of your sidebar
Ad padding size of the padding arround your ads
preview:
#ab_adblock { width: '.$widget_adbuttons_cfg['ab_width'].'px; border:1px solid #ccc; padding:'.$widget_adbuttons_cfg['ab_padding'].'px; } #ab_adblock img { float: left; padding:'.$widget_adbuttons_cfg['ab_padding'].'px; } #ab_adsense { float: left; padding:'.$widget_adbuttons_cfg['ab_padding'].'px; } #ab_clear { clear: both; } '; ?>
'; } } echo''; $count = $count + 1; } if($widget_adbuttons_cfg['ab_adsense']){ if($widget_adbuttons_cfg['ab_adsense_pos']==$count){ echo '
'; } } ?>