Development

Adding additional form elements using ahah_helper in Drupal 6

This tutorial will show you how to add new form elements which will be available in $form_state['values'] once the form has been submitted using a submit button by taking advantage of the AHAH helper module.

The AHAH helper module does provide a demo, but the demo shows how to change a few fields depending on a selection made from a select element. The tutorials I looked at online either didn't cover the issue properly or just didn't work.

Display iframed content as a block using Block API

The code for this got buggered up in CKeditor due to it not handling Geshi properly, so I have removed all the code. You can download the Drupal 6 file here.

Displaying nodes as blocks using Block API

Recently I wrote a new module called Block API which allows other modules writers to create modules to develop templates for users to easily create new blocks rather than relying on copying and pasting HTML.

The example module included copies the functionality of the core block module. Below I will show how to use Block API to display a specific node as a block with further configuration options available to the user to choose from.

Create a multi-step moderation process in Drupal 6

This will guide you through creating a multi-step process of content moderation in Drupal 6. This is a follow on to the guide on Drupal.org about creating a revisioning system and the follow on, on creating a revisioning system with state-based access. Both of which only allow a single step revisioning sytem, i.e. Author creates content, moderator either edits and publishes or sends back to author to edit.

Scenario

A user submits a piece of content, we will refer to this user as the author. The content is not published and is sent to another user for moderation, we will refer to this user as the moderator.

The moderator can then either set the content from a moderation state back to a draft state for the author to amend or through to a "to be published state".

Once the moderator has checked the content and made amends they can mark the content as ready for publishing. At which point a third user which we will refer to as the publisher, can make further amends to the content and publish it, make further amends and send back to the moderator to check through the changes or mark the content as back to draft to allow the author to change it.

New Drupal module - Block API

I have created a new module for Drupal 6 called Block API which is available on Drupal.org.

Block API is a new module I have developed for Drupal 6 which gives greater control over block templates much like you do with nodes.

More information is available on my Block API page under Projects.

Create a burst of light in Photoshop using filters

This tutorial will show you how to create a burst of light in Photoshop using the basic filters provided with Photoshop.

Create a glossy button in Photoshop

This tutorial will teach you how to create a glossy button that is reusable by using Layer styles. Layer styles are not available in some older versions of Photoshop and Photoshop Elements.

Creating a Drupal multisite enviroment using Drupal 6

This guide will show you how to create a multisite environment using a shared user system with the user only needing to log in once, to be logged in to all the sites.

I will be doing this using WAMP on a Windows XP machine, so some of the steps won't work if you are using IIS or will differ if you are using a different setup.

The result we will be aiming for is a shared user system allowing the user to log in/out of 3 sites which I will use the following domains:

Create your own simple grid system in CSS

This tutorial will outline the steps required to create your own grid system like the 960.gs or Blueprint CSS frameworks.

Photoshop Tutorial - Dark Modern Header

This tutorial with guide you through how to make a dark modern header for your website:

Pages

Subscribe to Development