﻿<?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>DannyJames.net &#187; WordPress</title>
	<atom:link href="http://dannyjames.net/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://dannyjames.net</link>
	<description>The Personal Site Of Danny James</description>
	<lastBuildDate>Fri, 26 Jun 2009 18:57:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress Database Error Page and Search Engines</title>
		<link>http://dannyjames.net/2007/12/30/wordpress-database-error-page-and-search-engines/</link>
		<comments>http://dannyjames.net/2007/12/30/wordpress-database-error-page-and-search-engines/#comments</comments>
		<pubDate>Sun, 30 Dec 2007 20:12:28 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[errors]]></category>

		<guid isPermaLink="false">http://dannyjames.net/2007/12/30/wordpress-database-error-page-and-search-engines/</guid>
		<description><![CDATA[WordPress 2.3.2 is now available and with it comes the new ability to create your own custom database error page.
This is a nice feature in my opinion, as not only does it hide possibly sensitive information about your database it also allows you to create a friendly error message for the less computer savvy among [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org/development/2007/12/wordpress-232/" class="extlink">WordPress 2.3.2 is now available</a> and with it comes the new <a href="http://trac.wordpress.org/ticket/5500" class="extlink">ability to create your own custom database error page</a>.</p>
<p>This is a nice feature in my opinion, as not only does it hide possibly sensitive information about your database it also allows you to create a friendly error message for the less computer savvy among us. A possible example would be a simple message telling the user that something has gone wrong and they should check back later. It&#8217;s as easy as creating your custom error page and uploading it to <strong>/wp-content/db-error.php</strong></p>
<p>Then I got thinking. What about our old friend Mr Search Engine?</p>
<span id="more-69"></span>
<p>What would happen if he decided to pay a visit while the database was having a seizure? Well for starters the page would be returning the <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.1" class="extlink"><abbr title="Hypertext Transfer Protocol">HTTP</abbr> 200 status code</a>, which would cause the search engine spider to assume everything is fine and dandy. Not only that, just about <em>every page</em> would be serving the custom database error which would be seen as <a href="http://www.searchenginejournal.com/duplicate-content-penalty-how-to-lose-google-ranking-fast/1886/" class="extlink">duplicate content</a>. Uh oh.</p>
<p>Luckily the WordPress developers allow us to use <abbr title="PHP: Hypertext Preprocessor">PHP</abbr> in the custom error page, so it becomes trivial to rectify this.</p>
<p>The <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4" class="extlink">HTTP 503 status code</a> does the trick here, coupled with the <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.37" class="extlink">Retry-After header</a>. Retry-After is measured in seconds so in my example I&#8217;m telling the spider to come back after one hour (3600 seconds), like so:</p>
<pre class="prettyprint lang-php">
&lt;?php

header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 3600');

?&gt;
... your error page html content here ...
</pre>
<p>The search engine spider now knows that all is not as it should be and that it should check back in an hour.</p>
<p>The possibilities here are endless if you know your way around PHP. The error page could send an email or <abbr title="Short message service">SMS</abbr> to the site administrator and much more, however this is outside of the scope of this article.</p>]]></content:encoded>
			<wfw:commentRss>http://dannyjames.net/2007/12/30/wordpress-database-error-page-and-search-engines/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Project Honey Pot and http:BL</title>
		<link>http://dannyjames.net/2007/05/03/project-honey-pot-and-httpbl/</link>
		<comments>http://dannyjames.net/2007/05/03/project-honey-pot-and-httpbl/#comments</comments>
		<pubDate>Thu, 03 May 2007 16:57:28 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[Finds]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Bots]]></category>
		<category><![CDATA[Honeypot]]></category>
		<category><![CDATA[http:BL]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://dannyjames.net/?p=24</guid>
		<description><![CDATA[After reading this article at Weblog Tools Collection I&#8217;ve installed a honey pot on this site and added Jano&#8217;s http:BL wordpress  plugin to take advantage of http:BL.
The installation of said honeypot was a breeze and if you host your own site I recommend installing your own honeypot. More details are available at Project Honey [...]]]></description>
			<content:encoded><![CDATA[<p>After reading <a href="http://weblogtoolscollection.com/archives/2007/05/03/make-the-web-a-cleaner-place-adopt-a-honey-pot/" class="extlink">this article at Weblog Tools Collection</a> I&#8217;ve installed a honey pot on this site and added <a href="http://stepien.com.pl/2007/04/28/httpbl_wordpress_plugin/" class="extlink">Jano&#8217;s http:BL wordpress  plugin</a> to take advantage of <a href="http://www.projecthoneypot.org/httpbl.php" class="extlink">http:BL</a>.</p>
<p>The installation of said honeypot was a breeze and if you host your own site I recommend installing your own honeypot. More details are available at <a href="http://www.projecthoneypot.org/?rf=34094" class="extlink">Project Honey Pot</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dannyjames.net/2007/05/03/project-honey-pot-and-httpbl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress 2.0.6</title>
		<link>http://dannyjames.net/2007/01/11/wordpress-206/</link>
		<comments>http://dannyjames.net/2007/01/11/wordpress-206/#comments</comments>
		<pubDate>Thu, 11 Jan 2007 13:07:00 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://dannyjames.net/?p=17</guid>
		<description><![CDATA[I&#8217;m a little behind with this one, still recovering from too much turkey methinks. Wordpress 2.0.6 has been released and while upgrading I&#8217;ve made a few changes and been fiddling with the design (coming soon).
The most important (and visible) one is the banishing of WWW. As always a change like this this may break things [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a little behind with this one, still recovering from too much turkey methinks. <a href="http://wordpress.org/development/2007/01/wordpress-206/" class="extlink">Wordpress 2.0.6</a> has been released and while upgrading I&#8217;ve made a few changes and been fiddling with the design (coming soon).</p>
<p>The most important (and visible) one is the <a href="http://no-www.org/" class="extlink">banishing of WWW</a>. As always a change like this this may break things and / or bring about the end of humanity as we know it. If you spot anything amiss feel free to let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://dannyjames.net/2007/01/11/wordpress-206/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Technorati Incoming Links Widget</title>
		<link>http://dannyjames.net/2006/08/24/technorati-incoming-links-widget/</link>
		<comments>http://dannyjames.net/2006/08/24/technorati-incoming-links-widget/#comments</comments>
		<pubDate>Thu, 24 Aug 2006 05:24:08 +0000</pubDate>
		<dc:creator>Danny</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Cosmos]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Technorati]]></category>
		<category><![CDATA[Widget]]></category>

		<guid isPermaLink="false">http://dannyjames.net/?p=11</guid>
		<description><![CDATA[Current Version: 0.62

This widget will display your blog&#8217;s incoming links from Technorati in your sidebar in a similar way to what you see on the Wordpress dashboard. You can see it in action on my sidebar.

To use it you will need the Wordpress widgets plugin with a widgets compatible theme and a Technorati API key.



Technorati [...]]]></description>
			<content:encoded><![CDATA[<p>Current Version: <strong>0.62</strong></p>

<p>This widget will display your blog&#8217;s incoming links from <a href="http://technorati.com/" class="extlink">Technorati</a> in your sidebar in a similar way to what you see on the Wordpress dashboard. You can see it in action <a href="#incoming-links">on my sidebar</a>.</p>

<p>To use it you will need the <a href="http://automattic.com/code/widgets/" class="extlink">Wordpress widgets plugin</a> with a widgets compatible theme and a <a href="http://www.technorati.com/developers/" class="extlink">Technorati API key</a>.</p>

<span id="more-11"></span>

<p>Technorati has a limit on the amount of queries you can submit per day (currently 500). As you can imagine a site with heavy traffic load can easily consume that amount very quickly, so this widget will cache the data and refresh it at a user configurable interval.</p>

<p>This is a beta version of the widget so please don&#8217;t get angry at me if it deletes your blog / makes your computer explode / causes your cat to be ill etc. There are bound to be wrinkles that need ironing out, if you find any please let me know.</p>

<p>Suggestions and feature requests are also welcome, feel free to leave them in the <a href="#leavecomment">comments</a> below.</p>

<p>So far this widget has only been tested and confirmed working on Wordpress version 2.0.4 &#8211; 2.0.7 and 2.1.2 (Thanks Free Thinker)</p>
<h3>Installation</h3>
<ol>
	<li>Download the widget <a href="#downloadfile">below</a> (zip file).</li>
	<li>Extract djn_incoming_links.php and upload to your widgets directory (usually /wp-content/plugins/widgets/).</li>
	<li>Login to your Wordpress admin.</li>
	<li>Go to the &#8220;Plugins&#8221; section where you should see &#8220;Technorati Incoming Links Widget&#8221;, click activate.</li>
	<li>Go to “Presentation” and then “Sidebar Widgets” and drag the widget into place.</li>
	<li>You&#8217;re done, time to configure it!</li>
</ol>
<h3>Options</h3>
<p>The widget has the following options:</p>
<ul>
	<li>Title &#8211; The title that will be displayed in your sidebar (this will also link to the relevent page on Technorati).</li>
	<li>API Key &#8211; You should enter your Technorati API key here (see above).</li>
	<li>Number of items &#8211; The number of links to display.</li>
	<li>Caching Interval &#8211; How often the list should be updated from Technorati in hours.</li>
	<li>Clear Cache &#8211; Clears the links cache, this will pull the data from Technorati again.</li>
</ul>
<p><strong>Note:</strong> If you have no incoming links or have not set your API key the widget will display nothing. I didn&#8217;t think people would want a nice advertisement for the fact they have no incoming links.</p>

<p>If you want to check that the widget is working correctly you can view the source of the page and look for &#8220;DJN Incoming Links ### debug data&#8221; to check the status.</p>
<h3 id="downloadfile">Download Version 0.62</h3>
<a href="http://dannyjames.net/wp-content/uploads/2006/08/djn_incoming_links_062.zip"class="download" >Download</a>
<h3>Changelog</h3>
<p>24 May 2007 &#8211; 0.62 &#8211; Bugfix for incorrect number of items displayed. Thanks <a href="http://www.fool45.com/blogging/why-should-you-link-to-my-blog/#comment-12615" class="extlink">Rico</a>.</p>
<p>24 Aug 2006 &#8211; 0.61 &#8211; Initial beta.</p>]]></content:encoded>
			<wfw:commentRss>http://dannyjames.net/2006/08/24/technorati-incoming-links-widget/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
