Archive for 'Development'

[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:
*ajax*

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.
imce*
Go back to your node add/edit page and you should now have the add button [...]

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.
Google Gears is also not available yet, but Google has released another addon for Firefox called Page [...]

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.
Create a new module, I will call mine node_publish.
The first thing I will do is create a callback function that will be used to publish the node. [...]

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 [...]

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.

“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, [...]