Blog

Crop Images *AFTER* They Are Uploaded

This is a quick screencast of the ImageField Crop module which allows you to crop images after you upload them via ImageField.  And, it's not a destructive crop.  Just edit the node and you can re-crop the image from the original upload.  Very cool indeed.

A Required Date Field With Time -- But Time Not Required

The Search

I first thought that the Date field could do it.  I created a date field with granularity defined down to the minute.  But that meant that the hour and second were required in addition to the year, month and day.

What about leaving the date field with year, month and day granularity and then adding another date field just with minutes and seconds?  Can't do that, the date field requires that year be included in the granularity.

Simple backup script for Rackspace Cloud

There was a very simple backup script that I found in Rackspace Cloud's knowledge base, but it didn't have rolling backups.  I've found the errors in data aren't found for a couple of days, so a backup down at 4:00 AM that morning wasn't going to be very helpful. 

Theming the Content Taxonomy Module

Like many CCK enthusiast, I immediately create a content field for every taxonomy I create using the Content Taxonomy module.  It gives me some flexibility in terms of form layout (if I don't want all taxnonomies grouped), control over the order of fields during registration (using a straight taxonomy field usually requires some hook_form_later massaging) and the ability to use a branch of the taxonomy as a select list -- all good stuff.

Pre-caching Important Pages on Low Volume Websites

Why are my sites slow first thing in the morning?  They are extremely low volume website with only a couple of visitors per hour.  I don't get it.  Is it my host?  Is it a rouge module?  Do I have too many paths defined?  Do I have too many modules turned on?  And... how do I found out?

Theming the node "Body" field

If you've ever tried to theme the "Body" field after adding at least one CCK field, then you know my pain – there is no way to reference the body field through CSS – there is no element to hook into.

The cure to duplicate nodes in a View when using multi-value fields

In my case, I have an event with three dates.  All of the dates are set in one date field.  The result can be seen by clicking on the screenshot to the right.

I only wanted the node to display once in the view. I edited my view display values. I set Distinct to Yes and checked "Group multiple values" on the field's configuration form. But these did nothing to suppress the duplicates. Knowing a thing or two about MySQL, I can see why Views is returning three rows – the join requires this.

Embedded Media Field Adds Support for 8tracks

A good friend of mine and colleague from my days with Live365.com has started a remarkable music website called 8tracks.com that simplifies creating a music mix online. 

Being a huge fan of mix tapes in high school and as one who always likes to share the music that excites me, I have been using the service for some time.

    Drupal Association Organisation Member     N-TEN Member
X
You may login with either your assigned username or your e-mail address.
The password field is case sensitive.

Loading