Drupal 5.x

Upgrading EBMtools.org from Drupal 5 to 6

Submitted by Varun on

With Drupal 7's release around the corner, it is important to get Drupal websites away from version 5.x. To quote D.O:"Drupal 5 will no longer be maintained when Drupal 7 is released." Earlier this year, I moved ebmtools.org from their Drupal 5 install to use the more powerful and secure Drupal 6 version.

The Ecosystem-Based Management (EBM)tools network uses Drupal to connect and inform researchers, users, and providers through their website. In their own words, EBMtools promotes

Quick and Dirty Drupal Content Updates

Submitted by ethan on

It's fairly common to have a development site and a live site running at the same time - whether it's a Drupal 5 to Drupal 6 migration, or simply a development environment for test features before running them on the live site. In any case, one of the issues that comes up here is that the content on the development site can quickly become out of date. This is an issue if your development site will eventually become the live site, as in the case of a D5->D6 migration process.

Introducing the Connect Module

Submitted by stevem on

OK, so the Connect module has actually been around for a while now, but the first version was painfully difficult to use, and the second version has only just seen an official, albeit beta, release.

Connect arose because we wanted to create a flexible and extensible online campaign platform for Drupal. The goal was to produce a framework that would allow different features to be added as necessary. Thus, a single tool could be used to create a simple petition or a sophisticated online email- or fax-sending campaign.

Using SimpleTest in Drupal 5

Submitted by Pawel on

I have been writing a unit test for the connect module using the simpleTest module. The following is a discussion of my experiences. This article from Lullabot is what I mainly used as a reference. Note that if you are following this article be sure to read the comments at the bottom. Especially that hook_simpletest is not required.

Installing SimpleTest

In Drupal 5 simpleTest uses a PHP library for its testing. In later versions of Drupal this library is not used. Once you have finished downloading the simpleTest module read the INSTALL.txt file. The only extra step to configuring this module is to download the simpleTest PHP library and placing it in the ...all/modules/simpletest/simpletest directory.

Theming forms with template.php by overriding theme functions

Submitted by Varun on

Here we are confronted with a situation where the default markup of a form on your site needs to have a different look. For instance when we need the form to be located in a block(eg. in a sidebar) rather than in the main content region of a page. Theming overrides are necessary here to make the form input fields shorter in order to fit within the sidebar region. This is accomplished by editing the template.php file and then creating a corresponding xxx.tpl.php file for the theme.

Theme override screenshot

Script for moving nodes from category to taxonomy

Submitted by ethan on

Recently the Category module has been causing OpenConcept significant difficulty - see Ron's post here.

We are transitioning this site from using the Category module to using the core Taxonomy module to categorize our content. We're using Views to build pages of content, something that was done by the Category module previously.

The first step in this transition is making sure that node-category relationships are mirrored by node-term relationships. This is a pretty straightforward database manipulation. Here's a script for doing that operation.

Upgrade to Ubercart and removal of Categories module

Submitted by mgifford on

Ubercart - One Cart to Rule Them AllWe decided to upgrade our websites from the ecommerce module to the new Ubercart 1.0 shopping cart.

Ubercart (http://www.ubercart.org) simplified the order taking process and has a very customizable checkout, shipping and tax settings.  We were even able to charge GST tax on shipping!  The one page checkout is great and calculated the shipping on the fly as you enter your shipping address.  It will even automatically create an account for you so you can view your order status or print an invoice (or download a file).

Pages

Subscribe to Drupal 5.x