<?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>Untwisted Vortexprogramming</title>
	<atom:link href="http://www.untwistedvortex.com/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.untwistedvortex.com</link>
	<description>An American Living in the Philippines</description>
	<lastBuildDate>Sun, 21 Mar 2010 16:49:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		
<script type="text/javascript">
window.google_analytics_uacct = "UA-1273697-12";
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1273697-12']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
})();
</script>
	<item>
		<title>An Extreme AdSense Optimization Plugin Request for WordPress</title>
		<link>http://www.untwistedvortex.com/2008/10/08/an-extreme-adsense-optimization-plugin-request-for-wordpress/</link>
		<comments>http://www.untwistedvortex.com/2008/10/08/an-extreme-adsense-optimization-plugin-request-for-wordpress/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 03:48:24 +0000</pubDate>
		<dc:creator>RT Cunningham</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[fine tune]]></category>
		<category><![CDATA[noads]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[plugin developers]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[proper categorization]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://www.untwistedvortex.com/?p=2482</guid>
		<description><![CDATA[I&#039;m writing this in the hope that one or more aggressive WordPress plugin developers will see it and turn my dreams into reality. I have written about optimizing AdSense in the past, but I don&#039;t want to go back into those articles to point out relative information.
The Idea
I know for a fact that any blog [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><!-- google_ad_section_start --><p>I&#039;m writing this in the hope that one or more aggressive WordPress plugin developers will see it and turn my dreams into reality. I have written about optimizing AdSense in the past, but I don&#039;t want to go back into those articles to point out relative information.</p>
<p><strong>The Idea</strong></p>
<p>I know for a fact that any blog can be optimized for AdSense, even personal blogs. There are no real secrets involved. Certain techniques can be used:</p>
<ul>
<li>Proper size, colors and placement</li>
<li>Proper categorization and tagging</li>
<li>Showing AdSense ads only to search visitors</li>
<li>Blocking the showing of AdSense ads for certain topics</li>
</ul>
<p><strong>The Requirement</strong></p>
<p>The plugin would need to be able to do all the above. I use a plugin now in which only search visitors are shown AdSense. I also wrote custom code to block the showing of AdSense to certain categories and tags. The ideal way would be the ability to do that as well as selectively exclude some posts.</p>
<p>While I can&#039;t mention my exact CTR, I can tell you that I get well over 5 percent every single day on this blog. At least half of all my visitors never see AdSense. Others, who don&#039;t fine-tune it as much as I do, are seeing 0 to 3 percent CTRs and guess what? They&#039;re probably smart-priced. I am not.</p>
<p><strong>Final Thoughts</strong></p>
<p>The reason, even though I know how, I won&#039;t write a plugin myself is because of my programming ethics. I rarely finish anything I start, unless I do it for money. I don&#039;t believe WordPress plugins should cost money, therefore&#8230;</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/04/22/search-engine-optimization-seo-for-wordpress-part-2/" title="Search Engine Optimization (SEO) for WordPress, Part 2">Search Engine Optimization (SEO) for WordPress, Part 2</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/08/08/the-uv-seo-series-part-four/" title="The UV SEO Series &#8211; Part Four &#8211; Meta">The UV SEO Series &#8211; Part Four &#8211; Meta</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/04/24/search-engine-optimization-seo-for-wordpress-part-4/" title="Search Engine Optimization (SEO) for WordPress, Part 4">Search Engine Optimization (SEO) for WordPress, Part 4</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/04/23/search-engine-optimization-seo-for-wordpress-part-3/" title="Search Engine Optimization (SEO) for WordPress, Part 3">Search Engine Optimization (SEO) for WordPress, Part 3</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2009/04/19/kill-google-search-traffic-quickly-exitjunctioncom/" title="How to Kill Your Google Search Traffic Quickly with ExitJunction.com">How to Kill Your Google Search Traffic Quickly with ExitJunction.com</a></li>
</ul>
<p><!-- Similar Posts took 0.034 ms (cached) --></p>
<!-- google_ad_section_end --><!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://www.untwistedvortex.com/2008/10/08/an-extreme-adsense-optimization-plugin-request-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>PHPText Blogger: Pre-Alpha Software Notes</title>
		<link>http://www.untwistedvortex.com/2008/07/29/phptext-blogger-pre-alpha-software-notes/</link>
		<comments>http://www.untwistedvortex.com/2008/07/29/phptext-blogger-pre-alpha-software-notes/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 16:05:30 +0000</pubDate>
		<dc:creator>RT Cunningham</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[behavior]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[minions]]></category>
		<category><![CDATA[niche]]></category>
		<category><![CDATA[noads]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.untwistedvortex.com/?p=2350</guid>
		<description><![CDATA[I&#039;m working on a programming project as the sole developer of a browser-based software application. I&#039;ve dubbed it &#034;PHPText Blogger&#034; as a working name because it&#039;s only using PHP and text files formatted specifically for this application.
In order to use this browser-based application on Windows or Linux, I only need to have a web server [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><!-- google_ad_section_start --><p>I&#039;m working on a programming project as the sole developer of a browser-based software application. I&#039;ve dubbed it &#034;<strong><a style="color:#000;" href="http://www.untwistedvortex.com/2008/07/29/phptext-blogger-pre-alpha-software-notes/">PHPText Blogger</a></strong>&#034; as a working name because it&#039;s only using PHP and text files formatted specifically for this application.</p>
<p>In order to use this browser-based application on Windows or Linux, I only need to have a web server installed which includes the PHP software. I&#039;m using <a href="http://www.apachefriends.org/en/xampp.html" title="XAMPP" target="_blank">XAMPP</a> for Windows right now.</p>
<p><strong>Design Goals</strong></p>
<p>The main goal of the project is to create an application that runs on the local computer and not the online web server. The data and pages created by the software are to be transferred to the online server at the click of a button. The online server would only host the minimally-required files to run a full-featured blog. Pretty permalinks won&#039;t be required since the blog will live in whatever directory it gets installed on, pulling the data files and pages from a subdirectory of where it lives.</p>
<p>This application will be perfectly suited for small, niche blogs that don&#039;t require constant updates. It will run extremely fast since the bloat that WordPress is now famous for won&#039;t be there. It would probably work well for a blog containing thousands of posts, but transferring the information from a MySQL database would be daunting.</p>
<p>I would like to incorporate caching and compression from the start but until I get to the final stages, I can&#039;t be sure how to implement it all. Caching may not increase the speed or reduce the HTTP connections since a database is not being continually queried. Compression shouldn&#039;t be a problem, but I won&#039;t need to add that part until the back end is nearly finished.</p>
<p>The final product is going to be designed to be fast and portable, working with PHP4 as well as PHP5 and on Windows or Linux. Specific PHP5 functions will be emulated for PHP4, such as &#034;file_put_contents&#034; and &#034;date_default_timezone_set&#034;.</p>
<p><strong>The Reasons for my Madness</strong></p>
<p>I&#039;ve been using WordPress for this blog for more than 2 years. I&#039;ve been examining other applications, such as <a href="http://b2evolution.net/" title="b2evolution" target="_blank">b2evolution</a>, but all of them have similar overhead bloat in the software which defeats the idea of simplicity.</p>
<p>WordPress started out as the perfect software for self-hosted blogs but as it progressed, it started catering to too many different kinds of bloggers. It&#039;s an all-in-one kind of package with bloat that&#039;s starting to look like something I&#039;d expect from Microsoft.</p>
<p>WordPress now includes a lot of features that a lot of us (meaning bloggers) neither want nor need. Many of the features require plugins or changes to the configuration file to either change the behavior or disable it completely. Including features that can&#039;t be turned off from any of the main administration panels is the straw that broke the camel&#039;s back, my back.</p>
<p><strong>Status Updates</strong></p>
<p>I&#039;ve already completed the basic framework and I&#039;m working on the main administration page (blog titles, descriptions, timezone settings, etc.) with most of it already done.</p>
<p>Rather than writing about it at every stage, I prefer to keep quiet about it for the foreseeable future, keeping only my <a href="http://www.untwistedvortex.com/2008/07/26/how-to-become-a-noble-uv-minion-and-like-it/" title="How to Become a Noble UV Minion and Like it">noble UV minions</a> apprised of the continuing development.</p>
<p>The alpha version should be completed by the end of August (probably sooner) and the first beta version should be ready within days of that milestone. I&#039;m in a hurry to get it done because I plan to use it for some new blogs I haven&#039;t starting working on yet. I&#039;m not sure at this point how good it&#039;s going to be, but one thing it won&#039;t be is WordPress.</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2009/12/27/writing-website-software/" title="Writing Website Software Again">Writing Website Software Again</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/03/24/sandbox-your-wordpress-blog/" title="Sandbox Your WordPress Blog">Sandbox Your WordPress Blog</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2009/07/28/basic-tips-speed-windows-pc/" title="Basic Tips to Speed Up a Windows PC">Basic Tips to Speed Up a Windows PC</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/09/13/add-google-search-to-your-wordpress-blog/" title="Add Google Search to Your WordPress Blog">Add Google Search to Your WordPress Blog</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/03/30/flat-files-versus-databases/" title="Flat Files Versus Databases">Flat Files Versus Databases</a></li>
</ul>
<p><!-- Similar Posts took 0.038 ms (cached) --></p>
<!-- google_ad_section_end --><!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://www.untwistedvortex.com/2008/07/29/phptext-blogger-pre-alpha-software-notes/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>When Google AdSense Just Doesn&#039;t Pay Enough</title>
		<link>http://www.untwistedvortex.com/2008/05/30/when-google-adsense-just-doesnt-pay-enough/</link>
		<comments>http://www.untwistedvortex.com/2008/05/30/when-google-adsense-just-doesnt-pay-enough/#comments</comments>
		<pubDate>Fri, 30 May 2008 00:00:14 +0000</pubDate>
		<dc:creator>RT Cunningham</dc:creator>
				<category><![CDATA[Marketing]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[Chitika]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[services]]></category>

		<guid isPermaLink="false">http://www.untwistedvortex.com/?p=2014</guid>
		<description><![CDATA[ I&#039;m always testing different advertising methods. I move ads around, I change the sizes and I even change the sources. I&#039;m glad I don&#039;t have to rely on advertising revenue to live, or I&#039;d be screwed by all the experimenting I do.
Anyone who&#039;s been using advertising services for any length of time should already [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><!-- google_ad_section_start --><p><img style="float:left;padding:5px 15px 10px 0;" alt="moola" title="moola" width="200" height="200" src="http://steadyoffload.com:8080/XVYSRDZ7FP.aHR0cDovL3d3dy51bnR3aXN0ZWR2b3J0ZXguY29tL3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDA4LzAxL21vb2xhLmpwZw==...."/> I&#039;m always testing different advertising methods. I move ads around, I change the sizes and I even change the sources. I&#039;m glad I don&#039;t have to rely on advertising revenue to live, or I&#039;d be screwed by all the experimenting I do.</p>
<p>Anyone who&#039;s been using advertising services for any length of time should already know about the alternate URLs that can be used for contextual ad services when ads for a specific context aren&#039;t available. There are other ways, ways that I use, to choose which ad service to display ads for.</p>
<p><strong>Google AdSense Problems</strong></p>
<p>Google AdSense is extremely easy to sign up for and also extremely easy to get banned from. It&#039;s one of the reasons that people who know how to use it are targeting search engine visitors only. Even when properly targeted, it isn&#039;t effective when the searchers end up being bloggers, webmasters and other people who never click ads.</p>
<p>If you have a really low CTR rate for AdSense and your clicks are adding up to pennies at a time, the explanation is simple. You&#039;re getting too many impressions and not enough clicks. That happened on this blog more than once.</p>
<p><strong>Manipulating the Theme</strong></p>
<p>Since I&#039;m using the &#034;<a href="http://planetozh.com/blog/my-projects/wordpress-plugin-who-sees-ads-control-adsense-display/" title="Who Sees Ads?" target="_blank">Who Sees Ads?</a>&#034; WordPress plugin to control how and where I display the AdSense ads, I&#039;m using code to tell it not to display AdSense for selective categories and posts, just like I did when I wrote &#034;<a href="http://www.untwistedvortex.com/2008/03/04/bypass-wordpress-content-plugins-with-a-simple-hack/" title="Bypass WordPress Content Plugins with a Simple Hack">Bypass WordPress Content Plugins with a Simple Hack</a>&#034; back in March:</p>
<blockquote><p>&lt;?php if (function_exists(&#039;wp_ozh_wsa&#039;)) {<br />
        $category = get_the_category(); $cat = $category[0]->cat_name;<br />
        $cats = array(&#039;Advertising&#039;, &#039;Article Reviews&#039;, &#039;Awards&#039;, &#039;Blogging&#039;, &#039;Blog Changes&#039;, &#039;Blog Reviews&#039;, &#039;Blog Tips and Tricks&#039;, &#039;Bragging Rights&#039;, &#039;Contests&#039;, &#039;Marketing&#039;, &#039; Reviews Received&#039;, &#039;Visited Links&#039;, &#039;Website Design&#039;, &#039;Website Reviews&#039;, &#039;WordPress&#039;);<br />
        if (in_array($cat,$cats)) wp_ozh_wsa(&#034;Chitika-UV-Top-Blog&#034;);<br />
        else if (!stristr($post->post_content, &#039;&lt;!&#8211; No AdSense &#8211;>&#039;)) wp_ozh_wsa(&#034;post-top&#034;);<br />
      } ?></p></blockquote>
<p>You&#039;ll notice that I&#039;m displaying Chitika Ads for the categories that I know will suck to no end for AdSense. Besides, it beats the heck out of their public service ads. The code can be tweaked and I can further diversify if I so desire. The fall-through is AdSense only because it&#039;s my primary source of ad revenue on this blog right now.</p>
<p><strong>Chitika Display Problem</strong></p>
<p>Yes, I&#039;m using <a href="http://chitika.com/" rel="nofollow" title="Chitika" target="_blank">Chitika</a>. I&#039;ve been signed up for it what seems like forever, but I never got around to using it. The problem was that I couldn&#039;t see the display. It only displays in specific countries and the Philippines isn&#039;t one of those countries. What it does, until they fix the issue, is display a big blank box where the ad should be displayed. Since that&#039;s an awful waste of space, I plugged <a href="http://www.bidvertiser.com/" rel="nofollow" title="BidVertiser" target="_blank">BidVertiser</a> into the alternate URL for Chitika. That&#039;s another service I&#039;ve been testing, but not really using much.</p>
<p>I don&#039;t expect to earn as much from Chitika or BidVertiser as I do with Google AdSense, but stranger things have happened. Not only that, but I plan to remove all the ads eventually, so I&#039;m not too concerned about it.</p>
<p><strong>The AdSense Basket</strong></p>
<p>If you read enough blog you&#039;ll see the phrase &#034;don&#039;t put all your eggs in the Google basket&#034; many, many times. It&#039;s good advice to follow and I&#039;m following it, at least for this blog. If you look at the top of the page, you won&#039;t see anything if you didn&#039;t reach it by using a search engine. If you reached it by using a search engine, you won&#039;t see Google AdSense ads up there. This article is in the &#034;advertising&#034; category and no one interested in this article will ever click an AdSense ad.</p>
<p>I&#039;m currently in the process of doing this to all of the posts on this blog that are geared toward bloggers, marketers, advertisers, webmasters and other people I know don&#039;t normally click on ads. I believe my CTR for AdSense will go up instead of hovering at the 3 percent mark.</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/02/01/passive-income-or-how-to-make-money-without-trying/" title="Passive Income, or How To Make Money Without Trying">Passive Income, or How To Make Money Without Trying</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/02/28/advertising-on-blogs-the-disadvantages/" title="Advertising on blogs &#8211; the disadvantages">Advertising on blogs &#8211; the disadvantages</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/07/13/use-the-google-adsense-allowed-sites-publisher-whitelist/" title="Use the Google AdSense Allowed Sites Publisher Whitelist">Use the Google AdSense Allowed Sites Publisher Whitelist</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/01/17/how-to-climb-the-serps-quickly/" title="How to Climb the SERPS Quickly">How to Climb the SERPS Quickly</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/05/28/combination-separation/" title="Combination and Separation">Combination and Separation</a></li>
</ul>
<p><!-- Similar Posts took 0.047 ms (cached) --></p>
<!-- google_ad_section_end --><!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://www.untwistedvortex.com/2008/05/30/when-google-adsense-just-doesnt-pay-enough/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Bypass WordPress Content Plugins with a Simple Hack</title>
		<link>http://www.untwistedvortex.com/2008/03/04/bypass-wordpress-content-plugins-with-a-simple-hack/</link>
		<comments>http://www.untwistedvortex.com/2008/03/04/bypass-wordpress-content-plugins-with-a-simple-hack/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 19:16:12 +0000</pubDate>
		<dc:creator>RT Cunningham</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[noads]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://www.untwistedvortex.com/2008/03/04/bypass-wordpress-content-plugins-with-a-simple-hack/</guid>
		<description><![CDATA[There are a few WordPress plugins that add text to the main content, such as &#034;Related Entries&#034; and &#034;Similar Posts&#034;. (I prefer the latter due it being updated frequently.)
Other types of of plugins are available, but for my example I want to use Similar Posts. The proper way to include the plugin, in addition to [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><!-- google_ad_section_start --><p>There are a few WordPress plugins that add text to the main content, such as &#034;<a href="http://wasabi.pbwiki.com/Related%20Entries" target="_blank">Related Entries</a>&#034; and &#034;<a href="http://rmarsh.com/plugins/similar-posts/" target="_blank">Similar Posts</a>&#034;. (I prefer the latter due it being updated frequently.)</p>
<p>Other types of of plugins are available, but for my example I want to use <strong>Similar Posts</strong>. The proper way to include the plugin, in addition to the initial installation, is to add a line of code to single.php and/or index.php, similar to this:</p>
<blockquote><p><strong>&lt;?php if (function_exists(&#039;similar_posts&#039;)) similar_posts(); ?&gt;</strong></p></blockquote>
<p>By including the code in the theme, the plugin affects every post. How do you prevent it from affecting a specific post? Change that line to:</p>
<blockquote><p><strong>&lt;?php if (function_exists(&#039;similar_posts&#039;) &#038;&#038; !stristr($post->post_content, &#039;&lt;!&#8211; No Similar Posts &#8211;&gt;&#039;)) similar_posts(); ?&gt;</strong></p></blockquote>
<p>When you write or edit a post, you would simply add &nbsp;&nbsp;<strong>&lt;!&#8211; No Similar Posts &#8211;&gt;</strong> to the end of the post, which would basically tell the post to ignore that plugin.</p>
<p>This kind of hack will work for any plugin that adds text onto the content. Sometimes it&#039;s easier to do it this way than to try to use the options available with the plugins.</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/08/11/hacking-the-shylock-adsense-plugin-for-wordpress/" title="Hacking the &#039;Shylock Adsense Plugin&#039; for WordPress">Hacking the &#039;Shylock Adsense Plugin&#039; for WordPress</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/04/01/wp-plugins-exec-php-smart-archives-and-wp-categories-and-posts/" title="WP Plugins: Exec-PHP, Smart Archives, and WP Categories and Posts">WP Plugins: Exec-PHP, Smart Archives, and WP Categories and Posts</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/05/27/wordpress-plugin-srg-clean-archives/" title="WordPress Plugin: SRG Clean Archives">WordPress Plugin: SRG Clean Archives</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/11/29/gettin-jiggy-wit-it-wordpress-widgets-that-is/" title="Gettin&#039; Jiggy wit It &#8211; WordPress Widgets, that is">Gettin&#039; Jiggy wit It &#8211; WordPress Widgets, that is</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/04/11/playing-with-the-wordpress-more-tag/" title="Playing with the WordPress &#039;More&#039; Tag">Playing with the WordPress &#039;More&#039; Tag</a></li>
</ul>
<p><!-- Similar Posts took 0.036 ms (cached) --></p>
<!-- google_ad_section_end --><!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://www.untwistedvortex.com/2008/03/04/bypass-wordpress-content-plugins-with-a-simple-hack/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Bowing Down Before The Google Gods</title>
		<link>http://www.untwistedvortex.com/2007/12/07/bowing-down-before-the-google-gods/</link>
		<comments>http://www.untwistedvortex.com/2007/12/07/bowing-down-before-the-google-gods/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 20:28:04 +0000</pubDate>
		<dc:creator>RT Cunningham</dc:creator>
				<category><![CDATA[Advertising]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://www.untwistedvortex.com/2007/12/07/bowing-down-before-the-google-gods/</guid>
		<description><![CDATA[Back in August, I made a decision to stop displaying Google Ads. I&#039;ve now made another decision: To start displaying them again. Don&#039;t worry. If you&#039;re a regular reader, you won&#039;t see them (except maybe the first time).
I&#039;ll be using the Who Sees Ads plugin from planetOzh. I&#039;m not going to display the ads to [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><!-- google_ad_section_start --><p>Back in August, I made <a href="http://www.untwistedvortex.com/2007/08/13/a-decision-to-stop-displaying-google-ads/">a decision to stop displaying Google Ads</a>. I&#039;ve now made another decision: To start displaying them again. Don&#039;t worry. If you&#039;re a regular reader, you won&#039;t see them (except maybe the first time).</p>
<p>I&#039;ll be using the <a href="http://planetozh.com/blog/my-projects/wordpress-plugin-who-sees-ads-control-adsense-display/" target="_blank">Who Sees Ads</a> plugin from planetOzh. I&#039;m not going to display the ads to returning readers or on posts less than a week old. Many of you will forget they&#039;re even there.</p>
<p>I investigated and signed up with more than 3 companies that claimed to be different, but what I saw was that they were Google AdSense &#034;wannebees&#034;. Uh, no thanks. I also investigated and even displayed &#034;in-line&#034; text links for a few days. Again, no thanks. I considered Amazon for my other blog, because can I do specific targeting there, but I decided against it.</p>
<p>I never took the AdSense off the other blog. I couldn&#039;t find the time to mess with it until yesterday. Ah, yesterday. That was the day I made TONS of changes on both blogs, CSS and theme files alike. I cleaned out unused code on this blog&#039;s style sheet and added code to the other. The header at the other blog is a bit different now. I changed it so that it wouldn&#039;t look so much like the theme the splogs seem to be using a lot.</p>
<p>I&#039;m trying to move away from sponsored posts, for the most part. There just aren&#039;t many opportunities available to PR0 blogs. Once SocialSpark gets underway, I may be inclined to head back in that direction again, but only if the opportunities warrant it. In the meantime, I need to make up the difference of what the exchange rate between the American dollar and the Philippine peso used to be and what it is now. It dropped from 52 pesos per dollar last year to 42 pesos per dollar recently. I can&#039;t wait for the dollar to rebound.</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/08/13/a-decision-to-stop-displaying-google-ads/" title="A Decision to Stop Displaying Google Ads">A Decision to Stop Displaying Google Ads</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/08/01/blog-tip-comply-with-google-adsense-restrictions-on-your-wordpress-index-page/" title="Blog Tip: Comply With Google AdSense Restrictions On Your WordPress Index Page">Blog Tip: Comply With Google AdSense Restrictions On Your WordPress Index Page</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/08/04/should-there-be-advertisements-in-blog-feeds/" title="Should There Be Advertisements In Blog Feeds?">Should There Be Advertisements In Blog Feeds?</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/12/13/googling-my-thoughts/" title="Googling My Thoughts">Googling My Thoughts</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/05/01/adsense-for-feeds/" title="AdSense for Feeds">AdSense for Feeds</a></li>
</ul>
<p><!-- Similar Posts took 0.042 ms (cached) --></p>
<!-- google_ad_section_end --><!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://www.untwistedvortex.com/2007/12/07/bowing-down-before-the-google-gods/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Hacking the &#039;Shylock Adsense Plugin&#039; for WordPress</title>
		<link>http://www.untwistedvortex.com/2007/08/11/hacking-the-shylock-adsense-plugin-for-wordpress/</link>
		<comments>http://www.untwistedvortex.com/2007/08/11/hacking-the-shylock-adsense-plugin-for-wordpress/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 04:49:33 +0000</pubDate>
		<dc:creator>RT Cunningham</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[noads]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.untwistedvortex.com/2007/08/11/hacking-the-shylock-adsense-plugin-for-wordpress/</guid>
		<description><![CDATA[I usually refrain from hacking plugins. Normally, I&#039;ll send messages to the plugin authors with any needed changes, wait for the next version or find another plugin that works better. Other than a flaw in my theme causing problems, the Shylock Adsense Plugin for WordPress does what I want it to do.
Briefly, what the plugin [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><!-- google_ad_section_start --><p>I usually refrain from hacking plugins. Normally, I&#039;ll send messages to the plugin authors with any needed changes, wait for the next version or find another plugin that works better. Other than a flaw in my theme causing problems, the <a href="http://shylockblogging.com/shylock-adsense-wordpress-plugin-released-0808/">Shylock Adsense Plugin</a> for WordPress does what I want it to do.</p>
<p>Briefly, what the plugin does is allow you to place a maximum of three ads on the front, index page and then up to three ads on any single post page and any static page. It also has an exclusion feature, where you enter the post IDs, which will prevent ads from appearing on selective posts. This is very handy for keeping extra ads out of the sponsored posts. The plugin also allows you to change the ads, and the position of the ads, in older posts.</p>
<p>The flaw in my theme is that whenever an ad is placed on either the left or right side of an article, and the article includes a video, the video ends up either covering subsequent text or bleeding over the lower border of the post. This isn&#039;t a flaw in the plugin; it&#039;s a flaw in how my theme handles the content area of the post. I could probably fix it permanently if I knew exactly what to look for. Instead, I decided to hack this plugin.</p>
<p>Since I wanted my articles over seven days old to switch to an ad on the right side of the articles, I entered the necessary AdSense code in the plugin options. Of course, I knew it would cause those articles with the videos to get whacked out. I entered a single line into the plugin, under the &#034;shylock_show_code($code_id,$content)&#034; function and replacing the blank line (line 43) with this:</p>
<blockquote><p>
if (stristr($content, &#039;youtube.com/watch&#039;) and ($align == &#039;top_left&#039; or $align == &#039;top-right&#039;)) {$code_id = &#039;1&#039;; $align = &#039;top&#039;;}
</p></blockquote>
<p>What it does is tell the plugin to use the same ad as the one I use for new posts on those specific posts. If I later add Google Video or other video sources, I can add one or more &#034;or&#034; conditions to the line, but so far I have only used YouTube videos. There are other ways to accomplish the same desired outcome, but I found this to be the easiest and not requiring me to edit the plugin or the theme every time I post a YouTube video.</p>
<p>Anyway, this is the plugin Chris from <a href="http://blog-op.com/">Blog-Op</a> wanted when he wrote &#034;<a href="http://blog-op.com/selectively-display-adsense-within-your-posts/">Turn this into a plugin RT, and you could be onto a winner.</a>&#034;. I&#039;m considering whether to hack the exclusion function to be specific to the &#034;This is a sponsored post&#034; line, just so that I don&#039;t have to add post IDs to the plugin over and over again. Probably not, since I can use it the way it is to exclude other than sponsored posts.</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/03/04/bypass-wordpress-content-plugins-with-a-simple-hack/" title="Bypass WordPress Content Plugins with a Simple Hack">Bypass WordPress Content Plugins with a Simple Hack</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/04/01/wp-plugins-exec-php-smart-archives-and-wp-categories-and-posts/" title="WP Plugins: Exec-PHP, Smart Archives, and WP Categories and Posts">WP Plugins: Exec-PHP, Smart Archives, and WP Categories and Posts</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/02/22/wordpress-sidebar-scrollbox/" title="WordPress Sidebar Scrollbox">WordPress Sidebar Scrollbox</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/04/11/playing-with-the-wordpress-more-tag/" title="Playing with the WordPress &#039;More&#039; Tag">Playing with the WordPress &#039;More&#039; Tag</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/05/27/wordpress-plugin-srg-clean-archives/" title="WordPress Plugin: SRG Clean Archives">WordPress Plugin: SRG Clean Archives</a></li>
</ul>
<p><!-- Similar Posts took 0.043 ms (cached) --></p>
<!-- google_ad_section_end --><!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://www.untwistedvortex.com/2007/08/11/hacking-the-shylock-adsense-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog Tip: Comply With Google AdSense Restrictions On Your WordPress Index Page</title>
		<link>http://www.untwistedvortex.com/2007/08/01/blog-tip-comply-with-google-adsense-restrictions-on-your-wordpress-index-page/</link>
		<comments>http://www.untwistedvortex.com/2007/08/01/blog-tip-comply-with-google-adsense-restrictions-on-your-wordpress-index-page/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 17:29:26 +0000</pubDate>
		<dc:creator>RT Cunningham</dc:creator>
				<category><![CDATA[Advertising]]></category>
		<category><![CDATA[noads]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.untwistedvortex.com/2007/08/01/blog-tip-comply-with-google-adsense-restrictions-on-your-wordpress-index-page/</guid>
		<description><![CDATA[Google&#039;s &#034;AdSense for Content&#034; policies restrict every page on your blog to three ad units, three link units, three referral units and two search boxes (see Google AdSense Program Policies). Many of you place at least one ad unit in the content section of each article. On the index page (the home page) it&#039;s a [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><!-- google_ad_section_start --><p>Google&#039;s &#034;AdSense for Content&#034; policies restrict every page on your blog to three ad units, three link units, three referral units and two search boxes (see <a href="https://www.google.com/adsense/support/bin/answer.py?answer=48182&#038;sourceid=aso&#038;subid=ww-ww-et-asui&#038;medium=link">Google AdSense Program Policies</a>). Many of you place at least one ad unit in the content section of each article. On the index page (the home page) it&#039;s a good idea to place a single ad on three individual articles instead of multiple ads on one article.</p>
<p>How do you comply with the restrictions if you&#039;re displaying more than three articles on your index page? The answer lies in editing the theme. Yes, there are plugins that will insert your code into specific places in your theme. At least one of them purports to limit the ad units to three on the index page, but I never tested it to find out. Editing the relevant part of the theme is easy. You only need to concern yourself with the index.php file. The instructions that follow are the way I control my ad placements on the index page.</p>
<p>You start by placing your AdSense code where you want it to display, the best place being between the post title and the content. Once you have it in place, insert this code just before the beginning &#034;&lt;script&#034; line:</p>
<blockquote><p>
&lt;?php<br />
$gcount++; // google post counter<br />
if ($gadv &lt; 3) { // how many ads to display?<br />
if ($gcount%1 == 0) { // display ad after how many posts?<br />
$gadv++; // count number of advertisements<br />
print &#039;
</p></blockquote>
<p>Then after the &#034;&lt;/script&gt;&#034; of the final line of the code:</p>
<blockquote><p>
&#039;;<br />
}<br />
}<br />
?&gt;
</p></blockquote>
<p>After you get it set up properly, it doesn&#039;t matter if you display three or ten articles on the index page. Only the first three will only have ad units on them. If you need help with your theme, feel free to send me a message via my <a href="http://www.untwistedvortex.com/contact/">contact</a> page.</p>
<p>This is not the only way to control ad placement on the index page. I recommend you read Darren Rowse&#039;s article, &#034;<a href="http://www.problogger.net/archives/2006/03/07/introduction-to-advertising-optimization-ad-position/">Introduction to Advertising Optimization &#8211; Ad Position</a>&#034;, and Aaron Brazelle&#039;s article, &#034;<a href="http://www.problogger.net/archives/2006/03/09/how-to-placing-adsense-strategically-between-posts/">How to: Placing Adsense Strategically Between Posts</a>&#034;.</p>
<p><em>Thanks to Matthew of eJabs for sending me the code a few months ago.</em></p>
<p>(Update 2007-08-11: I now use the <a href="http://www.untwistedvortex.com/2007/08/11/hacking-the-shylock-adsense-plugin-for-wordpress/">Shylock Adsense Plugin</a> to do the dirty work for me. I made one change to the plugin to make it work with certain kinds of posts but other than that, it does the job.)</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/12/07/bowing-down-before-the-google-gods/" title="Bowing Down Before The Google Gods">Bowing Down Before The Google Gods</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/08/13/a-decision-to-stop-displaying-google-ads/" title="A Decision to Stop Displaying Google Ads">A Decision to Stop Displaying Google Ads</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/08/04/should-there-be-advertisements-in-blog-feeds/" title="Should There Be Advertisements In Blog Feeds?">Should There Be Advertisements In Blog Feeds?</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/10/15/youre-actually-losing-money-with-google-adsense/" title="You&#039;re actually losing money with Google Adsense">You&#039;re actually losing money with Google Adsense</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/12/13/googling-my-thoughts/" title="Googling My Thoughts">Googling My Thoughts</a></li>
</ul>
<p><!-- Similar Posts took 0.032 ms (cached) --></p>
<!-- google_ad_section_end --><!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://www.untwistedvortex.com/2007/08/01/blog-tip-comply-with-google-adsense-restrictions-on-your-wordpress-index-page/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>Comment Posting Was Broken!</title>
		<link>http://www.untwistedvortex.com/2007/05/16/comment-posting-was-broken/</link>
		<comments>http://www.untwistedvortex.com/2007/05/16/comment-posting-was-broken/#comments</comments>
		<pubDate>Wed, 16 May 2007 08:10:57 +0000</pubDate>
		<dc:creator>RT Cunningham</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[noads]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.untwistedvortex.com/2007/05/16/comment-posting-was-broken/</guid>
		<description><![CDATA[See what happens when you let a neophyte programmer get behind the keyboard? I altered a plugin this morning and had no idea that in the form itself that I&#039;d left out the closing form tag. Everything looked normal and seemed normal. That is, until I was told that an error page came up when [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><!-- google_ad_section_start --><p>See what happens when you let a neophyte programmer get behind the keyboard? I altered a plugin this morning and had no idea that in the form itself that I&#039;d left out the closing form tag. Everything looked normal and seemed normal. That is, until I was told that an error page came up when someone tried to post a comment.</p>
<p>I fixed it, but it took me the last hour to find it. The form was in a plugin and I was looking through the template files. Doh!</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/02/28/i-got-hacked/" title="I Got Hacked!">I Got Hacked!</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/04/01/wp-plugins-exec-php-smart-archives-and-wp-categories-and-posts/" title="WP Plugins: Exec-PHP, Smart Archives, and WP Categories and Posts">WP Plugins: Exec-PHP, Smart Archives, and WP Categories and Posts</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/04/13/wordpress-move-comments-plugin/" title="WordPress Move Comments Plugin">WordPress Move Comments Plugin</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/04/29/the-final-word-on-comment-spam/" title="The Final Word on Comment Spam">The Final Word on Comment Spam</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/05/05/gain-control-of-wordpress-meta-information-and-more-with-headspace/" title="Gain Control of WordPress Meta Information and More with HeadSpace">Gain Control of WordPress Meta Information and More with HeadSpace</a></li>
</ul>
<p><!-- Similar Posts took 0.032 ms (cached) --></p>
<!-- google_ad_section_end --><!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://www.untwistedvortex.com/2007/05/16/comment-posting-was-broken/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Protect Your Blog From Digg and More</title>
		<link>http://www.untwistedvortex.com/2007/04/28/protect-your-blog-from-digg-and-more/</link>
		<comments>http://www.untwistedvortex.com/2007/04/28/protect-your-blog-from-digg-and-more/#comments</comments>
		<pubDate>Sat, 28 Apr 2007 09:24:41 +0000</pubDate>
		<dc:creator>RT Cunningham</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[social websites]]></category>

		<guid isPermaLink="false">http://www.untwistedvortex.com/2007/04/28/protect-your-blog-from-digg-and-more/</guid>
		<description><![CDATA[Are you afraid of what will happen to your blog should it get Digg slammed or suffer from the Slashdot effect? Have you seen your bandwidth usage rise along with the popularity of your blog? I have the solution to your problems.
When I wrote my article, Saving My Bandwidth and My Sanity, I was not [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><!-- google_ad_section_start --><p>Are you afraid of what will happen to your blog should it get Digg slammed or suffer from the Slashdot effect? Have you seen your bandwidth usage rise along with the popularity of your blog? I have the solution to your problems.</p>
<p>When I wrote my article, <a href="http://www.untwistedvortex.com/2007/04/19/saving-my-bandwidth-and-my-sanity/">Saving My Bandwidth and My Sanity</a>, I was not aware that the <a href="http://theblogthatnoonereads.tunasoft.com/coralize/">Coralize</a> plugin existed. I found out today.</p>
<p>In my article, I explained how to do it with the .htaccess file for the Apache web server. With this plugin, you don&#039;t have to worry about it! The plugin has the option to specify which social sites to preemptively coralize your whole site for.</p>
<p>There was one thing missing from the plugin, which I think I fixed myself. When a thumbnail linked to a larger image, the thumbnail would be coralized but the larger image would not. Here&#039;s the code I changed:</p>
<p>From:</p>
<blockquote><p>        //LOCAL IMAGES<br />
if(get_option(&#039;coralize_imgs_lc&#039;)){<br />
$preg_host = preg_quote($_SERVER["HTTP_HOST"], &#039;/&#039;);<br />
$content = preg_replace(&#039;/(\&lt;img\s+.*?src\=["\']http\:\/\/&#039;.$preg_host.&#039;)(\/.*?["\'].*?\&gt;)/i&#039;, &#039;$1.nyud.net:8080$2&#039;, $content);<br />
$content = preg_replace(&#039;/(\&lt;img\s+.*?src\=["\'])(\/.*?["\'].*?\&gt;)/i&#039;, &#039;$1http://&#039;.$_SERVER['HTTP_HOST'].&#039;.nyud.net:8080$2&#039;, $content);<br />
}</p></blockquote>
<p>To:</p>
<blockquote><p>        //LOCAL IMAGES<br />
if(get_option(&#039;coralize_imgs_lc&#039;)){<br />
$preg_host = preg_quote($_SERVER["HTTP_HOST"], &#039;/&#039;);<br />
$content = preg_replace(&#039;/(\&lt;img\s+.*?src\=["\']http\:\/\/&#039;.$preg_host.&#039;)(\/.*?["\'].*?\&gt;)/i&#039;, &#039;$1.nyud.net:8080$2&#039;, $content);<br />
$content = preg_replace(&#039;/(\&lt;img\s+.*?src\=["\'])(\/.*?["\'].*?\&gt;)/i&#039;, &#039;$1http://&#039;.$_SERVER['HTTP_HOST'].&#039;.nyud.net:8080$2&#039;, $content);<br />
if (strpos($content, &#034;.jpg&#034;) || strpos($content, &#034;.gif&#034;) || strpos($content, &#034;.png&#034;)) {<br />
$content = preg_replace(&#039;/(\&lt;a\s+.*?href\=["\']http\:\/\/&#039;.$preg_host.&#039;)(\/.*?["\'].*?\&gt;)/i&#039;, &#039;$1.nyud.net:8080$2&#039;, $content);<br />
$content = preg_replace(&#039;/(\&lt;a\s+.*?href\=["\'])(\/.*?["\'].*?\&gt;)/i&#039;, &#039;$1http://&#039;.$_SERVER['HTTP_HOST'].&#039;.nyud.net:8080$2&#039;, $content);<br />
}<br />
}</p></blockquote>
<p>The second &#034;if&#034; condition is the addition. If you want to try this, don&#039;t just copy and paste. The pretty single and full quotes here won&#039;t work and you&#039;ll have to replace them. You can send me an email message or ask for it in the comments and I&#039;ll send the changed plugin to you. I already forwarded the suggested additions to the author of the plugin.</p>
<p>I haven&#039;t been &#034;dugg&#034; since the plugin was put in place, so I can&#039;t guarantee the success of that part yet. If someone would like to digg this article and quite a few others would vote it up, I&#039;m sure I could report on success or failure. That task, however, is up to you.</p>
<p>Update: Someone dugg me and it appears the plugin did not work, so I switched the .htaccess file and now it works again. The image caching does work with the plugin, so I have no idea why the digg protection doesn&#039;t. (I turned off the .htaccess until it appears a slam is in effect.)</p>
<p>***</p>
<p>Blog Appreciation:</p>
<p>One of my favorite blogs, that I never get over to enough, is <a href="http://dragonladysworld.com/wordpress/">DragonLady&#039;s World</a>. I try to get there often, I really do, because I thoroughly enjoy reading the details she exposes about herself from time to time.</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/05/23/permalink-redirect-wordpress-plugin/" title="Permalink Redirect WordPress Plugin">Permalink Redirect WordPress Plugin</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/05/27/wordpress-plugin-srg-clean-archives/" title="WordPress Plugin: SRG Clean Archives">WordPress Plugin: SRG Clean Archives</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/03/30/digg-me-not/" title="Digg Me Not">Digg Me Not</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/04/01/wp-plugins-exec-php-smart-archives-and-wp-categories-and-posts/" title="WP Plugins: Exec-PHP, Smart Archives, and WP Categories and Posts">WP Plugins: Exec-PHP, Smart Archives, and WP Categories and Posts</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/11/29/gettin-jiggy-wit-it-wordpress-widgets-that-is/" title="Gettin&#039; Jiggy wit It &#8211; WordPress Widgets, that is">Gettin&#039; Jiggy wit It &#8211; WordPress Widgets, that is</a></li>
</ul>
<p><!-- Similar Posts took 0.032 ms (cached) --></p>
<!-- google_ad_section_end --><!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://www.untwistedvortex.com/2007/04/28/protect-your-blog-from-digg-and-more/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Search Engine Optimization (SEO) for WordPress, Part 4</title>
		<link>http://www.untwistedvortex.com/2007/04/24/search-engine-optimization-seo-for-wordpress-part-4/</link>
		<comments>http://www.untwistedvortex.com/2007/04/24/search-engine-optimization-seo-for-wordpress-part-4/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 11:54:23 +0000</pubDate>
		<dc:creator>RT Cunningham</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[noads]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.untwistedvortex.com/2007/04/24/search-engine-optimization-seo-for-wordpress-part-4/</guid>
		<description><![CDATA[In the last three parts of the series, I introduced you to some concept, some code and some plugins to help you optimize your WordPress blog to make it more attractive to search engines. There are more things you can do, to be sure, but I&#039;m not experienced enough to talk about it.
In Part 1, [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><!-- google_ad_section_start --><p>In the last three parts of the series, I introduced you to some concept, some code and some plugins to help you optimize your WordPress blog to make it more attractive to search engines. There are more things you can do, to be sure, but I&#039;m not experienced enough to talk about it.</p>
<p>In <a href="http://www.untwistedvortex.com/2007/04/21/search-engine-optimization-seo-for-wordpress-part-1/">Part 1</a>, I wrote about the .htaccess file for the Apache web server and rewrite rules to make your blog land on a single front index page. I spotted the code and other interesting things at <a href="http://andybeard.eu/2007/04/the-ultimate-wordpress-htaccess-file.html">Niche Marketing &#8211; Andy Beard</a> which took to me to <a href="http://www.alistercameron.com/2007/01/12/two-wordpress-plugins-you-dont-need-and-shouldnt-use/">Alister Cameron // Blogologist</a> where I was able to read even more. Both of these blogs are valuable resources for anyone that wants to continue to optimize their own blogs for the best search engine performance.</p>
<p>In <a href="http://www.untwistedvortex.com/2007/04/22/search-engine-optimization-seo-for-wordpress-part-2/">Part 2</a>, I wrote about a plugin and a theory on reducing outbound links to the sidebars of the front page. I found the plugin on my own but the idea to even look for it came from <a href="http://andybeard.eu/">Andy Beard</a>.</p>
<p>In <a href="http://www.untwistedvortex.com/2007/04/23/search-engine-optimization-seo-for-wordpress-part-3/">Part 3</a>, I wrote about reformatting your blog posts to make them more unique to the search engines. I was introduced to the concept of it by reading a post at <a href="http://www.macbrosplace.com/seo-that-really-works/">MacBros&#039; Place</a> which directed me to <a href="http://raven.za.net/search-and-seo/guide-search-engine-optimization-seo-for-wordpress">Entropy</a> and the articles there.</p>
<p>This concludes this particular series. Thank you for reading.</p>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/04/22/search-engine-optimization-seo-for-wordpress-part-2/" title="Search Engine Optimization (SEO) for WordPress, Part 2">Search Engine Optimization (SEO) for WordPress, Part 2</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/04/23/search-engine-optimization-seo-for-wordpress-part-3/" title="Search Engine Optimization (SEO) for WordPress, Part 3">Search Engine Optimization (SEO) for WordPress, Part 3</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2007/04/21/search-engine-optimization-seo-for-wordpress-part-1/" title="Search Engine Optimization (SEO) for WordPress, Part 1">Search Engine Optimization (SEO) for WordPress, Part 1</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/08/05/the-uv-seo-series-part-two/" title="The UV SEO Series &#8211; Part Two &#8211; One Website Address">The UV SEO Series &#8211; Part Two &#8211; One Website Address</a></li>
<li><a style="font-size:8pt;padding:0;" href="http://www.untwistedvortex.com/2008/08/08/the-uv-seo-series-part-four/" title="The UV SEO Series &#8211; Part Four &#8211; Meta">The UV SEO Series &#8211; Part Four &#8211; Meta</a></li>
</ul>
<p><!-- Similar Posts took 0.038 ms (cached) --></p>
<!-- google_ad_section_end --><!--INFOLINKS_OFF-->]]></content:encoded>
			<wfw:commentRss>http://www.untwistedvortex.com/2007/04/24/search-engine-optimization-seo-for-wordpress-part-4/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
