Blog

WordPress Posts Pagination

I recently had to find a way of forcing WordPress to display a post that had been paginated using the nextpage quicktag, to display different content on different dynamically generated pages. After some help from StackOverflow.com I found out that within The Loop you can access 2 particular variables that [...]

Retrieve Facebook page status with no authenticating or permissions issues

If you’re just looking to read the ‘Stream’ or ‘Statuses’ of a Facebook fan page (not a normal Profile page) it can be done very easily. Due to all Fan Pages being public (their are 2 settings: published or unpublished), as long as the Fan page is published then you [...]

JQuery: Open external links in new window

Finally got round to writing a small bit of code to automatically force anchor links to open in new windows if they are for different domains: $(document).ready(function() { var myDomain = ["www.ajgraham.com", "testing.ajgraham.com", "lifestream.ajgraham.com"]; //do NOT include the http:// pls! $(“a[href^='http://']“).each(function() { var slicedHref = $(this).attr(‘href’).slice(7); var slashPosition = slicedHref.indexOf(“/”); [...]

Simple but powerful JQuery Form Validation

I wrote a relatively simple and intuitive form validation script for a client, which they kindly allowed me to release into the open-source community. Contents The Objective The Basics Including The JavaScript Explaining The Code Core Functions Expanded Functions Options HTML Examples Download License To-Do’s Change-log The Objective The aim [...]

Tracking Email Signature click throughs

A while ago I thought about how best to create a more modern and useful email signature. At the same time I was doing some work with Google Analytics and thought it might be useful to track how many people click on my website link in my signature. I decided [...]