YPN unit to the panel. Version: 0.1 Author: Mike Johnson Author Url: http://solanosystems.com/ */ // You must edit the variables below to tie the extension to your particular account and style preferences! // yahoo ad client: your identifier that ties your ypn ads with your account $ypn_id = "1439023021"; // Yahoo ad section (reporting category). This number is generated by the YPN system, you have to get it from the YPN ad generation box in // your YPN admin section. $ypn_channel = "14470"; // type of yahoo ad unit to use // 1. 728 x 90 Leaderboard // 2. 468 x 60 Banner // 3. 300 x 250 Medium Rectangle // 4. 160 x 600 Wide Skyscraper // 5. 120 x 600 Skyscraper // 6. 336 x 280 Large Rectangle // 7. 250 x 250 Square // 8. 234 x 60 Half Banner // 9. 180 x 150 Small Rectangle // 10. 120 x 240 Vertical Banner $ypn_size = 4; // colors: all are 6 character hex values with no leading #symbol // border color (edge of boxes) $ypn_color_border = 'FFFFFF'; // individual ad background (background of boxes) $ypn_color_background = 'FFFFFF'; // ad title link color $ypn_color_link = '4B6DB7'; // color of URL of advertiser $ypn_color_url = '009900'; // color of ad text $ypn_color_text = '333333'; // if there are no ads found for your page, replace public service ads with an empty colored box. // set the color for the box here, OR use an alternate URL (below) OR leave both empty to allow public service ads. // more information on alternate ad content is available here: http://www.google.com/support/adsense/bin/static.py?page=alternateads.html $ypn_color_altcolor = 'FFFFFF'; $ypn_arr_sizes = array( 1 => '728x90_as', 2 => '468x60_as', 3 => '300x250_as', 4 => '160x600_as', 5 => '120x600_as', 6 => '336x280_as', 7 => '250x250_as', 8 => '234x60_as', 9 => '180x150_as', 10 => '120x240_as' ); $ypn_dim_x = array( 1 => 728, 2 => 468, 3 => 300, 4 => 160, 5 => 120, 6 => 336, 7 => 250, 8 => 234, 9 => 180, 10 => 120 ); $ypn_dim_y = array( 1 => 90, 2 => 60, 3 => 250, 4 => 600, 5 => 600, 6 => 280, 7 => 250, 8 => 60, 9 => 150, 10 => 240 ); $ypn_channel_code = ''; if(!empty($ypn_channel)){ $ypn_channel_code = 'ctxt_ad_section ="'.$ypn_channel.'";'; } $ypn_altcolor_code = ''; if(!empty($ypn_color_altcolor)){ $ypn_altcolor_code = 'ctxt_ad_bg = "'.$ypn_color_altcolor.'";'; } if(in_array($Context->SelfUrl, array("index.php", "categories.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))){ $adcode = <<< ENDCODE
ENDCODE; $Panel->AddString($adcode,false); } ?>