Welcome to the personal website of Oliver Davies - a freelance Web & Drupal Developer based in Newport, South Wales.

Installing and configuring the Image Caption module

Up until as recent as last week, whenever I added an image into one of my Blog posts, I was manually adding the caption below each image and styling it accordingly. That was until I installed the Image Caption module.

The Image Caption module uses jQuery to dynamically add captions to images. Here is a walkthrough of the process that I followed to install and configure the module. As always, I used Drush to download and enable the module, then visited the Image Caption Settings page (admin/settings/image_caption). Here, I select which node types should be included in image captioning. In my case, I only wanted this to apply to Blog posts.

Create a Better Photo Gallery in Drupal - Part 2

At the end of my last post, I'd finished creating the first part of the new photo gallery, but I wanted to change the dates of the published photos to reflect the ones on the client's original website.  

Firstly, I'll refer to the previous list of published galleries that I created before, and create something different that also displays the created and modified dates. Picking the node ID of the required gallery, I used the following SQL query to display a list of photos.

Create a Better Photo Gallery in Drupal - Part 1

Recently, I converted a client's static HTML website, along with their Coppermine Photo Gallery, into a Drupal-powered website.

Over the next few posts, I'll be replicating the process that I used during the conversion, and how I added some additional features to my Drupal gallery.

An Overview of the Admin:hover module

Sorry for the lack of Blog posts lately, but my new job that I started a few weeks ago has certainly been keeping me busy! I've got a few more posts that I'm preparing content for, and I'll hopefully be back into my weekly-post routine before too long!

Today, I'd like to just give a quick overview of the Admin:hover module. It basically adds an administrative menu that pops up when you hover over a node or block within your Drupal website - the kind of functionality that was present within previous versions of the Admin module. It also integrates well with the Devel and Clone modules.

Creating a Garland sub-theme and enabling the Color module

For this site, I've been using Minnelli - a fixed-width version of Drupal 6's default Garland theme - along with the Color module to change the site's default colour set to Bluemarine as oppose to the standard Blue Lagoon.

Recently, I decided that I wanted to edit the page.tpl.php and node.tpl.php template files, but as I was using a core theme, I wasn't able to change these files. So, I created a copy of the Minelli theme directory, renamed it, and placed it into my sites/all/themes directory. As with the default Minnelli theme, my copied theme would need to use Garland as a base theme, to do this, I added the following code to its .info file:

Thanks (again)

Only 8 days since my previous thank you, I am absolutely thrilled to announce that the total number of visits to the site has almost doubled from 574 to 1,026 since the 19th March.

So, I think that another round of thanks are in order to all readers, subscribers to the RSS feed, commenters, followers on Twitter, and fans on Facebook...

Thank you, and come back again soon!

An Overview of the Teleport Module

As a heavily-reliant Quicksilver user on my MacBook Pro, I was glad when I found the Teleport module for Drupal (due to Elliott Rothman's tweet).

Drupal Planet

I'm pleased to announce that my Blog posts are now being imported into the Drupal.org/Drupal Planet aggregator! http://drupal.org/aggregator/sources/664

Quickly Adding a Taxonomy Term to Multiple Nodes using SQL

In preparation for my Blog posts being added to Drupal Planet, I needed to create a new Taxonomy term (or, in this case, tag) called 'Drupal Planet', and assign it to new content to imported into their aggregator. After taking a quick look though my previous posts, I decided that 14 of my previous posts were relevant, and thought that it would be useful to also assign these the 'Drupal Planet' tag.

I didn't want to manually open each post and add the new tag, so I decided to make the changes myself directly into the database using SQL, and as a follow-up to a previous post - Quickly Change the Content Type of Multiple Nodes using SQL.

Thanks!

Since launching this site back on the 19th March, I've been quite suprised by the number of visitors I've recevied! At the time of writing this, I've received 574 visits and 1,269 pageviews - which isn't bad considering that, until a few weeks ago, I was only advertising my posts on my personal Twitter and Facebook accounts! I'm also quite suprised that one of my earliest Blog posts, Styling Drupal 6's Taxonomy Lists with PHP, CSS and jQuery, is still currently the 5th most-viewed page on my site!

Syndicate content