'http://www.widgetbucks.com/widget.page?action=call&widgetID=', 'www-signup' => 'http://www.widgetbucks.com/home.page?referrer=468034' ); class OX_Adnet_Widgetbucks extends OX_Adnet { /** * The short name for any ad of this type, used when generating a unique name for the ad, or creating class files */ var $shortName = 'Widgetbucks'; /** * The URL for the home page of the ad network site */ var $url = 'http://www.widgetbucks.com'; /** * The name of the network. Used when displaying ads by network. */ var $networkName = 'WidgetBucks'; function OX_Adnet_Widgetbucks() { $this->OX_Adnet(); } function get_default_properties() { $properties = array( 'slot' => '', ); return $properties + parent::get_default_properties(); } function import_detect_network($code) { return (preg_match('/(\w*)\.widgetbucks.com\/script\/(\w*).js\?uid=(\w*)/', $code, $matches)); } function import_settings($code) { // Import parent settings first! parent::import_settings($code); if (preg_match('/(\w*)\.widgetbucks.com\/script\/(\w*).js\?uid=(\w*)/', $code, $matches)!=0) { $this->set('slot', $matches[3]); $code = str_replace("{$matches[1]}.widgetbucks.com/script/{$matches[2]}.js?uid={$matches[3]}", "{$matches[1]}.widgetbucks.com/script/{$matches[2]}.js?uid={{slot}}", $code); } $this->set('code', $code); } function _form_settings_help() { ?>
Configuration is available through the WidgetBucks site. Account maintenance links: