<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>D3so.com - A Celebrity In The Making &#187; Wordpress</title>
	<atom:link href="http://www.d3so.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.d3so.com</link>
	<description>Follow me on Twitter @d3so for Current Updates.</description>
	<lastBuildDate>Wed, 16 Nov 2011 00:45:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Fix Adsense-Deluxe Plugin for WordPress 3.0</title>
		<link>http://www.d3so.com/fix-adsense-deluxe-plugin-for-wordpress-3-0/</link>
		<comments>http://www.d3so.com/fix-adsense-deluxe-plugin-for-wordpress-3-0/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 04:22:44 +0000</pubDate>
		<dc:creator>d3so</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://www.d3so.com/?p=295</guid>
		<description><![CDATA[		<script type="text/javascript">
		function sbmgValidateFormPostPg1(name,email) { 
						var name_fld = document.getElementById('sbmgValidateFormPostPg1' + '_' + name);
						var email_fld = document.getElementById('sbmgValidateFormPostPg1' + '_' + email);
			var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
			var msg = '';
						if ( name_fld.value == '' ) msg = '- Name Required\n';
						if ( reg.test(email_fld.value) == false ) msg += '- Valid Email Required';
			if ( msg == '' ) return true;
			else alert(msg);
			return false;
		}</script>
		It seems that this was a popular plugin back then, and when someone recommended it, I found out it didn&#8217;t work with the current version of wordpress. I sought out a fix and this should be able to get the Adsense-Deluxe plugin working again, for the 3.0.1 version of wordpress at least. Before we get [...]]]></description>
			<content:encoded><![CDATA[		<script type="text/javascript">
		function sbmgValidateFormPostPg2(name,email) { 
						var name_fld = document.getElementById('sbmgValidateFormPostPg2' + '_' + name);
						var email_fld = document.getElementById('sbmgValidateFormPostPg2' + '_' + email);
			var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
			var msg = '';
						if ( name_fld.value == '' ) msg = '- Name Required\n';
						if ( reg.test(email_fld.value) == false ) msg += '- Valid Email Required';
			if ( msg == '' ) return true;
			else alert(msg);
			return false;
		}</script>
		<p>It seems that this was a popular plugin back then, and when someone recommended it, I found out it didn&#8217;t work with the current version of wordpress. I sought out a fix and this should be able to get the Adsense-Deluxe plugin working again, for the 3.0.1 version of wordpress at least.</p>
<p>Before we get started, take note that I&#8217;m not liable for any damages that you might experience when editing the plugin. Edit at your own risk!</p>
<p>You need to edit two areas of the plugin code to access the menu for the plugin.</p>
<p>First, go to &#8220;Plugins&#8221;, then &#8220;Editor&#8221;. Select &#8220;Adsense-Deluxe&#8221; from the list to edit it.</p>
<p><img src="http://farm5.static.flickr.com/4068/4661370457_410d8e1a6b.jpg" alt="" /></p>
<p>Before touching any code, back it up by copy and pasting onto Notepad.</p>
<p>Now, find the first code to edit toward the bottom near line 1013.</p>
<p><img src="http://farm5.static.flickr.com/4033/4661370549_8dd4920d95.jpg" alt="" /></p>
<p>You need to comment out the conflicting code by inputting /* on the line above and */ on the below.</p>
<p><img src="http://farm5.static.flickr.com/4071/4661370591_bd69c88e76.jpg" alt="" /></p>
<p>Next, add this code below what was commented out:</p>
<blockquote>
<pre><code>function add_adsense_deluxe_menu(){</code>

add_options_page(__('AdSense-Deluxe Configuration', 'adsense-deluxe'), 

__('AdSense-Deluxe', 'adsense-deluxe'), 8, 'adsense-deluxe', 

'AdsenseDeluxeAdminPage');

} 

function AdsenseDeluxeAdminPage(){

require (WP_PLUGIN_DIR . '/adsense-deluxe.php');

}
</pre>
</blockquote>
<p><img src="http://farm2.static.flickr.com/1277/4661991360_767c0aec6a.jpg" alt="addel4 by you." width="499" height="472" /></p>
<p>The last piece of code can be edited around line 1095. Find and delete this code:</p>
<blockquote>
<pre><code>add_action('admin_head', 'add_adsense_deluxe_menu');

</code></pre>
</blockquote>
<p><img src="http://farm5.static.flickr.com/4028/4661370737_58f90d92ff.jpg" alt="" /></p>
<p>Replace it with this code:</p>
<blockquote>
<pre><code>add_action('admin_menu', 'add_adsense_deluxe_menu');
</code></pre>
</blockquote>
<p><img src="http://farm5.static.flickr.com/4053/4661991524_672b703308.jpg" alt="" /></p>
<p>After that, just click &#8220;Update&#8221;. Make sure the file permissions are set to 666 or 777, whatever works, so you can update the file accordingly. You should be able to gain access to the plugin settings and use it as you desire. This fix currently works with WordPress 3.0 using <a href="http://www.acmetech.com/blog/2005/07/26/adsense-deluxe-wordpress-plugin/">Adsense-Deluxe 0.8</a>; there&#8217;s no guarantee it&#8217;ll work with future versions. I hope the developers get around to updating the plugin. In the mean time, take care!</p>
<p>P.S. Do you know of a better adsense plugin? Share it here!</p>
<p>P.P.S. Here&#8217;s the edited plugin file that I use myself. <a href="http://www.mediafire.com/?krd2g8nr776j5gn">Download</a></p>
<p>P.P.P.S. I don&#8217;t offer any tech support for this plugin. It either works for you or it doesn&#8217;t.</p>
<form action="http://www.aweber.com/scripts/addlead.pl" method="post" onsubmit="return sbmgValidateFormPostPg2('name','from')"><input type="hidden" name="meta_web_form_id" value="394147091" /><input type="hidden" name="meta_split_id" value="" /><input type="hidden" name="listname" value="d3sonewsletter" /><input type="hidden" name="redirect" value="http://www.aweber.com/thankyou-coi.htm?m=text" id="redirect_568171590350397b7f4f1a708e766d7c" /><input type="hidden" name="meta_adtracking" value="subscribers_magnet"><input type="hidden" name="meta_message" value="1" /><input type="hidden" name="meta_required" value="name,email" /><input type="hidden" name="meta_tooltip" value="" /><div align="center" style="padding:6px;;"><div align="left" style="width:300px; height:auto; border:1px solid #E3E3E3; background-color:#FFFFCC; ;  padding:10px 15px 10px 15px; ">
						<div style="padding-bottom:5px;font-family:Trebuchet MS, sans-serif;font-size:14px;"><span style="font-size: medium;"><strong>Subscribe to My Newsletter</strong></span></div>
						<div style="padding-bottom:7px;font-family:Trebuchet MS, sans-serif;font-size:12px;">Receive the latest news on internet marketing, blogging, and premium content downloads straight to your inbox. All for FREE!</div><div align="right" style="font-family:Trebuchet MS, sans-serif;font-size:14px; padding-bottom:5px; margin:0px 10px 0px 5px; padding-right:15px; width:45; color:#000000;font-family:;font-weight:bold  "> 
							<div align="center" style="float:left; margin:0px 5px 0px 10px;">Name:&nbsp;</div>	
								<input type="text" name="name" value="" id="sbmgValidateFormPostPg2_name" style="font-family:Trebuchet MS, sans-serif;font-size:11px;width:185px;border:1px solid #BABABA; background-color:#FFFFFF" />
						</div><div align="right" style="font-family:Trebuchet MS, sans-serif;font-size:14px; padding-bottom:5px;  margin:0px 10px 0px 5px; padding-right:15px; width:45; color:#000000;font-family:;font-weight:bold " >
							<div align="center" style="float:left; margin:0px 5px 0px 10px;">Email:&nbsp;</div>
								<input type="text" name="from" value="" id="sbmgValidateFormPostPg2_from" style="font-family:Trebuchet MS, sans-serif;font-size:11px;width:185px;border:1px solid #BABABA;  background-color:#FFFFFF" />
						</div>
						
						<div align="left" style="padding-bottom:8px;  padding-right:15px; padding-left:45px; margin:0px 10px 0px 5px;">
							<div style="float:left; margin:0px 5px 0px 10px;">&nbsp;</div>
								<input name="submit" type="submit" style="font-family:Trebuchet MS, sans-serif;font-size:13px;font-weight:bold;border:1px solid #6B4000; border-right-width:2px; border-bottom-width:2px; background-color:#FEB333; color:#03042E; font-weight:normal" value="Subscribe Me" />
						</div>	
						<div style="line-height:13px;padding-bottom:5px;font-family:Trebuchet MS, sans-serif;font-size:12px;"></div><div align="center" ><a href="&pid=35" target="_blank" style="font-size:x-small;color:#000000;text-decoration:underline"></a></div></div></div></form>]]></content:encoded>
			<wfw:commentRss>http://www.d3so.com/fix-adsense-deluxe-plugin-for-wordpress-3-0/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

