What's been on my mind

South African born Musk's Tesla and SpaceX websites use Drupal

Submitted by charles on Sun, 07/17/2016 - 13:25

I'm a huge fan of Elon Musk, the world-changing, South African born pioneer of the consumer electric car and space technology company SpaceX, and was pleased to learn that both the Tesla website, and the SpaceX website are built on Drupal. Both are currently Drupal 7 sites with home pages that use beautiful images and videos (in the case of the Tesla site) to provide high visual impact and engagement.

Tesla website uses Drupal
Tesla's visually compelling Drupal website home page

Identifying and fixing mod_evasive "client denied by server configuration" errors

Submitted by charles on Wed, 02/25/2015 - 09:36

I recently migrated a Drupal 6 site to Drupal 7 using the migrate and migrate_d2d modules. While testing the new site on my client’s server, every now and again ajax requests were failing, and page resources like images were not loading. The apache error log showed a number of “client denied by server configuration” errors. 

Apache mod_evasive client denied by server configuration errors

CCK form field changes using Drupal's hook_form_alter don't work? Use #after_build

Submitted by charles on Sun, 08/22/2010 - 15:17

I ran into issues when trying to use drupal's hook_form_alter to change some attributes of cck fields in a node form. It appears that depending on the weight of the module the form_alter is in, it might get called before the actual form element has been processed.

To make sure, you can set a function to be called after the form has been properly created, but before rendering.

In your form alter, add the after build key to the form field's array:

$form['field_course_status']['#after_build'][] = 'course_disable_status_field';

How to add Zoopy video to your Drupal site using CCK and the Embedded Media Field module

Submitted by charles on Fri, 03/20/2009 - 09:54

I recently created a provider plugin for Drupal's CCK emfield module which allows you allows you to embed a Zoopy video by pasting the url into a cck field:

zoopy page url pasted into cck field

This is a lot easier than having to copy the embed code provided by Zoopy and paste this into a textarea.

The provider plugin then extracts the video code and displays the video on your Drupal site:

Drupal Johannesburg 11 March meetup notes

Submitted by charles on Wed, 03/18/2009 - 14:08

My thoughts on the meetup

Carl from Cerebra demoing drupal goodnessFor me, it was great to see everyone again, although I was disappointed that there weren't more than 3 new faces among the 15 or so that turned up. We do need to do something to attract more new members. I particularly enjoyed hearing about what new modules people have discovered, and enjoyed the less formal discussions afterwards.

Quick Drupal setup using Acquia's DAMP stack

Submitted by charles on Mon, 03/09/2009 - 07:35

Acquia have released an all in one Drupal install which includes Acquia Drupal, Apache, MySQL, PHP, PhpMyAdmin, and an Acquia Drupal Control Panel, to allow users to easily test and play around with Drupal, without having to get into the technical details of installing separate instances of Apache, MySQL, PHP etc.

Check it out here: http://acquia.com/downloads