<?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>Stubborn Fanatic - Vivek Sanghi&#039;s Tech Blog &#187; adsense</title>
	<atom:link href="http://www.techblog.viveksanghi.com/category/adsense/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techblog.viveksanghi.com</link>
	<description>Documenting Tech Fanaticism</description>
	<lastBuildDate>Wed, 17 Mar 2010 12:43:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Adsense inside your posts and only on post (item) pages</title>
		<link>http://www.techblog.viveksanghi.com/2006/12/adsense-inside-your-post-only-on-post/</link>
		<comments>http://www.techblog.viveksanghi.com/2006/12/adsense-inside-your-post-only-on-post/#comments</comments>
		<pubDate>Sat, 16 Dec 2006 09:09:00 +0000</pubDate>
		<dc:creator>viveksanghi</dc:creator>
				<category><![CDATA[adsense]]></category>
		<category><![CDATA[blogger]]></category>
		<category><![CDATA[my hacks]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[hacks]]></category>

		<guid isPermaLink="false">http://www.techblog.viveksanghi.com/2006/12/adsense-inside-your-posts-and-only-on-post-item-pages/</guid>
		<description><![CDATA[Loui$$ from Blogging Secret just asked me how I was displaying adsense ads only on post (item) pages and inside the post i.e. in the beginning and the end of each post. For this I use the same if statements from my hack Display widgets only on pages you prefer but widget are not involved [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.blogger.com/profile/15921565691030831301">Loui$$</a> from Blogging Secret <a href="http://stubborn-fanatic.blogspot.com/2006/12/add-background-colors-to-comments.html#comment-5877084305298620239">just asked</a> me how I was displaying adsense ads only on post (item) pages and inside the post i.e. in the beginning and the end of each post. For this I use the same if statements from my hack <a href="http://stubborn-fanatic.blogspot.com/2006/11/only-on-comment-label-search-and.html">Display widgets only on pages you prefer</a> but widget are not involved in this one as widgets cannot go inside a post.<br />
<span id="fullpost"><br />
First let me acknowledge the sources from which I learnt some essential adsense tricks for Blogger Beta:</span></p>
<p>1. <a href="http://bloggingsecret.blogspot.com/2006/11/ultimate-adsense-guide-insert-adsense.html">Using adsense code in beta template</a> by Loui$$.<br />
2. <a href="http://web-messengers.blogspot.com/2006/11/adsense-beside-post-text-on-blogger.html">Using adsense in posts</a> by Deniz.</p>
<p>I recommend checking those out before proceeding with this hack. As always, please back-up your template before proceeding with this hack as you will be modifying some important portions of your template. Now for the hack. Simply look for:</p>
<p>&lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;</p>
<p>in your template&#8217;s &lt;div class=&#8217;post&#8217;&gt; section and replace it with the code given in code boxes below:<br />
(<strong>[Your Adsense]</strong> in the each of codes given below must be replaced with the adsense code of your choice)</p>
<p><strong>1. This code:</strong><br />
(if you are not using any hacks like peek-a-boo posts, selective expandable posts or peek-a-boo on label, archive and search pages)</p>
<pre style="border: 2px solid #8936ab; overflow: auto; background-color: #ebebe4; color: #000000; width: 470px; height: 170px;">      &lt;b:if cond='data:blog.pageType == "item"'&gt;        &lt;p&gt;&lt;table align='center'&gt;&lt;tr&gt;&lt;td&gt;&lt;center&gt;<strong>[Your Adsense]</strong>&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;data:post.body/&gt;&lt;table align='center'&gt;&lt;tr&gt;&lt;td&gt;&lt;center&gt;<strong>[Your Adsense]</strong>&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;      &lt;b:else/&gt;&lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;      &lt;/b:if&gt;</pre>
<p><strong>2. This code in <span style="text-decoration: underline;">bold-italic</span> (If you are using Peek-a-boo posts hacks)</strong><br />
(If you are also using the peek-a-boo on label and search pages hack, then there may be some confusion regarding which &lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt; must be replaced with the code given below. Therefore, I have included the peek-a-boo code as well so that you can easily locate the correct instance of data:post.body/ in your template.)</p>
<pre style="border: 2px solid #8936ab; overflow: auto; background-color: #ebebe4; color: #000000; width: 490px; height: 300px;">&lt;div class='post-body' expr:id='"post-" + data:post.id'&gt;&lt;b:if cond='data:blog.pageType == "item"'&gt;        <em><strong>&lt;p&gt;&lt;table align='center'&gt;&lt;tr&gt;&lt;td&gt;&lt;center&gt;Your Adsense&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;data:post.body/&gt;&lt;table align='center'&gt;&lt;tr&gt;&lt;td&gt;&lt;center&gt;Your Adsense&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;</strong></em>&lt;b:else/&gt;&lt;style&gt;#fullpost {display:none;}&lt;/style&gt;&lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;&lt;span id='showlink'&gt;&lt;p&gt;&lt;a expr:onclick='"javascript:showFull(\"post-" + data:post.id + "\");"' href='javascript:void(0);'&gt;Continue reading...&lt;/a&gt;&lt;/p&gt;&lt;/span&gt;&lt;span id='hidelink' style='display:none'&gt;&lt;p&gt;&lt;a expr:onclick='"javascript:hideFull(\"post-" + data:post.id + "\");"' href='javascript:void(0);'&gt;Excerpts only...&lt;/a&gt;&lt;/p&gt;&lt;/span&gt;&lt;script type='text/javascript'&gt;checkFull(&amp;quot;post-&amp;quot; + &amp;quot;&lt;data:post.id/&gt;&amp;quot;)&lt;/script&gt;&lt;/b:if&gt;&lt;div style='clear: both;'/&gt; &lt;!-- clear for photos floats --&gt;&lt;/div&gt;</pre>
<p><strong>3. This code in <span style="text-decoration: underline;">bold-italic</span> (If you are using selective expandable posts hack)</strong></p>
<pre style="border: 2px solid #8936ab; overflow: auto; background-color: #ebebe4; color: #000000; width: 490px; height: 300px;">&lt;div class='post-body' expr:id='"post-" + data:post.id'&gt;

      &lt;b:if cond='data:blog.pageType == "item"'&gt;         &lt;style&gt;#fullpost{display:inline;}&lt;/style&gt;   <em><strong>&lt;p&gt;&lt;table align='center'&gt;&lt;tr&gt;&lt;td&gt;&lt;center&gt;[Your Adsense]&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;data:post.body/&gt;&lt;br/&gt;&lt;table align='center'&gt;&lt;tr&gt;&lt;td&gt;&lt;center&gt;[Your Adsense]&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;</strong></em>

      &lt;b:else/&gt;         &lt;style&gt;#fullpost{display:none;}&lt;/style&gt;

&lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;

        &lt;span id='showlink'&gt;         &lt;a expr:href='data:post.url'&gt;Read More......&lt;/a&gt;        &lt;/span&gt;        &lt;script type='text/javascript'&gt;          checkFull(&amp;quot;post-&amp;quot; + &amp;quot;&lt;data:post.id/&gt;&amp;quot;);        &lt;/script&gt;      &lt;/b:if&gt;      &lt;div style='clear: both;'/&gt; &lt;!-- clear for photos floats --&gt;    &lt;/div&gt;</pre>
<p>Hope this becomes the tipping point in your adsense revenues graph <img src='http://www.techblog.viveksanghi.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.techblog.viveksanghi.com/2006/12/adsense-inside-your-post-only-on-post/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Hack Round-up</title>
		<link>http://www.techblog.viveksanghi.com/2006/12/hack-round-up/</link>
		<comments>http://www.techblog.viveksanghi.com/2006/12/hack-round-up/#comments</comments>
		<pubDate>Sun, 10 Dec 2006 20:42:00 +0000</pubDate>
		<dc:creator>viveksanghi</dc:creator>
				<category><![CDATA[adsense]]></category>
		<category><![CDATA[blogger]]></category>
		<category><![CDATA[hacks news]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[hacks]]></category>

		<guid isPermaLink="false">http://www.techblog.viveksanghi.com/2006/12/hack-round-up/</guid>
		<description><![CDATA[Hello Readers, Well, I had no new ideas (except for a few which require CSS knowledge) so I have no new hacks of my own as of now. However, this post points to some good hacks/add-ons/template mods that I have seen in the neighborhood recently: 1. Hacked Son of Moto template by Deniz of imessengr.2. [...]]]></description>
			<content:encoded><![CDATA[<p>Hello Readers,</p>
<p>Well, I had no new ideas (except for a few which require CSS knowledge) so I have no new hacks of my own as of now. However, this post points to some good hacks/add-ons/template mods that I have seen in the neighborhood recently:</p>
<p>1. <a href="http://web-messengers.blogspot.com/2006/12/son-of-moto-template-hacked-for-blogger.html">Hacked Son of Moto</a> template by Deniz of imessengr.<br />2. <a href="http://web-messengers.blogspot.com/2006/11/adsense-beside-post-text-on-blogger.html">Adsense beside your posts</a> in blogger beta by Deniz of imessengr.<br />3. <a href="http://bloggingsecret.blogspot.com/2006/11/ultimate-adsense-guide-insert-adsense.html">Adsense between the posts</a> (adding adsense directly to the beta template) by Loui$$ of Blogging No Secret.<br />4. <a href="http://purplemoggy.blogspot.com/2006/12/theme-switching-with-blogger.html">Template theme switcher</a> (and tutorial to host Blogger Beta CSS externally) and <a href="http://purplemoggy.blogspot.com/2006/12/pre-made-theme-switching-templates.html">hacked Blogger templates</a> with this functionality (inbuilt) by PurpleMoggy.</p>
<p>In addition, I have found my interaction with Deniz and posts from &#8220;Blogging Secret&#8221; very informative with reference to Adsense related tips (especially for Blogger Beta).</p>
<p>BTW this post is done directly from a nice but nifty Firefox extension called Performancing. I really like their idea/design and concept, especially because I am yet to see my first post from Google Docs appear on my test blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techblog.viveksanghi.com/2006/12/hack-round-up/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
