OX_Ad($aAd); } /** * This function is called statically from the ad engine. Use this function to put any hooks in the ad engine that you want to use. */ function register_plugin(&$engine) { $engine->addAction('ad_network', get_class($this)); } function get_network_property_defaults() { $properties = array( 'slot' => '', ); return $properties + parent::get_network_property_defaults(); } function get_ad_colors() { return array('border', 'title', 'bg', 'text'); } function import_detect_network($code) { return (preg_match('/(\w*)\.widgetbucks.com\/script\/(\w*).js\?uid=(\w*)/', $code, $matches)); } function import_settings($code) { if (preg_match('/(\w*)\.widgetbucks.com\/script\/(\w*).js\?uid=(\w*)/', $code, $matches)!=0) { $this->set_property('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); } parent::import_settings($code); } function _form_settings_help() { ?>

Configuration is available through the WidgetBucks site. Account maintenance links:

*/ ?>