'WidgetBucks',
'shortname' => 'widget',
'www' => 'http://www.widgetbucks.com/',
'www-create' => 'http://www.widgetbucks.com/widget.page?action=call&widgetID=',
'www-signup' => 'http://www.widgetbucks.com/home.page?referrer=468034'
);
/*
INITIALISATION
All functions in here called at startup (after other plugins have loaded, in case
we need to wait for the widget-plugin).
*/
class Ad_WidgetBucks extends Ad_Generic {
function Ad_WidgetBucks(){
$this->Ad_Generic();
}
function render_ad(){
$code ='';
$code .= '
';
$code .= '';
$code .= '
';
return $code;
}
function save_settings_network() {
$this->p['slot']=strip_tags(stripslashes($_POST['adsensem-slot']));
$this->p['code']=stripslashes($_POST['adsensem-code']);
}
function import_detect_network($code){
return ( preg_match('/http:\/\/....widgetbucks.com\/script\/ads.js\?uid=/', $code, $matches) !==0);
}
function import_settings($code){
if(preg_match("/http:\/\/....widgetbucks.com\/script\/ads.js\?uid=(\w*)\"/", $code, $matches)!=0){
//ACCOUNT ID? NEEDS DEFAULT IMPORT RULES. GAH.
//$_POST['adsensem-account-id'] = $matches[3];
$_POST['adsensem-slot'] = $matches[1];
}
$this->save_settings();
}
function _form_settings_network(){
?> | No network settings. |
Configuration is available through the WidgetBucks site.
Account maintenance links:
- My Widgets
View, manage and create widgets.
- My Bucks
View your account balance and payment schedule.
- My Settings
Change account details and other global settings.
|
'728 x 90 Leaderboard', '660x330' => '660 x 330 Custom', '468x60' => '468 x 60 Banner');
$formats['vertical']=array('120x600' => '120 x 600 Skyscraper', '160x300' => '160 x 300 Blog Sidebar', '160x600' => '160 x 600 Wide Skyscraper');
$formats['square']=array('300x250' => '300 x 250 Medium Rectangle', '250x250' => '250 x 250 Square');
return $formats;
}
//Middle
function admin_manage_column2(){
adsensem_admin::manage_dbxoutput(array('ad_format'));
}
}
?>