Blog of Lukas White, Manchester-based Web Developer specialising in PHP, Drupal and Zend Framework

May
04
1

There isn't really an out-of-the-box solution for gift certificates in Drupal Commerce; there's no module (at time of writing) you can simply download, enable and forget about. Being Drupal, there are many ways to skin a cat, so to speak, so in this post I'm going to outline how I got them working on a site I built.

 
Dec
14
0

At time of writing, Spotify doesn’t provide a track’s artwork via its API.

So, I’ve written a simple function to get the image; but please note, not only is it quick and dirty, but it’s horribly inefficient and should be used sparingly – at the very least, make sure you cache the results somewhere!

You can access a public-facing web-page about a particular track using the following URL:

http://open.spotify.com/track/[TRACK-ID]

 
Jul
25
1

Just a quick one, but it’s something that I got stuck with for a while.

 
Dec
26
0

I haven’t blogged for a while, but I have been writing. I recently wrote an article for PHP Master (part of the Sitepoint family) on geolocation, called Targetted Geolocation with Geonames.

 
Oct
21
9

If, like me, you often develop on a Windows platform and then host using a *Nix-based server, Concrete5 has a gotcha which will probably hit you when you come to publish your site.

At some point no doubt you’ll reach the point where you’ve copied the codebase to your server, created a database dump and imported it into the MySQL instance on your *Nix-based server. Try browsing to your site at this point, though, and you’ll get a message a lot like this:

 
Sep
04
0

Drupal 7’s block module can be a little limited in its permissions; “Administer Blocks” is a rather sweeping capability, and often it’s useful to be able to make it that bit more granular.

 

About Me

Lukas White, LAMP Developer Manchester

I'm a web developer based in Manchester, England. I also design websites.  I generally favour open-source technologies such as PHP, MySQL and JQuery, and I have extensive experience using Drupal.

Read more »

Recent Comments

1 day 10 hours ago Anonymous commented on Gift Certificates in Drupal Commerce:

I am using the steps which you are given...
1) created a line item type "Gift Certificate...

Read more...
1 week 4 hours ago tabernario commented on Using an Additional Database in Drupal 7:

Thank you. I've spent a lot of time trying to conect to a civicrm database.

Perfect...

Read more...
1 week 6 days ago Anonymous commented on Using an Additional Database in Drupal 7:

Hi
I have small issue coming when i was migrate drupal 6 to drupal 7 site..
My...

Read more...