Skip to main content
  • Home
  • Work
  • Photography
  • Contact
  • Client Extranet
New Rivers Digital
Home

Drupal 6

"Sponsored by The Executive Office of the President"

In:
  • Drupal 6
  • Drupal Sites
  • Government
24Apr2010

As of Wednesday of this week, there are four new modules on Drupal.org that all include the text "sponsored by The Executive Office of the President" in their description:

  • Context HTTP Headers
  • Akamai
  • GovDelivery
  • Node Embed
  • Eric Weik's blog
  • Add new comment
  • Read more

Implementing Flickr Slideshow Links By Theming Flickr.module

In:
  • Drupal 6
  • Drupal Recipes
  • Flickr
  • Flickr.module
  • Theming
17Jan2010

I've implemented a "slideshow" feature on the photosets in the Photography section of this site (and in blog posts that feature photosets). This feature links to Flickr's built-in slideshow by theming the output of the Flickr module for Drupal:

In this Drupal recipe, we will look at how this was achieved.

  • Eric Weik's blog
  • 3 comments
  • Read more

Using Drupal Actions, Triggers, and Tokens to Send Notifications About Comments

In:
  • Drupal 6
  • Drupal Recipes
  • Token.module
  • Trigger.module
12Dec2009

Many blogging tools and CMSes can automatically send out a notification message when new comments are added to a post. Drupal does not have a setting or checkbox to do this automatically. Instead, in typical Drupal fashion, it gives us the tools to set it up ourselves and customize it as desired using "actions" and "triggers".

For this recipe, we will be using the trigger module (core), as well as the token module (contrib). Token module is not strictly required for this task, but it makes it possible to send a much more informative notification.

  • Eric Weik's blog
  • 26 comments
  • Read more

Google Site Verification Meta Tag in Drupal / Zen

In:
  • Drupal 6
  • Drupal Recipes
  • Theming
  • Zen
  • Zen Theming
28Nov2009

When verifying a site for Google Webmaster Tools, one of the options uses meta tags, specifically meta name="google-site-verification".

This meta tag only needs to appear on the front page of the site, so we can easily check for "is_front" in Drupal and add the meta tag using the theme_preprocess_page() function.

  • Eric Weik's blog
  • 3 comments
  • Read more

Session Data in Drupal: DO NOT USE sess_read() and sess_write()!

In:
  • Drupal 6
  • Drupal Recipes
11Nov2009

When developing a module in Drupal, reading and writing session data is a fairly common pattern. However, it isn't immediately obvious what the best method is for doing this. If you need to read or write to the session in D6, the preferred method is to use the $_SESSION[] superglobal variable as follows:

<?php
function module_setsessionvar() {
 
// Write to the session
 
$_SESSION['module_sessionvar'] = 'example value';
}

function

module_getsessionvar() {
 
// Read from the session
 
$sessionvar = $_SESSION['module_sessionvar'];
}
?>
  • Eric Weik's blog
  • 7 comments
  • Read more

Recovery.gov in the News Again

In:
  • Drupal 6
  • Drupal Sites
  • Government
  • Web Standards
9Jul2009

Back in February, I was excited to find out that the Obama administration was using Drupal for the high-profile recovery.gov site. I was so excited in fact, I even blogged about it:
Recovery.gov and Drupal. Well, recovery.gov is back in the news, this time framed as an $18million boondoggle.

  • Eric Weik's blog
  • Add new comment
  • Read more

Sending Multiple Customized Confirmation Messages with Webform.Module

In:
  • Drupal 6
  • Drupal Recipes
  • Webform.module
2Jul2009

The Webform module for Drupal allows for the creation of customized confirmation e-mail messages to be sent after a user fills out a form. This can be accomplished via some simple pointing and clicking in the "Webform email settings" fieldset when editing the form. However, if you need to send out more than one customized message (say one message to the user, and one message to the site administrators), you'll need to utilize the "Additional Processing" feature of the Webform.

  • Eric Weik's blog
  • 9 comments
  • Read more

Accessing Views 2 in an External Script

In:
  • Drupal 6
  • Drupal Recipes
  • PHP
  • Views.module
26Jun2009

I just finished a quick project that had the following requirements:

  1. A PHP based application needs to output content from a Drupal installation that lives elsewhere on the same server. For the purposes of this discussion, lets pretend we will be adding a "Recent Blog Posts" item to an e-commerce site that pulls directly from Drupal.
  2. The Drupal content must be nicely formatted, and fairly easy for the site administrators to alter.

My solution used the views_embed_view() function for Views 2.

  • Eric Weik's blog
  • 4 comments
  • Read more

Styling Taxonomy Terms

In:
  • Drupal 6
  • Drupal Recipes
  • Theming
  • Zen
  • Zen Theming
19Mar2009

By default, Drupal outputs taxonomy terms as an unordered list in the div.meta section of nodes. Here is a simple CSS pattern to format taxonomy terms with either the pipe character (" | ") or as a comma-delimited list (in the example, change " | " to ", " to make a comma-delimited list).

  • Eric Weik's blog
  • Add new comment
  • Read more

Customizing the Search Block

In:
  • Drupal 6
  • Drupal Recipes
8Mar2009

I recently had to implement a minimal image-based customization to the standard Drupal search block. The resulting search needed to look like this:

The first step was to implement hook_preprocess_search_block_form() in my theme. I adapted mine from this hook_preprocess_search_theme_form() pattern at codegobbler.com.

  • Eric Weik's blog
  • Add new comment
  • Read more
  • 1
  • 2
  • next ›
  • last »
Blog Posts (RSS)

About

Hello! My name is Eric Weik. I am a computer scientist, photographer, musician, and occasional blogger. New Rivers Digital is my software consulting business. I am dedicated to using open source software and open data standards for Web development and applications integration. In particular, I am an ardent Drupal fan and specialize in Drupal module development, theming, and data architecture integration.

Contact Details

New Rivers Digital
PO Box 784

Lancaster, VA 22503

Voice+1-804-577-8526
Fax +1-804-462-3229
Contact Form

Content Tags

Abstract B&W Celestial Clouds Drupal 6 Drupal Recipes Drupal Sites Estuary Etsy Government Grasses HDR Long Exposure Macro New Rivers Digital Orton Photoblog Photo Expedition Photoset Renderblog RGB Sketchbook Snow Storm Structure Synth Sunflow Sunset Theming Webform.module Wide Angle Zen Zen Theming
more tags

Recent comments

  • This is stunning
    2 weeks 5 days ago
  • #42 worked well for me
    3 weeks 3 days ago
  • Email by country
    12 weeks 3 days ago
  • hid conversion kit
    13 weeks 3 days ago
  • James
    14 weeks 2 days ago
  • Michelle
    14 weeks 3 days ago

Popular content

Today's:

  • Using Drupal Actions, Triggers, and Tokens to Send Notifications About Comments
  • Implementing Flickr Slideshow Links By Theming Flickr.module
  • Non-Unique Conditional Email Addresses with Webform.Module

All time:

  • Using Drupal Actions, Triggers, and Tokens to Send Notifications About Comments
  • Sending Multiple Customized Confirmation Messages with Webform.Module
  • Non-Unique Conditional Email Addresses with Webform.Module

Activity Stream

  • Sun, 01/29/2012 - 22:31

  • Flickr Eric posted #0228 - Sunset Tree 10:31pm #
  • Flickr Eric posted #0225 - Rappahannock 10:30pm #
  • Flickr Eric posted #5617 - Hobie Sailing 11:56am #
  • Mon, 01/16/2012 - 10:43

  • Flickr Eric posted #5687 - Broken Tree (Digital Sketch) 10:43am #
  • Fri, 01/06/2012 - 07:54

  • Flickr Eric posted #8975 - Greenvale Creek 7:54am #
  • Flickr Eric posted #8824 - Grass (blue ch) 7:46am #
  • Flickr Eric posted #5687 - Broken Tree (IR) 7:35am #
  • Flickr Eric posted #3205 - Toadstool 7:21am #
  • Flickr Eric posted #2318 - Tree and Beach 7:13am #
  • Flickr Eric posted #2251 - Low Tide Arrival 7:04am #
more from my activity-stream


I am a member of the Drupal Association.
Eric At NRD on Drupal.org
Circumjacence (Eric Weik) on Twitter
Circumjacence on Delicious
Eric Weik on Linkedin
Circumjacence (Eric Weik) on Flickr
Circumjacence (Eric Weik) at StumbleUpon

Powered by Drupal & Genesis | Valid XHTML 1.0 Strict | Syndicate content RSS Feed

© 2010 New Rivers Digital | PO Box 784 | Lancaster, Virginia 22503 | +1-804-577-8526 | Contact Form