For a while now I’ve wondered if there is an easy way to “AJAXify” forms without taking away from the semantics and functionality of a normal HTML form. So I came up with a simple solution powered by jQuery. The main aim here is to be able to just drop the javascript on top of the HMTL form in a progressive enhancement style so that the underlying HTML form would work even if the javascript is turned off. Continue Reading »
Archive for the ‘Tutorials’ Category
HTML Forms to AJAX Forms The Easy Way
How To: Preview a Theme in Wordpress the Easy Way
Here is a quick easy one for you. Say you have developed a new theme for your Wordpress site and you’ve uploaded it but want to make some final checks before putting it live for everyone to see. Well you can simply use a URL in the following format:
http://www.mysite.com/?preview=1&template=themename&stylesheet=themename
Above replace the themename with the name of the theme you want to test and hola! A fully working preview of your theme, while everyone else see’s the normal theme. Note you have to be logged in for this to work.
How To: Related Posts in Wordpress Feeds
Continue Reading »
In this tutorial I’m going to show you how to add a list of related posts by tag to your feeds in Wordpress. And yes we are going to do it the good old fashioned way by coding it ourselves. The function for getting related posts can be used to show them on normal posts as well but for this example we add some extra bit’s to make sure they only show up in our feed and not on our normal posts. It’s also worth mentioning that this code will add the related posts list to all of your feeds (e.g. RSS, RSS2, Atom etc) as Wordpress generates multiple types of feed for your blog automatically.
Speed Up Your Site with Simple Caching in PHP

After reading David Walsh’s “Retrieve, Cache, and Display Your FeedBurner Subscriber Count” post I was inspired to expand on the example he had created and created my own simple PHP caching class. To be honest I was amazed at the results. So I’ve decided to share with you what I’ve done and how I did it. Continue Reading »
Simple Database Backup Script for Mediatemple (gs) Servers

When you run websites one thing you always need to keep in mind is not just backing up your files but also backing up your database. Recently I went through this process with my website host MediaTemple.net who are a great hosting provider. I use their (gs) shared hosting and I came across this great script for backing up your database. Continue Reading »





