for now this is mostly just a place for me to track posts, news feeds, ideas and code snippets
(Submitted Sat, 2006-09-23 19:20)

Ayman has written an excellent tutorial on how to create a custom portal interface with Drupal.

Take a look at the demo, and once your head has stopped swimming with all the possibilities, head on over to the tutorial to see how it's done.

Super coolness bonus points: He is updating it to make use of jQuery rather than Scriptaculous for Drupal 5.0

heck ya!

(Submitted Sat, 2006-09-23 19:09)

One of the hot new features for the upcoming release of Drupal 5.0 is that it includes and makes use of the jQuery library.

Well, if you are running 4.7, you need not feel left out. Steve McKenzie - with a bit of help from Ted Serbinski - has released a patch that updates all of Drupal 4.7's internal javascript to make use jQuery, and allows you to develop against the jQuery library.

(Submitted Wed, 2006-09-20 06:29)

IBM Developer Works has updated their in depth "Using open source software to design, develop, and deploy a collaborative website" series.

The new article focuses on building a Drupal module.

Part 6: Building a custom module in Drupal (Sept. 12, 2006)
Part 5: Getting started with Drupal (Aug. 29, 2006)
Part 4: Building your development environment in Linux (Aug. 11, 2006)

(Submitted Mon, 2006-09-18 22:27)

I regularly find myself digging up the proper nodes to explain to someone how to apply a patch either from a shell command line or locally on a windows machine.

I also find myself always needing to dig up the information on the proper command line syntax for generating a patch for submission.

So here's the scoop, so I don't have to do all that oh-so-complicated searching everytime ;)

(Submitted Mon, 2006-09-18 04:10)

robots

The robots.txt file tells various spidering engines, like those used by search engines, what content to index and what content to leave alone.

You don't strictly need a robots.txt file in your root Drupal directory if you are running a public site. Without one, however, your admin log will start filling up with "robots.txt not found" warnings.

A quick solution is to create an empty robots.txt file. Search engine spiders will find the file, will not encounter any disallow rules, and - hopefully! - go about their business of indexing your website.

Yet there is an even better approach. Why not actually list the directories that you don't want the spider indexing or wasting its time on? Think of the printer friendly pages of, for example, book pages. Duplicate content. Duplicate content bad (just ask Google).

(Submitted Sun, 2006-09-17 15:25)

I was installing CCK here on WWDD, and got this error -

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of content_db_construct_column_type(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /sites/default/modules/cck/content_admin.inc on line 955 and 1000

I remembered having the same error after installing on a different site, and having gone in manually to fix it. For my own future reference, or for anyone having the same problem, someone has submitted a patch here: http://drupal.org/node/81599

(Submitted Sun, 2006-09-17 03:38)

Just in case -- in the off chance -- you haven't been listening to the cool kids over at Lullabot's Drupal podcasts, you really should be.

You really, really should be.

Always informative, always entertaining. 'Git your geek on over here.

Bonus track: Jeff Robbins gabs about Drupal over at TWiT.

(Submitted Sun, 2006-09-17 03:17)

Step 1:

Create a file called test.module in your modules directory

Step 2:

Copy and paste the following code

<?php
function test_form_alter($form_id, &$form) {
  if (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) {
    if (is_array($form['taxonomy'])) {
      foreach ($form['taxonomy'] as $vid => $taxonomy) {
        if (is_numeric($vid)) {
          if ($taxonomy['#multiple']) {
            $form['taxonomy'][$vid]['#type'] = 'checkboxes';
          }
          else {

(Submitted Sun, 2006-09-17 00:43)

This is just to track the changes I've found necessary to get the voting module functioning correctly. (Hey, why is it that the Voting module doesn't have a proper drupal.org/project page?) I'm going to ping benshell to see if he's actively maintaining the module. I certainly hope so -- it's pretty slick.

It would be interesting to work on a similar module for Drupal 5.0 that would make use of the JQuery library rather than flash to achieve the same sort of functionality.

  • drupal.org/node/76211:
  • Two settings are sharing the same variable in the function voting_settings(). The result of this is that the option to choose where - at the top or the bottom of a node - does not show up in the settings page. Patch not presently available.

    Quick Fix: In function voting_settings(), change the second instance of
    $form['general']['voting_location'] = array(
    to
    $form['general']['voting_show_in_teaser'] = array(

Hosted By Dreamhost.com