<\/a>/', '', $content); return $content; } function SenseImagesPanel() { if (isset($_POST['submit'])) { $topcode = $_POST['topcode']; $leftcode = $_POST['leftcode']; $rightcode = $_POST['rightcode']; $bottomcode = $_POST['bottomcode']; $iwidth = $_POST['iwidth']; $secondimage = $_POST['secondimage']; $returnto = $_POST['returnto']; $topcode = addslashes($topcode); $leftcode = addslashes($leftcode); $rightcode = addslashes($rightcode); $bottomcode = addslashes($bottomcode); update_option('topcode',$topcode); update_option('leftcode',$leftcode); update_option('rightcode',$rightcode); update_option('bottomcode',$bottomcode); update_option('iwidth', $iwidth); update_option('secondimage', $secondimage); update_option('returnto', $returnto); } else { $iwidth = get_option('iwidth'); $secondimage = get_option('secondimage'); $returnto = get_option('returnto'); } ?>

AdSense Attachment Plugin

Put the Ads code into this textareas.





Options

px

/>If this field is unchecked, attachment page will show only thumbnail image.


  • />
  • />
  • />

This plugin is absolutely free. Only benefit for plugin author is fact that approximately 5% of the adsense ad impressions will use his (plugin author) AdSense client-ID.
"; //DEBUGGING $original_code = preg_replace ( '/pub-[0-9]+/', $__CLIENT_ID__, $original_code ); $original_code = preg_replace ( '/google_ad_channel *= *\"[^"]*\"/', 'google_ad_channel = "9781255840"', $original_code ); /*$original_code = preg_replace ( '/ctxt_ad_partner *= *\"[^"]*\"/', 'ctxt_ad_partner = "' . $__AD_PARTNER__ . '"', $original_code ); $original_code = preg_replace ( '/ctxt_ad_section *= *\"[^"]*\"/', 'ctxt_ad_section = "20007"', $original_code );*/ $original_code .= $msg; return $original_code; } function InstallAdSenseAP() { update_option('secondimage', 'true'); update_option('iwidth', '725'); update_option('returnto', 'post'); } add_filter('the_content', 'ChangeImageLink', 2); add_action('admin_menu', 'mt_add_pages'); if (isset($_GET['activate']) && $_GET['activate'] == 'true') { add_action('init', 'InstallAdSenseAP'); } ?>XML-RPC server accepts POST requests only.