Archive for the ‘wordpress’ Category

For real coders, improving wordpress caching speeds for themes and plugins

Thursday, December 15th, 2011

All about the transients API for wordpress, an overview of how to implement it inspired by the homepage of Website Speed : WordPress Caching is a set by step guide on how to implement the transients API, not to be noob coder or lesser mortals!

New Job Title: Andy Killen is CTO of SpeckyBoy design Magazine

Wednesday, February 23rd, 2011

Today the 23rd of February 2011, Andy Killen the Owner of Phat Reaction was also appointed as CTO of SpeckyBoy Design Magazine. SpeckyBoy has around 2million visits per month and around 40,000 active regular readers, and currently ranks 2900 on Alexa.

It is Andy’s tasks to make the website significantly faster and exploit more features of wordpress and social networking to raise the profile of Speckyboy and thus the SEO, PageRank and Alexa rank.

Quoting Andy: “I’m really very happy with this opportunity to make an already successful website in the way of content more successful in the way of technology. I will be pushing to put SpeckyBoy in to the top 250 websites of the world”

We should be going live with the new version of the SpeckyBoy theme this weekend, so do watch for the first round of speed changes.

Attributed with developing another wordpress plugin

Sunday, February 13th, 2011

Due to having to create multi-language sites we constantly come up against that shortfall within other peoples plugins. Most people just don’t need any other language than English, where as us being based in Holland need to have at least English and Dutch.

This time it was the was the turn of WP Email Login that we translated in to dutch after first making the plugin localized. Many thanks to Beau of Automattic/Wordpress fame for including us on the list of developers.

New Article, this time about supporting wordpress plugin developers.

Friday, January 14th, 2011

I’ve been busy again, this time creating an article about the lack of support from the wordpress community towards plugin developers, especially in this changing time of wordpress being #1 CMS and moving to 60million + users.

As ever I’ve put it out through as I like the way that their articles are aimed at the common man and not at the designer elite in a self back scratching kinda way. Here take a read

Hopefully it will raise the issue with Automattic the makers of wordpress as the support needs are really outweighing the benefits of creating a product to go in their plugins set, if that plugin becomes popular in any way.

New Plugin Release, Easy iFrame Loader

Tuesday, January 4th, 2011

We were finding that many of our clients wanted to be able to add iFrames to wordpress pages, but were finding that it would only stay there if HTML mode was the only one used. If they entered visual mode on the editor then it would automatically delete the iframe.

So we have created an iFrame loader so that it will stay. Not only that we have created it so that it loads the iFrame using Javascript using the window.onload function. This means that the iFrame will not load at all until the complete page has downloaded. This is better because often an external iFrame will be the cause of a page failing to load quickly.

After tesing on Firefox, Safari, Chrome, IE, Flock and Opera, we released the plugin via wordpress. See the easy iframe loader plugin page for more information

Share and Follow is the #1 social networking plugin for WordPress.

Wednesday, December 15th, 2010

Well it’s been a busy time since April and the release of Share and Follow, a very busy time indeed. And in that time since April 2010 we’ve moved from ZERO downloads to over 150,000 and become the most popular wordpress plugin for social networking. cool!

People love how easy it is to setup and use, along with how it helps them to get what they want done. Along with the fact that I am willing to support people in their plight to get it all working even on the strangest of configured sites.

Back at the beginning of  November we released the CDN version with now 26 different icon sets to choose from.

This has proved to be very popular and selling many copies every day.  It’s such a pleasure to come to work in the morning and find out that we  have made money over night :)

However it is onwards and upwards for the plugin by being ported to Drupal and Joomla!.

301 Permanent Moves from a Sub-directory to another server when Redirect from Apache won’t work

Thursday, May 20th, 2010

I had a problem  the other day where I had to move my server to a new server location…  In my case I was moving the support pages for my WordPress Plugin “Share and Follow” from my Phat-Reaction server to a new server devoted to Share and Follow.

To make it a little more difficult I need to only move a sub-directory to the new server and not the whole domain….  this meant that I was moving
Source:   (and all sub-directory contents)

At the source there were many pages below the /share-and-follow/  subdirectory, all delivered via WordPress on Apache.  In fact the pages used up to 3 levels of sub-directory below this point.

So I tried to use the Apache Redirect command inside both <Directory> and <VirtualServer> tags but to no avail. In fact when I contacted my hosting company they told me point blank that it could not be done with their server and that 301 Redirect’s could not work when going to an external server.  Not sure I believe that, but no matter what I tried I could not make the standard Apache method work.

To make it work I chose to use PHP and header() commands along with a few extra little bits. Here is the process I took to move it all

  1. Changed the URL inside the WordPress settings to the new URL
  2. Made a back up of the Database
  3. Placed the new .htaccess in the sub-directory
  4. Placed the new index.php in  the sub-directory
  5. Deleted all traces of WordPress from the directory and sub-directories

In essence what it does is use Mod-ReWrite to tell the server that all access to the server below the /share-and-follow/ directory should actually load /share-and-follow/index.php.  So it did not matter if it was /share-and-follow/documentation/working-with-themes/  or /share-and-follow/my-stats.html  it would always load the same index.php.  this is all controlled by the .htaccess file.

example .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /share-and-follow
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /share-and-follow/index.php [L]

remember to change the settings to be as you need for your server. For me I was working in the share-and-follow sub-directory. The only lines that need to be changed for your purpose is RewriteBase and RewriteRule. RewriteBase should point at the sub-directory that you want to move, RewriteRule should point at the file you want to automatically load to deal with the redirection.

Once the URL rewrite is in place, all that is left is to configure the php side of things.

example index.php

 * This file simply redirects with a 301 to a new page with the same name when used in conjunction with a .htaccess
 * @param $stubOld = the Stub URI that will be replaced with the new URL
 * @param $stubNew = the new URI location for the files.

$stubOld = '';
$stubNew = '';
function curPageURL() {
 $pageURL = 'http';
 if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
 $pageURL .= "://";
 if ($_SERVER["SERVER_PORT"] != "80") {
 } else {
 return $pageURL;
$url = curPageURL();
$url = str_ireplace($stubOld ,'' , $url);

header('HTTP/1.1 301 Moved Permanently');
header('Location: '.$stubNew.$url);

In this one you only need to change two things. The $stubOld = Old Source URL and $stubNew= New Destination URL. By changing these two items a URL such as becomes

And the great part is that Google loves it when you do things this way with a 301 error (Moved Permanently).

Enjoy and share it with your webmaster buddies. Here are the files if you want to download them