Permanently Disable AdSense-Deluxe WordPress Plugin Reward Plugin Author Option
AdSense-Deluxe is a WordPress (works in WordPress 1.5 and 2.0) plug-in by Acme Technologies Zeitgeist which offers WordPress bloggers various advanced yet easy to use options for managing the automatic insertion of Google AdSense or Yahoo Publisher Network (YPN) ads code or any other JavaScript-based advertising networks’ ads code into your WordPress posts, and flexibly control when and where those ads are displayed inside the posts.
The AdSense-Deluxe plugin for WordPress has include a Reward Plugin Author option which if enabled and checked, will reward the AdSense-Deluxe plug-in author with approximately 5% of the AdSense and Yahoo! Publisher Network (YPN) ad impressions on your blog by replacing your AdSense client-ID or YPN ad partnet ID with author’s AdSense client-ID or author’s YPN publisher ID when the plugin process and insert your AdSense code or YPN ads code into the blog.
The option is disabled by default when you first activate the AdSense-Deluxe plugin. However, when the plugin insert the AdSense code or YPN code into the blog’s post or page, it doesn’t check for the Reward Author option setting to see if it’s enable or disable or whether it should replace the AdSense client-ID or YPN partner-ID befor. Thus, AdSense-Deluxe plugin will replace and change the AdSense client-ID or YPN ad partner-ID to author’s no matter what option the plugin users select for Reward Plugin Author setting.
The block of code that does the replacement of ads ID on the ads code and its conditions of checking that the plugin will check before it does the change is as following:
if( rand(0, 100) >= 95 && ! $EDITING_PAGE ){
if( is_single() || is_page() ){
$msg .= “\n“; //DEBUGGING
$subbed = preg_replace ( ‘/pub-[0-9]+/’, $__ACMETECH_CLIENT_ID__, $subs );
$subs = preg_replace ( ‘/google_ad_channel *= *\”[^"]*\”/’, ‘google_ad_channel = “1478884331″‘, $subbed );
$subbed = preg_replace ( ‘/ctxt_ad_partner *= *\”[^"]*\”/’, ‘ctxt_ad_partner = “‘ . $__ACMETECH_AD_PARTNER__ . ‘”‘, $subs );
$subs = preg_replace ( ‘/ctxt_ad_section *= *\”[^"]*\”/’, ‘ctxt_ad_section = “20007″‘, $subbed );
}
}
The only conditions checked are if it’s actual posts or actual pages served to visitors and your ads will rotate with 6 out of 101 (5.94%) of the AdSense and YPN ads impressions will belong to author’s. Also change in the ads code are AdSense channel and Yahoo Publisher Network (YPN) ad section.
It’s a good idea to reward the plugin author for the hardwork and effort, but obviously the option the provided in the plugin itself is not functioning, and it may possibly cost the plug-in users some financial consequences. So to disable totally the reward author option, just comment out the four lines of code that do the replacement of IDs with //. You can edit the plugin by using Plug Editor in Plugins menu and then select Adsense-Deluxe. The new code should looks like this:
if( rand(0, 100) >= 95 && ! $EDITING_PAGE ){
if( is_single() || is_page() ){
$msg .= “\n“; //DEBUGGING
// $subbed = preg_replace ( ‘/pub-[0-9]+/’, $__ACMETECH_CLIENT_ID__, $subs );
// $subs = preg_replace ( ‘/google_ad_channel *= *\”[^"]*\”/’, ‘google_ad_channel = “1478884331″‘, $subbed );
// $subbed = preg_replace ( ‘/ctxt_ad_partner *= *\”[^"]*\”/’, ‘ctxt_ad_partner = “‘ . $__ACMETECH_AD_PARTNER__ . ‘”‘, $subs );
// $subs = preg_replace ( ‘/ctxt_ad_section *= *\”[^"]*\”/’, ‘ctxt_ad_section = “20007″‘, $subbed );
}
}
Else, if you want to reduce the frequency and percentage of chance the Adsense-Deluxe plugin author’s impressions on your AdSense or YPN ads, just change the number 95 on the first line of code above to higher number between 96 and 100, where 100 will give the author’s IDs to appear 1 every 101 impressions in random, and 96 will be 5 out of 101, and so on.
Related Articles
- Caption Disabler WordPress Plugin to Disable and Remove Captions Functionality
- How to Disable or Hide WordPress.com Automattic Stats Plugin Smiley Icon
- Disable or Turn Off Windows XP Security Center Permanently
- Alternative Payment Option from Google AdSense via Western Union Quick Cash Service
- Tag Managing Thing Plugin for WordPress 2.3 or Above
- Technorati Incoming Links Plugin for WordPress
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin
- Using Invisible Counter with Official StatCounter Plugin for WordPress
- StatTraq - Wordpress Plugin for Site Statistic and Traffic Counter
- WLWManifest Disabler Plugin to Remove XLM Link in WordPress Blog Header










































February 21st, 2007 17:33
awesome thank for this
June 28th, 2006 03:08
Well that was a bad error to make. But it’s fixed now in v0.8. Thanks for discovering that.
Update available from this page: http://www.acmetech.com/blog/2005/07/26/adsense-deluxe-wordpress-plugin/
-wayne
PS: another version is in the works which allow blogs owners to share revenue with multiple authors such that for each post written by a given author, a percentage of the time their adsense/YPN ID would be used, thus rewarding authors for the content they write (and of course more popular posts would tend to generate more income for the author). The blog admin will be able to set the ratio for when the author’s ID is used instead of the blog owner’s ID.
June 28th, 2006 02:09
I’m the author of the plugin, and if there is some error in the code, I will fix that. But I would never intentionally or covertly ignore the selection the blog owner makes with respect to that “reward author” option. I have been publishing software since 1995 and reputation is vital for any business owner, so this is not something I would do. Moreover, I urge people to consider the fact that anyone doing something like this when the source code is so easily viewed would be pretty boneheaded. I’m not that boneheaded…
I’ll look into this now and if either get an update released today, or report back my findings if they differ.
thanks.
-wayne