<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>Best AdSense Ready WP Themes</title>
	<link>http://g2y.net</link>
	<description>The Best AdSense Ready Themes for WordPress</description>
	<pubDate>Sat, 03 Jan 2009 17:52:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>AdSense Share MU Plugin version 1.2.2</title>
		<link>http://g2y.net/blog/2008/05/11/adsense-share-mu-plugin-version-122/</link>
		<comments>http://g2y.net/blog/2008/05/11/adsense-share-mu-plugin-version-122/#comments</comments>
		<pubDate>Mon, 12 May 2008 00:16:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[adsense plugin]]></category>

		<category><![CDATA[adsense share mu]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://g2y.net/blog/2008/05/11/adsense-share-mu-plugin-version-122/</guid>
		<description><![CDATA[This is the AdSense Share MU plugin for WordPress by Elad Salomons, and customized by PRMoney.com
It has been tested and is compatible with WordPress MU version 1.2.2
If you’re looking for one that works with the non-MU version of WP, you can download it from this post:
http://g2y.net/blog/2008/05/11/simple-adsense-plugin-for-wordpress/
AdSense Share MU has options for your share percentage, AdSense [...]]]></description>
			<content:encoded><![CDATA[<p>This is the AdSense Share MU plugin for WordPress by <a href="http://www.ringofblogs.com/" title="Ring of Blogs">Elad Salomons</a>, and customized by <a href="http://prmoney.com" title="PRMoney - Make Money Blogging Today!">PRMoney.com</a></p>
<p>It has been tested and is compatible with WordPress MU version 1.2.2</p>
<p><strong>If you’re looking for one that works with the non-MU version of WP, you can download it from this post:</strong><br />
<a href="http://g2y.net/blog/2008/05/11/simple-adsense-plugin-for-wordpress/" title="Simple AdSense Plugin">http://g2y.net/blog/2008/05/11/simple-adsense-plugin-for-wordpress/</a></p>
<p>AdSense Share MU has options for your share percentage, AdSense Publisher ID, channel, and search channel to allow you to better track where your AdSense revenue is being generated. Your WP MU users will have options for their Publisher ID, channel, and search channel as well.</p>
<p>Most G2Y.net&#8217;s AdSense-ready WP templates have been customized to use google search instead of the default WordPress search. That increases your MU blog&#8217;s revenue potential!</p>
<p>The AdSense revenue will be split with your blog users based on whatever you select for your share percentage. If your users don&#8217;t configure their AdSense options, your ads are displayed 100% of the time. If you select 20%, your ads will be shown 20% of the time, and theirs will be shown 80%.</p>
<p>This customized version has been altered in a couple of ways:</p>
<ul>
<li><strong>The widget capability has been removed.</strong><br />
I didn&#8217;t like the way it worked, and found a better way to use widgets in each template.</li>
<li><strong>Some code was added to help prevent users from clicking on their own ads.</strong><br />
If the blog user is logged in, the get_adsense_code script will return the MU owner&#8217;s AdSense settings.</li>
<li><strong>AdSense Search Channel option was added.</strong><br />
All of the G2Y AdSense ready templates have been customized to use Google&#8217;s search instead of the WordPress built-in search. If you configure an AdSense Search Channel ID, it will be used in the search widgets to better track your revenue.</li>
<li><strong>Minor cosmetic changes.</strong><br />
Fixed several word capitalizations. Added some help to the option pages. Added links for creating an AdSense account, and a link back to the creator and customizer.</li>
</ul>
<h2></h2>
<h2>Download:</h2>
<p>Download the latest version here:<br />
<a href="http://g2y.net/files/2008/05/adsense_share_mu_v122.zip" title="AdSense Share MU Plugin version 1.2.2">AdSense Share MU Plugin version 1.2.2</p>
<p></a></p>
<p><a href="http://g2y.net/files/2008/05/simple_adsense_v10.zip" title="Simple AdSense Plugin version 1.0"></a></p>
<h2>Installation:</h2>
<p>Installation is simple. Just unzip &amp; upload it to your WordPress wp-content/mu-plugins directory and it will instantly become active on all blogs in your MU installation.</p>
<p>As an MU site admin, you&#8217;ll find the options under &#8220;Site Admin&#8221;, and then &#8220;AdSense Share&#8221;:<br />
<img src="http://g2y.net/files/2008/05/adsense_share_admin_screenshot.png" alt="AdSense Share MU Plugin - Admin settings screenshot" /></p>
<p>Your MU blog users will find the AdSense options under &#8220;Options, and then &#8220;AdSense Publisher&#8221;:</p>
<p align="left"> <img src="http://g2y.net/files/2008/05/adsense_share_user_screenshot.png" alt="AdSense Share MU Plugin - User settings screenshot" /></p>
<p align="left">&nbsp;</p>
<h2>Usage:</h2>
<p>Detailed usage instructions can be found in the <a href="http://g2y.net/blog/2008/05/11/simple-adsense-plugin-for-wordpress/" title="Simple AdSense Plugin">Simple AdSense Plugin Download Page</a>.</p>
<p>Feel free to download some G2Y AdSense-ready templates to explore some neat integration tricks for maximum click-through ratios.</p>
]]></content:encoded>
			<wfw:commentRss>http://g2y.net/blog/2008/05/11/adsense-share-mu-plugin-version-122/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Simple AdSense Plugin for WordPress</title>
		<link>http://g2y.net/blog/2008/05/11/simple-adsense-plugin-for-wordpress/</link>
		<comments>http://g2y.net/blog/2008/05/11/simple-adsense-plugin-for-wordpress/#comments</comments>
		<pubDate>Sun, 11 May 2008 16:45:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[adsense plugin]]></category>

		<category><![CDATA[simple adsense]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://g2y.net/blog/2008/05/11/simple-adsense-plugin-for-wordpress/</guid>
		<description><![CDATA[This is the Simple AdSense plugin for WordPress by PRmoney.com, based on work done by Elad Salomons.
It has been tested and is compatible with WordPress version 2.5.
If you&#8217;re looking for one that works with MP MU, you can download it from this post:
http://g2y.net/blog/2008/05/11/adsense-share-mu-plugin-version-122/

Simple AdSense has options for your AdSense Publisher ID, channel, and search channel [...]]]></description>
			<content:encoded><![CDATA[<p>This is the Simple AdSense plugin for WordPress by <a href="http://prmoney.com" title="PRMoney - Make Money Blogging Today!">PRmoney.com</a>, based on work done by <a href="http://www.ringofblogs.com" title="Ring of Blogs">Elad Salomons</a>.</p>
<p>It has been tested and is compatible with WordPress version 2.5.</p>
<p><strong>If you&#8217;re looking for one that works with MP MU, you can download it from this post:<br />
</strong><a href="http://g2y.net/blog/2008/05/11/adsense-share-mu-plugin-version-122/" title="AdSense Share MU Plugin">http://g2y.net/blog/2008/05/11/adsense-share-mu-plugin-version-122/</a><strong><br />
</strong></p>
<p>Simple AdSense has options for your AdSense Publisher ID, channel, and search channel to allow you to better track where your AdSense revenue is being generated.</p>
<h2>Download:</h2>
<p>Download the latest version here:<br />
<a href="http://g2y.net/files/2008/05/simple_adsense_v10.zip" title="Simple AdSense Plugin version 1.0">Simple AdSense Plugin version 1.0</a></p>
<h2>Installation:</h2>
<p>Installation is simple. Just upload it to your WordPress wp-content/plugin directory, then activate it by logging into your blog as admin and click on the &#8220;Activate&#8221; action link on the Simple AdSense plugin row:</p>
<p><img src="http://g2y.net/files/2008/05/sa_activate_screenshot.png" alt="Activate Simple AdSense Plugin" /></p>
<p>Once you&#8217;ve activated it, click on the settings link, and then click on &#8220;Simple AdSense&#8221; to configure the settings :</p>
<p><img src="http://g2y.net/files/2008/05/simple_adsense_screenshot.png" alt="Simple AdSense Screenshot" /></p>
<p>All you are required to enter is your AdSense Publisher ID. The Channel and Search Channel are completely optional and are only included to better track your AdSense revenue.</p>
<p><strong>NOTE:</strong> Google has started using Ad Slots as well as Channels. They are not the same thing. You must enter your AdSense Channel ID in order for Simple AdSense to work correctly. The channel ID can be found in your Google AdSense Channel settings: <a href="https://www.google.com/adsense/channels" title="AdSense Channel Settings">https://www.google.com/adsense/channels</a></p>
<h2>Usage:</h2>
<p>The themes on G2Y are already customized for use with the Simple AdSense Plugin, so there&#8217;s nothing more to be done for them- just download &amp; install the theme and then download &amp; install the Simple AdSense plugin.</p>
<p>You&#8217;ll need to have decent knowledge of CSS, HTML, and PHP  in order to implement the actual AdSense ads into an existing template that is not found on G2Y. Feel free to send an email to support@g2y.net if you&#8217;re not up to the challenge, and we&#8217;ll update your template for you. The only caveat is that we will add your template to G2Y site for others to download for free, so be sure you have the rights everything in your template.</p>
<p>If you&#8217;re feeling brave, these instructions should help you get started:</p>
<p>The only function you should be concerned with is called get_adsense_code. It&#8217;s used in your theme like so:</p>
<pre>if(function_exists('get_adsense_code')) {
	list ($adsense_code,$adsense_channel,$adsense_search_channel,$adsense_owner)=get_adsense_code();
}</pre>
<p>get_adsense_code will retrieve the Simple AdSense settings from the database and return them in an array. The variables returned should be self explanatory, except for adsense_owner. You can ignore that one, it was left in for compatibility with the WP MU version of Simple AdSense - AdSense Share MU.</p>
<p>In order to make the most efficient use of your blog, it&#8217;s highly recommended to store the Simple AdSense variables in global variables. That will allow you to use them in other parts of your theme without having to query the database every times an ad is displayed.  The way I do that in all G2Y AdSense-ready templates is to pre-define the variables as globals (before calling the get_adsense_code function) in the header.php file like so:</p>
<pre>global $adshown,$adsense_code,$adsense_channel,$adsense_search_channel,$adsense_owner;
$adshown=0;
$adsense_code='';
$adsense_channel='';
$adsense_search_channel='';</pre>
<p>You&#8217;ll notice a new variable there called &#8216;adshown&#8217; . That is used to keep track of the number of Google AdSense Ad Units on one page. The AdSense TOS only allows for three Ad Units per page, so this variable is used to track the number of times Ad Units are displayed on a page. I believe Google&#8217;s AdSense code is smart enough to stop displaying Ad Units after the third one, but there&#8217;s no reason to make them think you&#8217;re trying to break the rules, now is there?</p>
<p>Once you have your variables, it&#8217;s a simple matter of using them in your AdSense code:</p>
<pre>&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "&lt;?php echo $adsense_code; ?&gt;";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_channel="&lt;?php echo $adsense_channel; ?&gt;";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "A6000C";
google_color_text = "000000";
google_color_url = "A6000C";
google_ui_features = "rc:0";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;</pre>
<p><strong>Simple AdSense uses google_ad_channel IDs, not Ad Slots!</strong> Google has added the ability to quickly change the Ad Unit design (Ad Slots), and it&#8217;s hard to locate the older code used in the above example, which utilizes Ad Channels. Feel free to download some themes to see various examples of what I&#8217;ve done.</p>
<p>Next, Don&#8217;t forget to increment the adshown counter:</p>
<pre>&lt;?php
	$adshown++;
} ?&gt;</pre>
<p>The whole thing looks like this in my template&#8217;s headerads.php file:</p>
<pre>&lt;?php
global $adshown,$adsense_code,$adsense_channel,$adsense_search_channel,$adsense_owner;
$adshown=0;
$adsense_code='';
$adsense_channel='';
$adsense_search_channel='';
if(function_exists('get_adsense_code')) {
	list ($adsense_code,$adsense_channel,$adsense_search_channel,$adsense_owner)=get_adsense_code();
}
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "&lt;?php echo $adsense_code; ?&gt;";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_channel="&lt;?php echo $adsense_channel; ?&gt;";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "A6000C";
google_color_text = "000000";
google_color_url = "A6000C";
google_ui_features = "rc:0";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;
&lt;?php
	$adshown++;
} ?&gt;</pre>
<p>I&#8217;ve found that it&#8217;s easier to create a new .php file when modifying existing templates, then just add an include where you need them in the main template. That way upgrades are simple. In this case, I added headerads.php to the template&#8217;s header.php file:</p>
<pre>&lt;div id="header"&gt;
  &lt;div id="headerads"&gt;
    &lt;?php include ("headerads.php"); ?&gt;
  &lt;/div&gt;&lt;!-- headerads --&gt;
  &lt;div id="heading"&gt;
    &lt;h1&gt;&lt;a href="&lt;?php echo get_settings('home'); ?&gt;/"&gt;&lt;u&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/u&gt;&lt;/a&gt;&lt;/h1&gt;
    &lt;div class="description"&gt;&lt;?php bloginfo('description'); ?&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;!-- heading --&gt;
&lt;/div&gt;&lt;!-- header --&gt;</pre>
<p>You&#8217;ll notice the use of the new div. That is defined in CSS and controls the location and some of the colors. (The rest of the colors are in the AdSense ad itself.)</p>
<p>For the other ads in the template, the code looks just like it does above, without the call to the get_adsense_code function, since the variables are now globals.</p>
<p>There are some other tricks I use in most, if not all, G2Y AdSense-ready templates. One of which is to display an inline ad randomly after blog entries. The code to do that looks like this:</p>
<pre>&lt;?php if (have_posts()) : ?&gt;
	&lt;?php $AdLoc1=rand(1,4); $AdLoc2=rand(5,8); $AdLoc3=rand(9,12); $CurLoc=0; ?&gt;
&lt;!-- Random ads will be shown after posts &lt;?php echo "$AdLoc1,$AdLoc2, &amp; $AdLoc3"; ?&gt; --&gt;</pre>
<pre>&lt;?php while (have_posts()) : the_post(); ?&gt;
  &lt;div class="post-wrapper"&gt;
    &lt;div class="date"&gt;
      &lt;span class="month"&gt;&lt;?php the_time('M') ?&gt;&lt;/span&gt;
      &lt;span class="day"&gt;&lt;?php the_time('j') ?&gt;&lt;/span&gt;
    &lt;/div&gt; &lt;!-- date --&gt;
    &lt;span id="post-title" class="titles"&gt;
      &lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title(); ?&gt;"&gt;
      &lt;?php the_title(); ?&gt;&lt;/a&gt;
    &lt;/span&gt;
    &lt;div class="post"&gt;
      &lt;?php the_content('Read the rest of this entry »'); ?&gt;
    &lt;/div&gt; &lt;!-- post --&gt;
  &lt;/div&gt; &lt;!-- post-wrapper --&gt;
  &lt;div class="post-footer"&gt;Posted in &lt;?php the_category(', ') ?&gt;
    &lt;strong&gt;|&lt;/strong&gt; &lt;?php edit_post_link('Edit','','&lt;strong&gt;|&lt;/strong&gt;'); ?&gt;
    &lt;?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?&gt;
  &lt;/div&gt;</pre>
<pre>  &lt;?php
    $CurLoc++;
    if($CurLoc==$AdLoc1 || $CurLoc==$AdLoc2 || $CurLoc==$AdLoc3) {
      include (TEMPLATEPATH . '/post_ad.php');
    }
  ?&gt;</pre>
<pre>  &lt;?php comments_template(); ?&gt;
&lt;?php endwhile; ?&gt;</pre>
<p>You can see that I&#8217;ve added three AdLoc variables in the middle of the have_posts/the_post while loop, as well as the CurLoc variable to keep track of what post is being displayed. If CurLoc matches the random AdLoc1, 2, or 3 number, the ad will be displayed by including the post_ad.php file. (I won&#8217;t get into it&#8217;s content here. Feel free to download any G2Y AdSense-Ready template and poke around to see what I&#8217;ve done.)</p>
<p>There is an if statement inside post_ad.php that will only display the add if adshown is less than 4. It also increments the variable when an ad is displayed.</p>
<h2>Closing Thoughts:</h2>
<p>That hardest part of modifying an existing template for use with AdSense is dealing with the messy code found in almost every template out there. It takes me anywhere from 30 minutes to several hours to fix all the CSS bugs and them implement the AdSense ads in the most profitable locations of the template.</p>
<p>I&#8217;ve also found that template authors don&#8217;t usually bother to actually <strong>test</strong> their templates to ensure they display properly in FireFox &amp; Internet Explorer (6 &amp; 7!), nor do they bother testing various other aspects of their templates, like the widgets, tag cloud, calendar, etc. Every template on G2Y has been thoroughly tested, but I&#8217;m sure I&#8217;ve missed something. Don&#8217;t hesitate to email support@g2y.net with bug reports.</p>
]]></content:encoded>
			<wfw:commentRss>http://g2y.net/blog/2008/05/11/simple-adsense-plugin-for-wordpress/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
