<?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>kieranbarnes &#187; Wordpress</title>
	<atom:link href="http://bloke.org/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://bloke.org</link>
	<description>do you know where your towel is?</description>
	<lastBuildDate>Sat, 21 Aug 2010 12:03:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[Snippet] Manually reset a Wordpress password</title>
		<link>http://bloke.org/mysql/snippet-manually-reset-a-wordpress-password/</link>
		<comments>http://bloke.org/mysql/snippet-manually-reset-a-wordpress-password/#comments</comments>
		<pubDate>Wed, 19 May 2010 13:19:32 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=720</guid>
		<description><![CDATA[Wordpress stores user passwords in MD5 checksums, so using your SQL admin tool of choice you can easily reset it.


Related posts:Reset MySQL password on Ubuntu in about 1 second* * It may take a little longer depending on your...
How to move Wordpress directory or server &#8211; properly I ran into an annoying, but easily avoided [...]


Related posts:<ol><li><a href='http://bloke.org/linux/reset-mysql-password-on-ubuntu-in-about-1-second/' rel='bookmark' title='Permanent Link: Reset MySQL password on Ubuntu in about 1 second*'>Reset MySQL password on Ubuntu in about 1 second*</a> <small>* It may take a little longer depending on your...</small></li>
<li><a href='http://bloke.org/php/how-to-move-wordpress-directory-or-server-properly/' rel='bookmark' title='Permanent Link: How to move Wordpress directory or server &#8211; properly'>How to move Wordpress directory or server &#8211; properly</a> <small>I ran into an annoying, but easily avoided problem the...</small></li>
<li><a href='http://bloke.org/mysql/snippet-allow-mysql-root-access-from-anywhere/' rel='bookmark' title='Permanent Link: [Snippet] Allow mysql root access from anywhere'>[Snippet] Allow mysql root access from anywhere</a> <small>A small annoyance of mine is on local development servers,...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Wordpress stores user passwords in MD5 checksums, so using your SQL admin tool of choice you can easily reset it.</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="sql" style="font-family:monospace;"><span class="kw1">UPDATE</span> <span class="st0">`wp_users`</span> <span class="kw1">SET</span> <span class="st0">`user_pass`</span> <span class="sy0">=</span> MD5<span class="br0">&#40;</span><span class="st0">'NEW PASSWORD'</span><span class="br0">&#41;</span> <span class="kw1">WHERE</span> <span class="st0">`wp_users`</span><span class="sy0">.</span><span class="st0">`user_login`</span> <span class="sy0">=</span> <span class="st0">&quot;THE USER&quot;</span> <span class="kw1">LIMIT</span> <span class="nu0">1</span></pre></div></div>


<p>Related posts:<ol><li><a href='http://bloke.org/linux/reset-mysql-password-on-ubuntu-in-about-1-second/' rel='bookmark' title='Permanent Link: Reset MySQL password on Ubuntu in about 1 second*'>Reset MySQL password on Ubuntu in about 1 second*</a> <small>* It may take a little longer depending on your...</small></li>
<li><a href='http://bloke.org/php/how-to-move-wordpress-directory-or-server-properly/' rel='bookmark' title='Permanent Link: How to move Wordpress directory or server &#8211; properly'>How to move Wordpress directory or server &#8211; properly</a> <small>I ran into an annoying, but easily avoided problem the...</small></li>
<li><a href='http://bloke.org/mysql/snippet-allow-mysql-root-access-from-anywhere/' rel='bookmark' title='Permanent Link: [Snippet] Allow mysql root access from anywhere'>[Snippet] Allow mysql root access from anywhere</a> <small>A small annoyance of mine is on local development servers,...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloke.org/mysql/snippet-manually-reset-a-wordpress-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress Wins CMS Award</title>
		<link>http://bloke.org/wordpress/wordpress-wins-cms-award/</link>
		<comments>http://bloke.org/wordpress/wordpress-wins-cms-award/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 12:48:46 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=490</guid>
		<description><![CDATA[http://wordpress.org/development/2009/11/wordpress-wins-cms-award/


Related posts:<ol><li><a href='http://bloke.org/wordpress/removing-wordpress-plugin-references/' rel='bookmark' title='Permanent Link: Removing Wordpress plugin references'>Removing Wordpress plugin references</a> <small>I'd like remove all references Wordpress plugins put into my...</small></li>
<li><a href='http://bloke.org/wordpress/wordpress-suicide/' rel='bookmark' title='Permanent Link: Wordpress Suicide'>Wordpress Suicide</a> <small>Wordpress Suicide is a fun, yet really useful plugin. I...</small></li>
<li><a href='http://bloke.org/php/how-to-move-wordpress-directory-or-server-properly/' rel='bookmark' title='Permanent Link: How to move Wordpress directory or server &#8211; properly'>How to move Wordpress directory or server &#8211; properly</a> <small>I ran into an annoying, but easily avoided problem the...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Wordpress has won the <strong>Overall Best Open Source CMS Award</strong> in the <a href="http://www.packtpub.com/award">2009 Open Source CMS Awards</a>. Its great to see Wordpress being taken seriously as a CMS platform aswell as blogging software.</p>


<p>Related posts:<ol><li><a href='http://bloke.org/wordpress/removing-wordpress-plugin-references/' rel='bookmark' title='Permanent Link: Removing Wordpress plugin references'>Removing Wordpress plugin references</a> <small>I'd like remove all references Wordpress plugins put into my...</small></li>
<li><a href='http://bloke.org/wordpress/wordpress-suicide/' rel='bookmark' title='Permanent Link: Wordpress Suicide'>Wordpress Suicide</a> <small>Wordpress Suicide is a fun, yet really useful plugin. I...</small></li>
<li><a href='http://bloke.org/php/how-to-move-wordpress-directory-or-server-properly/' rel='bookmark' title='Permanent Link: How to move Wordpress directory or server &#8211; properly'>How to move Wordpress directory or server &#8211; properly</a> <small>I ran into an annoying, but easily avoided problem the...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloke.org/wordpress/wordpress-wins-cms-award/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One too many Wordpresseseses</title>
		<link>http://bloke.org/wordpress/one-too-many-wordpresseseses/</link>
		<comments>http://bloke.org/wordpress/one-too-many-wordpresseseses/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 23:52:00 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=481</guid>
		<description><![CDATA[No wonder I have a head ache. locate wp-config.php &#124; cat -n reports fifty Wordpress installs. If only WP-Mu was any good.


Related posts:Wordpress Secret Key &#038; Cookie Strength There is a little known feature in Wordpress 2.5 called...
Setting up awstats I recently setup awstats on two Intranet servers for a...



Related posts:<ol><li><a href='http://bloke.org/geeky/wordpress-secret-key-cookie-strength/' rel='bookmark' title='Permanent Link: Wordpress Secret Key &#038; Cookie Strength'>Wordpress Secret Key &#038; Cookie Strength</a> <small>There is a little known feature in Wordpress 2.5 called...</small></li>
<li><a href='http://bloke.org/html-css-ajax/setting-up-awstats/' rel='bookmark' title='Permanent Link: Setting up awstats'>Setting up awstats</a> <small>I recently setup awstats on two Intranet servers for a...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>No wonder I have a head ache. <em>locate wp-config.php | cat -n</em> reports fifty <a href="http://www.wordpress.org">Wordpress </a>installs. If only WP-Mu was any good.</p>


<p>Related posts:<ol><li><a href='http://bloke.org/geeky/wordpress-secret-key-cookie-strength/' rel='bookmark' title='Permanent Link: Wordpress Secret Key &#038; Cookie Strength'>Wordpress Secret Key &#038; Cookie Strength</a> <small>There is a little known feature in Wordpress 2.5 called...</small></li>
<li><a href='http://bloke.org/html-css-ajax/setting-up-awstats/' rel='bookmark' title='Permanent Link: Setting up awstats'>Setting up awstats</a> <small>I recently setup awstats on two Intranet servers for a...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloke.org/wordpress/one-too-many-wordpresseseses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Page Templates Not Showing in Wordpress</title>
		<link>http://bloke.org/wordpress/custom-page-templates-not-showing-in-wordpress/</link>
		<comments>http://bloke.org/wordpress/custom-page-templates-not-showing-in-wordpress/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 19:38:01 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=437</guid>
		<description><![CDATA[I've recently starting getting an annoying error in Wordpress, I'm not sure if its my browser, or the latest version of Wordpress.  I create a custom page template and... it doesn't show up. Frustrating.

Theres a simple but equally frustrating fix. Simply change your theme to another and chance it back again. You should now see [...]


Related posts:<ol><li><a href='http://bloke.org/php/using-wordpress-header-and-footers-externally/' rel='bookmark' title='Permanent Link: Using Wordpress header and footers externally'>Using Wordpress header and footers externally</a> <small>I needed to integrate a Wordpress header (header.php) and footer...</small></li>
<li><a href='http://bloke.org/linux/single-line-wordpress-install/' rel='bookmark' title='Permanent Link: Single Line Wordpress Install'>Single Line Wordpress Install</a> <small>I'm getting a pro at installing Wordpress now.I'm trying to...</small></li>
<li><a href='http://bloke.org/php/cubecart-mod-show-sub-category-products-on-category-page/' rel='bookmark' title='Permanent Link: CubeCart Mod &#8211; Show sub-category products on category page'>CubeCart Mod &#8211; Show sub-category products on category page</a> <small>This modification is for CubeCart 3. It will show all...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I've recently starting getting an annoying error in Wordpress, I'm not sure if its my browser, or the latest version of Wordpress.  I create a custom page template and... it doesn't show up. Frustrating.</p>
<p><span id="more-437"></span></p>
<p>Theres a simple but equally frustrating fix. Simply change your theme to another and chance it back again. You should now see the Page Template you created.</p>


<p>Related posts:<ol><li><a href='http://bloke.org/php/using-wordpress-header-and-footers-externally/' rel='bookmark' title='Permanent Link: Using Wordpress header and footers externally'>Using Wordpress header and footers externally</a> <small>I needed to integrate a Wordpress header (header.php) and footer...</small></li>
<li><a href='http://bloke.org/linux/single-line-wordpress-install/' rel='bookmark' title='Permanent Link: Single Line Wordpress Install'>Single Line Wordpress Install</a> <small>I'm getting a pro at installing Wordpress now.I'm trying to...</small></li>
<li><a href='http://bloke.org/php/cubecart-mod-show-sub-category-products-on-category-page/' rel='bookmark' title='Permanent Link: CubeCart Mod &#8211; Show sub-category products on category page'>CubeCart Mod &#8211; Show sub-category products on category page</a> <small>This modification is for CubeCart 3. It will show all...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloke.org/wordpress/custom-page-templates-not-showing-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Facebook Chat for Pidgin</title>
		<link>http://bloke.org/wordpress/facebook-chat-for-pidgin/</link>
		<comments>http://bloke.org/wordpress/facebook-chat-for-pidgin/#comments</comments>
		<pubDate>Wed, 13 May 2009 11:50:39 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=433</guid>
		<description><![CDATA[My favourite instant messenger application just got better! There is now a plugin for Facebook.
pidgin-facebookchat is a Facebook chat plugin for Pidgin and other libpurple based messengers. It connects to the new Facebook Chat IM service without the need for an API key.

Currently the plugin can log into the Facebook servers, grab the buddy list, [...]


Related posts:<ol><li><a href='http://bloke.org/windows/preventing-msn-messenger-spam-in-pidgin/' rel='bookmark' title='Permanent Link: Preventing MSN Messenger Spam in Pidgin'>Preventing MSN Messenger Spam in Pidgin</a> <small>I use Pidgin as my instant messenger application. Mainly because...</small></li>
<li><a href='http://bloke.org/reviews/cubecartservicesbiz/' rel='bookmark' title='Permanent Link: cubecartservices.biz'>cubecartservices.biz</a> <small>I'd like to extend my thanks to SemperFi over at...</small></li>
<li><a href='http://bloke.org/php/crawl-rate-tracker-and-wordpress-25/' rel='bookmark' title='Permanent Link: Crawl Rate Tracker and Wordpress 2.5'>Crawl Rate Tracker and Wordpress 2.5</a> <small>I really like Patrick Altoft's Crawl Rate Tracker Plugin for...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>My favourite <a href="http://www.pidgin.im">instant messenger application</a> just got better! There is now a plugin for Facebook.</p>
<p><a href="http://code.google.com/p/pidgin-facebookchat/">pidgin-facebookchat</a> is a Facebook chat plugin for Pidgin and other libpurple based messengers. It connects to the new Facebook Chat IM service without the need for an API key.</p>
<p><img src="http://pidgin-facebookchat.googlecode.com/svn/wiki/facebook_buddy_list.png" alt="facebookchat" /></p>
<p>Currently the plugin can log into the Facebook servers, grab the buddy list, send/receive messages, add/remove friends, receive notifications, search for Facebook friends and set your Facebook status.</p>


<p>Related posts:<ol><li><a href='http://bloke.org/windows/preventing-msn-messenger-spam-in-pidgin/' rel='bookmark' title='Permanent Link: Preventing MSN Messenger Spam in Pidgin'>Preventing MSN Messenger Spam in Pidgin</a> <small>I use Pidgin as my instant messenger application. Mainly because...</small></li>
<li><a href='http://bloke.org/reviews/cubecartservicesbiz/' rel='bookmark' title='Permanent Link: cubecartservices.biz'>cubecartservices.biz</a> <small>I'd like to extend my thanks to SemperFi over at...</small></li>
<li><a href='http://bloke.org/php/crawl-rate-tracker-and-wordpress-25/' rel='bookmark' title='Permanent Link: Crawl Rate Tracker and Wordpress 2.5'>Crawl Rate Tracker and Wordpress 2.5</a> <small>I really like Patrick Altoft's Crawl Rate Tracker Plugin for...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloke.org/wordpress/facebook-chat-for-pidgin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Wordpress header and footers externally</title>
		<link>http://bloke.org/php/using-wordpress-header-and-footers-externally/</link>
		<comments>http://bloke.org/php/using-wordpress-header-and-footers-externally/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 11:18:18 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[CubeCart]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=339</guid>
		<description><![CDATA[I needed to integrate a Wordpress header (header.php) and footer (footer.php) into an external application.
There are quite a few ways round this, but none are really ideal. For example, if you want to include an external page in Wordpress for whatever reason, you could use the Exec-PHP plugin. Simple, hey? No.
What if that page does [...]


Related posts:<ol><li><a href='http://bloke.org/php/cubecart-and-wordpress-integration/' rel='bookmark' title='Permanent Link: CubeCart and Wordpress Integration'>CubeCart and Wordpress Integration</a> <small>Following my 100% CubeCart orientated posts, here's another late night...</small></li>
<li><a href='http://bloke.org/linux/mod_geoip-revisted-including-stopping-spam-in-phpbb-2/' rel='bookmark' title='Permanent Link: mod_geoip Revisted including stopping spam in phpBB 2'>mod_geoip Revisted including stopping spam in phpBB 2</a> <small>I've recently moved a client's forum onto a new cPanel...</small></li>
<li><a href='http://bloke.org/wordpress/custom-page-templates-not-showing-in-wordpress/' rel='bookmark' title='Permanent Link: Custom Page Templates Not Showing in Wordpress'>Custom Page Templates Not Showing in Wordpress</a> <small>I've recently starting getting an annoying error in Wordpress, I'm...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I needed to integrate a Wordpress header (header.php) and footer (footer.php) into an external application.</p>
<p>There are quite a few ways round this, but none are really ideal. For example, if you want to include an external page in Wordpress for whatever reason, you could use the <a title="Exec PHP Plugin for Wordpress" href="http://bluesome.net/post/2005/08/18/50/" target="_blank">Exec-PHP</a> plugin. Simple, hey? No.<span id="more-339"></span></p>
<p>What if that page does something a little bit tricky that can't be run through PHP's eval();?</p>
<p>I ran into these problems whilst integrating a 3rd party web application with a new Wordpress.<br />
We needed both sites to look exactly the same, ideally, using the Wordpress theme as it creates all the page links etc for us.</p>
<p>How do we do it? Simple. I wrote a wrapper to download and save these two files so the 3rd party app can access them.</p>
<p>Here's my shell script, called <em>update_headers.sh</em></p>
<pre lang="bash"><div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="co0">#!/bin/bash</span>
<span class="kw2">rm</span> <span class="re5">-rf</span> header-wrapper.html <span class="sy0">&amp;&amp;</span> <span class="kw2">wget</span> http:<span class="sy0">//</span>YOUR_URL<span class="sy0">/</span>header-wrapper.php <span class="re5">-O</span> header-wrapper.html <span class="re5">-q</span>
<span class="kw2">rm</span> <span class="re5">-rf</span> footer-wrapper.html <span class="sy0">&amp;&amp;</span> <span class="kw2">wget</span> http:<span class="sy0">//</span>YOUR_URL<span class="sy0">/</span>footer-wrapper.php <span class="re5">-O</span> footer-wrapper.html <span class="re5">-q</span></pre></div></div></pre>
<p>It calls wget to download two simple files from the Wordpress directory.</p>
<p><em>header-wrapper.php</em> looks like this</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><span class="kw2">&lt;?php</span>
<span class="kw1">require</span><span class="br0">&#40;</span><span class="st_h">'./wp-blog-header.php'</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
<span class="kw1">include</span> <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st_h">'DOCUMENT_ROOT'</span><span class="br0">&#93;</span><span class="sy0">.</span><span class="st0">&quot;/wp-content/themes/new_theme/header.php&quot;</span><span class="sy0">;</span>
<span class="sy1">?&gt;</span></pre></div></div>
<p>and <em>footer-wrapper.php</em> looks like this</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><span class="kw2">&lt;?php</span>
<span class="kw1">require</span><span class="br0">&#40;</span><span class="st_h">'./wp-blog-header.php'</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp;
<span class="kw1">include</span> <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st_h">'DOCUMENT_ROOT'</span><span class="br0">&#93;</span><span class="sy0">.</span><span class="st0">&quot;/wp-content/themes/new_theme/footer.php&quot;</span><span class="sy0">;</span>
<span class="sy1">?&gt;</span></pre></div></div>
<p>So, the script calls the header and footer wrapper, saves the file to the web root (or where ever you ran the script from, ready to be included by your 3rd party app.</p>
<p>This particular application uses the Smarty template engine, so all I needed to do was replace the appliaction's header code with the following line</p>
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><span class="br0">&#123;</span><span class="kw1">include</span> <a href="http://www.php.net/file"><span class="kw3">file</span></a><span class="sy0">=</span><span class="st0">&quot;/home/YOUR_PATH/header-wrapper.html&quot;</span><span class="br0">&#125;</span></pre></div></div>
<p>and of course, your footer will look similar.</p>
<p>Whenever the client updates the Wordpress pages, for example adds a new page etc, we just call the shell script. Or, if you're lazy, set it to run every hour from cron.</p>
<p>"A bit clunky", you say? Well you find a better way!</p>


<p>Related posts:<ol><li><a href='http://bloke.org/php/cubecart-and-wordpress-integration/' rel='bookmark' title='Permanent Link: CubeCart and Wordpress Integration'>CubeCart and Wordpress Integration</a> <small>Following my 100% CubeCart orientated posts, here's another late night...</small></li>
<li><a href='http://bloke.org/linux/mod_geoip-revisted-including-stopping-spam-in-phpbb-2/' rel='bookmark' title='Permanent Link: mod_geoip Revisted including stopping spam in phpBB 2'>mod_geoip Revisted including stopping spam in phpBB 2</a> <small>I've recently moved a client's forum onto a new cPanel...</small></li>
<li><a href='http://bloke.org/wordpress/custom-page-templates-not-showing-in-wordpress/' rel='bookmark' title='Permanent Link: Custom Page Templates Not Showing in Wordpress'>Custom Page Templates Not Showing in Wordpress</a> <small>I've recently starting getting an annoying error in Wordpress, I'm...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloke.org/php/using-wordpress-header-and-footers-externally/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to move Wordpress directory or server &#8211; properly</title>
		<link>http://bloke.org/php/how-to-move-wordpress-directory-or-server-properly/</link>
		<comments>http://bloke.org/php/how-to-move-wordpress-directory-or-server-properly/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 11:18:25 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=344</guid>
		<description><![CDATA[I ran into an annoying, but easily avoided problem the other day. When moving a clients Wordpress site from the development/staging area to it's live domain, I did the usual update "WordPress address" and "Blog address" in the Wordpress settings.
Thats all you need to do, right? No.

If you've got images and links in your posts, [...]


Related posts:<ol><li><a href='http://bloke.org/php/wordpress-wp-o-matic-duplicate-posts-fix/' rel='bookmark' title='Permanent Link: Wordpress WP-O-Matic Duplicate Posts Fix'>Wordpress WP-O-Matic Duplicate Posts Fix</a> <small>Got a problem with WP-O-Matic creating duplicate posts? Or just...</small></li>
<li><a href='http://bloke.org/geeky/wordpress-secret-key-cookie-strength/' rel='bookmark' title='Permanent Link: Wordpress Secret Key &#038; Cookie Strength'>Wordpress Secret Key &#038; Cookie Strength</a> <small>There is a little known feature in Wordpress 2.5 called...</small></li>
<li><a href='http://bloke.org/wordpress/wordpress-suicide/' rel='bookmark' title='Permanent Link: Wordpress Suicide'>Wordpress Suicide</a> <small>Wordpress Suicide is a fun, yet really useful plugin. I...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I ran into an annoying, but easily avoided problem the other day. When moving a clients Wordpress site from the development/staging area to it's live domain, I did the usual update "WordPress address" and "Blog address" in the Wordpress settings.<br />
Thats all you need to do, right? No.<br />
<span id="more-344"></span><br />
If you've got images and links in your posts, like my client did, they will still reference the development URL. The full URL path is stored in the Wordpress database tables.</p>
<p>Running this SQL will easily sort it out.</p>
<pre lang="sql">UPDATE wp_posts SET post_content = replace(post_content, 'http://OLD_DOMAIN', 'http://NEW_DOMAIN');</pre>
<p>Another 60 second fix!</p>


<p>Related posts:<ol><li><a href='http://bloke.org/php/wordpress-wp-o-matic-duplicate-posts-fix/' rel='bookmark' title='Permanent Link: Wordpress WP-O-Matic Duplicate Posts Fix'>Wordpress WP-O-Matic Duplicate Posts Fix</a> <small>Got a problem with WP-O-Matic creating duplicate posts? Or just...</small></li>
<li><a href='http://bloke.org/geeky/wordpress-secret-key-cookie-strength/' rel='bookmark' title='Permanent Link: Wordpress Secret Key &#038; Cookie Strength'>Wordpress Secret Key &#038; Cookie Strength</a> <small>There is a little known feature in Wordpress 2.5 called...</small></li>
<li><a href='http://bloke.org/wordpress/wordpress-suicide/' rel='bookmark' title='Permanent Link: Wordpress Suicide'>Wordpress Suicide</a> <small>Wordpress Suicide is a fun, yet really useful plugin. I...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloke.org/php/how-to-move-wordpress-directory-or-server-properly/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WP Super Cache &#8211; I&#8217;m impressed</title>
		<link>http://bloke.org/wordpress/wp-super-cache-im-impressed/</link>
		<comments>http://bloke.org/wordpress/wp-super-cache-im-impressed/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 14:48:51 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[performance grade]]></category>
		<category><![CDATA[score]]></category>
		<category><![CDATA[Super]]></category>
		<category><![CDATA[tweaking]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[YSlow]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=316</guid>
		<description><![CDATA[Pictures speak better than words... 
WP Super Cache has shaved nearly 3 seconds off the i9000 Networks website. Nice!
Before

After

After a bit of tweaking, from my other article, I've managed to get the i9k site to a Performance Grade A with a score of 94 according to YSlow. Even nicer!


Related posts:Site Performance Quick Fixes I've been [...]


Related posts:<ol><li><a href='http://bloke.org/wordpress/site-performance-quick-fixes/' rel='bookmark' title='Permanent Link: Site Performance Quick Fixes'>Site Performance Quick Fixes</a> <small>I've been playing around with YSlow for a while now,...</small></li>
<li><a href='http://bloke.org/linux/ubuntu/super-simple-active-directory-with-samba/' rel='bookmark' title='Permanent Link: Super simple Active Directory with Samba'>Super simple Active Directory with Samba</a> <small>I needed a super simple, straight forward way of installing...</small></li>
<li><a href='http://bloke.org/linux/simple-install-of-memcached-on-ubuntu/' rel='bookmark' title='Permanent Link: Simple install of memcached on Ubuntu'>Simple install of memcached on Ubuntu</a> <small>Memcached is a free, high performance distributed memory object caching...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Pictures speak better than words... <span id="more-316"></span></p>
<p><a href="http://ocaoimh.ie/wp-super-cache/" target="_blank">WP Super Cache</a> has shaved nearly 3 seconds off the <a title="PHP Programming and Ecommerce" href="http://www.i9000networks.com" target="_blank">i9000 Networks</a> website. Nice!</p>
<p><strong>Before<br />
</strong><a href="http://bloke.org/wp-content/uploads/2008/07/yslow-wp-26-bar-no-cache.jpg"><img class="alignnone size-full wp-image-318" title="yslow-wp-26-bar-no-cache" src="http://bloke.org/wp-content/uploads/2008/07/yslow-wp-26-bar-no-cache.jpg" alt="" width="135" height="60" /></a><br />
<strong>After</strong></p>
<p><a href="http://bloke.org/wp-content/uploads/2008/07/yslow-wp-26-bar-super-cache.jpg"><img class="alignnone size-full wp-image-317" title="yslow-wp-26-bar-super-cache" src="http://bloke.org/wp-content/uploads/2008/07/yslow-wp-26-bar-super-cache.jpg" alt="" width="137" height="60" /></a></p>
<p>After a bit of <a title="Site Performance Quick Fixes" href="http://bloke.org/wordpress/site-performance-quick-fixes/" target="_blank">tweaking</a>, from my other article, I've managed to get the i9k site to a <strong>Performance Grade A</strong> with a score of <strong>94 </strong>according to YSlow. Even nicer!</p>


<p>Related posts:<ol><li><a href='http://bloke.org/wordpress/site-performance-quick-fixes/' rel='bookmark' title='Permanent Link: Site Performance Quick Fixes'>Site Performance Quick Fixes</a> <small>I've been playing around with YSlow for a while now,...</small></li>
<li><a href='http://bloke.org/linux/ubuntu/super-simple-active-directory-with-samba/' rel='bookmark' title='Permanent Link: Super simple Active Directory with Samba'>Super simple Active Directory with Samba</a> <small>I needed a super simple, straight forward way of installing...</small></li>
<li><a href='http://bloke.org/linux/simple-install-of-memcached-on-ubuntu/' rel='bookmark' title='Permanent Link: Simple install of memcached on Ubuntu'>Simple install of memcached on Ubuntu</a> <small>Memcached is a free, high performance distributed memory object caching...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloke.org/wordpress/wp-super-cache-im-impressed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site Performance Quick Fixes</title>
		<link>http://bloke.org/wordpress/site-performance-quick-fixes/</link>
		<comments>http://bloke.org/wordpress/site-performance-quick-fixes/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 14:14:48 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[cache control]]></category>
		<category><![CDATA[cut and paste]]></category>
		<category><![CDATA[ETags]]></category>
		<category><![CDATA[extra points]]></category>
		<category><![CDATA[jpg jpeg]]></category>
		<category><![CDATA[paste job]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[php cgi]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[quick test]]></category>
		<category><![CDATA[score]]></category>
		<category><![CDATA[trickery]]></category>
		<category><![CDATA[YSlow]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=308</guid>
		<description><![CDATA[I've been playing around with YSlow for a while now, now I decided to a quick test on this blog.
This blog, according to YSlow rates a frumpy Grade D, with a score of 61. Not bad, but not great.
A bit of .htaccess trickery should give me a few extra points... Excellent Grade C, with a [...]


Related posts:<ol><li><a href='http://bloke.org/wordpress/wp-super-cache-im-impressed/' rel='bookmark' title='Permanent Link: WP Super Cache &#8211; I&#8217;m impressed'>WP Super Cache &#8211; I&#8217;m impressed</a> <small>Pictures speak better than words... WP Super Cache has shaved...</small></li>
<li><a href='http://bloke.org/linux/enabling-mod_deflategzip-globally-on-cpanel/' rel='bookmark' title='Permanent Link: Enabling mod_deflate/gzip globally on cPanel'>Enabling mod_deflate/gzip globally on cPanel</a> <small>There's far too many reasons to mention why you should...</small></li>
<li><a href='http://bloke.org/php/using-wordpress-header-and-footers-externally/' rel='bookmark' title='Permanent Link: Using Wordpress header and footers externally'>Using Wordpress header and footers externally</a> <small>I needed to integrate a Wordpress header (header.php) and footer...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I've been playing around with <a href="http://developer.yahoo.com/yslow/" target="_blank">YSlow</a> for a while now, now I decided to a quick test on this blog.</p>
<p>This blog, according to <a href="http://developer.yahoo.com/yslow/" target="_blank">YSlow</a> rates a frumpy <strong>Grade D</strong>, with a score of <strong>61</strong>. Not bad, but not great.<br />
A bit of .htaccess trickery should give me a few extra points... Excellent <strong>Grade C</strong>, with a score of <strong>73</strong>.<span id="more-308"></span><br />
Here's the modified .htaccess file. Some of this is <span style="text-decoration: line-through;">blatantly stolen</span> borrowed from the <a href="http://www.askapache.com/htaccess/speed-up-your-site-with-caching-and-cache-control.html#caching-with-both-modules" target="_blank">AskApache Guru</a>.</p>
<pre># Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0

# Set up caching on media files for 1 year (forever?)
&lt;FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$"&gt;
ExpiresDefault A29030400
Header append Cache-Control "public"
&lt;/FilesMatch&gt;

# Set up caching on media files for 1 week
&lt;FilesMatch "\.(gif|jpg|jpeg|png|swf)$"&gt;
ExpiresDefault A604800
Header append Cache-Control "public"
&lt;/FilesMatch&gt;

# Set up 2 Hour caching on commonly updated files
&lt;FilesMatch "\.(xml|txt|html|js|css)$"&gt;
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
&lt;/FilesMatch&gt;

# Force no caching for dynamic files
&lt;FilesMatch "\.(php|cgi|pl|htm)$"&gt;
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
&lt;/FilesMatch&gt;

# deflate JS and CSS
&lt;IfModule mod_deflate.c&gt;
        &lt;FilesMatch "\.(js|css)$"&gt;
                SetOutputFilter DEFLATE
        &lt;/FilesMatch&gt;
&lt;/IfModule&gt;

# Disable pesky ETags.
Header unset ETag
FileETag None</pre>
<p><strong>What have we done?</strong></p>
<ul>
<li>Setup caching on most of the commonly served files</li>
<li>Set Javascript and CSS files be GZipped</li>
<li>Disabled <a href="http://en.wikipedia.org/wiki/HTTP_ETag" target="_blank">ETags</a>.</li>
</ul>
<p>So, jumping up a grade for just a simple cut and paste job? Can't be bad.</p>
<p>What else can we do? Well, theres lots. For example, I use the <a href="http://www.puzich.com/wordpress-plugins/lightview" target="_blank">LightView Plus</a> plugin, it's very JS &amp; CSS heavy. Disabling it adds 13 points, taking me up to a score of <strong>86</strong>. It also saves 50k of code.</p>
<p>Take a look at your Wordpress plugins. Do you really need them all? Perhaps try loading the plugins only on the pages you require them on. cformsII lets you do exactly that!</p>


<p>Related posts:<ol><li><a href='http://bloke.org/wordpress/wp-super-cache-im-impressed/' rel='bookmark' title='Permanent Link: WP Super Cache &#8211; I&#8217;m impressed'>WP Super Cache &#8211; I&#8217;m impressed</a> <small>Pictures speak better than words... WP Super Cache has shaved...</small></li>
<li><a href='http://bloke.org/linux/enabling-mod_deflategzip-globally-on-cpanel/' rel='bookmark' title='Permanent Link: Enabling mod_deflate/gzip globally on cPanel'>Enabling mod_deflate/gzip globally on cPanel</a> <small>There's far too many reasons to mention why you should...</small></li>
<li><a href='http://bloke.org/php/using-wordpress-header-and-footers-externally/' rel='bookmark' title='Permanent Link: Using Wordpress header and footers externally'>Using Wordpress header and footers externally</a> <small>I needed to integrate a Wordpress header (header.php) and footer...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloke.org/wordpress/site-performance-quick-fixes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Single Line Wordpress Install</title>
		<link>http://bloke.org/linux/single-line-wordpress-install/</link>
		<comments>http://bloke.org/linux/single-line-wordpress-install/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 13:36:30 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql database]]></category>
		<category><![CDATA[single line]]></category>
		<category><![CDATA[Unzip]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[xml sitemap]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=306</guid>
		<description><![CDATA[I'm getting a pro at installing Wordpress now.I'm trying to cut down my install time to a minimum.
Here's a one line Linux command to;

Download the latest Wordpress.
Unzip, move files from the wordpress/ directory to the root.
Clean up some unnecessary files.
Create some necessary files.
Set some necessary permissions.

wget http://wordpress.org/latest.zip &#38;&#38;
unzip latest.zip &#38;&#38;
mv wordpress/* . &#38;&#38;
touch robots.txt sitemap.xml [...]


Related posts:<ol><li><a href='http://bloke.org/wordpress/custom-page-templates-not-showing-in-wordpress/' rel='bookmark' title='Permanent Link: Custom Page Templates Not Showing in Wordpress'>Custom Page Templates Not Showing in Wordpress</a> <small>I've recently starting getting an annoying error in Wordpress, I'm...</small></li>
<li><a href='http://bloke.org/general/wordpress-25-upgraded/' rel='bookmark' title='Permanent Link: Wordpress 2.5 Upgrade'>Wordpress 2.5 Upgrade</a> <small>This morning I upgraded to the latest Wordpress 2.5, along...</small></li>
<li><a href='http://bloke.org/php/crawl-rate-tracker-and-wordpress-25-manual-fix/' rel='bookmark' title='Permanent Link: Crawl Rate Tracker and Wordpress 2.5 Manual Fix'>Crawl Rate Tracker and Wordpress 2.5 Manual Fix</a> <small>A quick update on people that need the Crawl Rate...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I'm getting a pro at installing Wordpress now.I'm trying to cut down my install time to a minimum.<span id="more-306"></span></p>
<p>Here's a one line Linux command to;</p>
<ul>
<li>Download the latest Wordpress.</li>
<li>Unzip, move files from the wordpress/ directory to the root.</li>
<li>Clean up some unnecessary files.</li>
<li>Create some necessary files.</li>
<li>Set some necessary permissions.</li>
</ul>
<pre>wget http://wordpress.org/latest.zip &amp;&amp;
unzip latest.zip &amp;&amp;
mv wordpress/* . &amp;&amp;
touch robots.txt sitemap.xml sitemap.xml.gz .htaccess &amp;&amp;
chmod 777 robots.txt sitemap.xml sitemap.xml.gz .htaccess
&amp;&amp; rm license.txt readme.html latest.zip &amp;&amp;
mkdir wp-content/uploads &amp;&amp;
chmod 777 wp-content/uploads</pre>
<p>Now I just need to create the MySQL database and user from that command and I'm laughing.</p>


<p>Related posts:<ol><li><a href='http://bloke.org/wordpress/custom-page-templates-not-showing-in-wordpress/' rel='bookmark' title='Permanent Link: Custom Page Templates Not Showing in Wordpress'>Custom Page Templates Not Showing in Wordpress</a> <small>I've recently starting getting an annoying error in Wordpress, I'm...</small></li>
<li><a href='http://bloke.org/general/wordpress-25-upgraded/' rel='bookmark' title='Permanent Link: Wordpress 2.5 Upgrade'>Wordpress 2.5 Upgrade</a> <small>This morning I upgraded to the latest Wordpress 2.5, along...</small></li>
<li><a href='http://bloke.org/php/crawl-rate-tracker-and-wordpress-25-manual-fix/' rel='bookmark' title='Permanent Link: Crawl Rate Tracker and Wordpress 2.5 Manual Fix'>Crawl Rate Tracker and Wordpress 2.5 Manual Fix</a> <small>A quick update on people that need the Crawl Rate...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bloke.org/linux/single-line-wordpress-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
