Blog posts

HTPC resetup using Windows 7 and MCE

From my previous post about building my HTPC and configuring the HTPC using MediaPortal, I have now changed my setup software wise.

[Drupal] An error occured while attempting to process add Content Modal form

When trying to add some content new a pane in Panels in Drupal 5 you may get this message.

In my case it was caused by the Secure Pages module. To fix this add the following line to your Secure Pages configuration under Ignore pages:


No add button in IMCE in Drupal when using the Secure Pages module

There may be cases where you are using IMCE with Drupal and have the IMCE appear on node add/edit pages which use a secure URL. You need to add the following to the ignore section of the Secure Pages module.


Go back to your node add/edit page and you should now have the add button in IMCE.

Firefox 3.5 released - No sign of Yslow or Google Gears

Firefox 3.5 is now available for download and a highly used addon by most developers hasn't been updated.

Yslow has yet to be updated, neither has CSSViewer. The Web Developer Toolbar and Firebug are both up to date though.

Add a publish button on node edit forms in Drupal 6 using a custom module

This tutorial assumes you have a reasonable knowledge of Drupal such as being able to create a custom module. It also requires an understanding of PHP and jQuery.

Creating a grid of images for an album in Drupal 6

Following on from the tutorial of creating an album based gallery in Drupal 6. This tutorial will teach you how to create a basic grid of the images in the node.

Update: I have written an updated tutorial with code to allow you to have pagination on your grid of images.

Create an album based image gallery in Drupal 6 using CCK and views

This tutorial is an addition to my previous tutorial on creating a simple gallery in Drupal 6 using CCK and views.  This tutorial will enable users to create galleries containing multiple images per node with each album being listed within a view presented by one of the node’s images.

This tutorial was written with the following versions of Drupal and module:

Note: These were the latest versions as of writing this tutorial.

Fatal error: Unsupported operand types in email_registration.module on line 61

You will get this error if you have logintoboggan and email_registration installed within Drupal 5 and visit the site as an anonymous user with the user login block enabled.  This is caused by the modifications made to the user login block by the logintoboggan module.

You can fix this without hacking the email_registration.module file.

Command prompt and regedit fail to open and restart explorer.exe

On a Windows XP SP2 machine I have had, both the command prompt (cmd.exe) and regedit (regedit32.exe) failed to load and just restarted explorer.exe which closed all open windows and brought you back to the desktop. This also brought up the Restore Active Desktop message on the desktop and the Restore button failed with a script error.

On most start ups, explorer didn’t load at all, but could be manually by bringing up the task manager (Ctrl + Alt + Delete) and going to File –> Run and typing ‘explorer.exe’ (without the quotes).

I don’t know where the malware came from, but there were traces from Limewire, so one could hazard a guess that this was likely the cause.

“HTTP request status” in Drupal 6.x on localhost

I just set up XAMPP on my Vista x64 PC and found that after installing Drupal 6 that the status report was throwing up an error.

HTTP request status

Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services.