Development blog about PHP, HTML & CSS and Drupal

Blog posts

Adding color module support to your theme in Drupal 7

Wednesday, 9 November, 2011 - 15:33

I have been playing about with creating my own base theme which I can use to easily roll out new sites quickly and easily for those who don't want to pay for a bespoke design.

The main problem with this is ending up with one theme for all, to get around this with out having to do any development work is use Drupal's core colour module which allows the user to select the colours of certain areas.

This will just show you the basic code that is required for use with a theme using the PHPTempalte engine with some comments on what the code is doing at parts.

Sorry but I will be using the English spelling, too used to typing with the 'u'.

Creating custom pane styles in Drupal 6

Friday, 4 November, 2011 - 12:25

In Panels you can change the style of panes very easily using some presets from the Panels module.

panels-2.jpg

This tutorial will show you how to define your own styles as well as add a settings form to it so you can allow users to further configure the styling of the pane.

panels-3.jpg

Creating your own personal bookmark site like Delicious in Drupal 7

Tuesday, 27 September, 2011 - 08:49

This guide will show you how to make a bookmarking site similar to Delicious where you can add a URL with an optional description and tags which can then be searched on using the internal search or browse using tags.

Creating a comma separated list of taxonomy terms for a node

Saturday, 3 September, 2011 - 19:23

The following code snippet will provide a comma separated list of taxonomy terms for a given node.

New website to sell your house through from just £395 rather than 1.5%

Monday, 22 August, 2011 - 15:19

A new way to sell your house has just come up called Ownmove.com.

They provide the same service as any other high street agent but only charge a small, one-off flat fee of £395 +VAT rather than 1.5% of the sale price which based on the average house price in the UK of £170,000 is over £2,000!!

Use panels to override the node output in Drupal 7

Thursday, 18 August, 2011 - 18:14

When creating an image gallery in Drupal using CCK/Fields the resulting output is just a string of divs resulting in a single column of images. This tutorial will show you how to use Views and Panels to override the standard node output to display the images of the gallery in a grid.

Google Chrome profiles

Tuesday, 16 August, 2011 - 10:50

Google have updated Chrome dev (15.0.849.0 dev-m) to re-enable one of the dev features that was taken out which is the Profile switcher located at the top left of the window.

Downloadable Drupal Features

Friday, 10 June, 2011 - 21:29

If you haven't heard about it Features allows you to create/download pre-setup features which are already set up to do pre-existing tasks. An example could be a blog using the Story content type but with an image field on each node and specially set up Views to display the information. If you are setting this up a lot it can become tedious, or maybe it's the first time but you don't want to spend hours finding out what modules need to be installed to get the required result.

Create an album based image gallery in Drupal 7 using fields and views

Thursday, 26 May, 2011 - 21:28

This is a follow up tutorial on the popular Create an album based image gallery in Drupal 6 using CCK and views but for Drupal 7. The tutorial will assume that you have Drupal 7 already installed and ready for use. The following contrib modules are required:

I personally prefer Colorbox to some of the other lightbox modules, but feel free to use whichever one you want, they should all work in the same way. An alternative can be found in Shadowbox. Lightbox2 doesn't have a D7 release at the time of writing and Thickbox has been discontinued, with the maintainer now working on Colorbox.

Getting a random Wikipedia article using PHP + cURL

Thursday, 26 May, 2011 - 13:48

The following code gets a completely random page from Wikipedia and returns some HTML code with a link to the article. Visiting http://en.wikipedia.org/wiki/Special:Random in your browser will automatically redirect to a random article and the code takes in to account the redirect and gives you the information on the last page in the redirect.