Adding product to basket in Ubercart causes checkout bug
As part of a site I’ve recently been developing using Ubercart, I needed the ability to be able to add an item to the basket via a URL. Getting a URL to trigger an event was trivial, using the following code. First, you setup the URL pattern to trigger a callback function: $items['product/%/add'] = array(Read more »
Getting pages with a certain template
I’d originally posted this on the WordPress StackExchange site, but thought I’d share it here as well. If you ever need to get pages which use a certain template, you can use the following query. You can then use the loop as normal to iterate over the pages, as well as expanding on the aboveRead more »
Better auto updating copyright date
At the start of every year, there always seem to be several blog posts about how to automatically update the copyright date in the footer of your site. These all seem to rely on using the date function in PHP to output the current year. Although this works fine in most cases, it falls apartRead more »
Estimates or “How to dig your own grave”
This is part of the series covering the PHP Nw 2011 conference. View the rest of the posts on this event here. This was one of the best talks that I’d attended, despite not being about PHP, but about the problems with estimates and how to avoid them. Rowan wasn’t even shaken by the multitudeRead more »
PHP North West 2011 Review
I was fortunate enough to attend the recent PHP conference in Manchester for the second consecutive year a few weeks ago, and this series of posts summarises my thoughts and what I learnt. It’s safe to say I’ll be going again next year! I will write up all the talks I attended in the nextRead more »
Google Reader modifications using GreaseMonkey
Google Reader has recently received the visual update which has been available for most Google Services over the last few months. On the whole, I like the style and think it’s much cleaner than the old one. Despite this, it’s not perfect in my opinion, with my biggest complaint being how it styles the collapsedRead more »
Goodbye And, Hello MC2
Goodbye And! Today marks my last day at And Digital. I’ve been here for 15 months, having joined right out of University. At the time, I wasn’t actively seeking employment, as I was freelancing so that I did’t have to settle for “any old job”. After a few jobs at And Digital, they offered meRead more »
Web app lock in – Getting your data out
As more and more desktop applications are being replaced with their web counterparts, data ownership is becoming an increasing concern – At least it should be. The problem is, the more you invest into a system, in terms of time and data, the more you tie yourself to it, until one day, you want toRead more »
New site launch
UPDATE: I’ve now replaced the “Lorem Ipsum” with actual content, but everything else below is still valid. Today I launched my new site, but unlike most site launches, it’s half missing. Currently, the only real content is on the homepage and the blog. There are some screenshots of a few websites in the portfolio section,Read more »
Removing fields for logged in users in Gravity Forms
Gravity Forms is one of my favourite WordPress plug-ins due to it’s ease of use, flexability and extensibilty. In a recent project I needed to be able to show or hide a set of fields dependant on if the user was logged in. Although Gravity Forms allows for conditional fields, these are dependant on otherRead more »
Simple stats collection with CodeIgniter hooks
Yesterday, I launched the alpha version of Project Trackr, a web based project management system I’m working on. As well as the feedback I would receive from the users themselves, I wanted some additional data. I wanted to track the users journey throughout the site and to get some quantitative data on on the usageRead more »
Easy chained select using jQuery
Whilst working on Project Trackr, I had the need to be able to easily add chained selects within a form, more specifically, I wanted selecting an account or a client from a drop down list to load another drop down list beneath it with users in that account. An easy way to do this wouldRead more »
Getting full auto complete with CodeIgniter in Eclipse
CodeIgniter is a brilliant PHP framework and Eclipse is a brilliant IDE, so if I use them both, then it will be super brilliant? Not quite. In CodeIgniter, if you want to use one of the many fabulous libraries, such as the Database Active Record class, then you need to load it (using autoload orRead more »