Darren Mothersele

London based Drupal Web Developer
Facebook Twitter Drupal.org LinkedIn RSS Feed

drupal

Image Resizing with CCK, Imagefields, Imagecache and PHPTemplate

If you have a CCK content type with an image field you get display options that allow you to change the image size on teasers and full node views. First you set up your image presets using the imagecache settings. I usually let users upload at any size, and deal with the resizing as required. Here's how to ensure you get best results from imagecache, and how to embed imagefield images into your PHPtemplates using the theme functions provided by imagecache:

Programmatically Creating CCK Nodes and Adding Images with Imagefield

There's a useful post on civicactions that explains how to create nodes in your Drupal site programmatically. I'm using this technique to create an import script for processing bulk quantities of XML files.

There's a facet to the create node process, in that I couldn't get it to import images using the $values[] array.

I found that I could create all the CCK fields by assigning them fields in the $value[] array, but for imagefield values I had to instantiate them in the $node object instead.

Adding Thumbnails to Drupal Vimeo Support

Vimeo Logo

The embedded media field is a project for Drupal that adds support to embed third party media into content types. Several video providers are already supported, and Drupal user robomalo started adding Vimeo support.

This works for embedding videos, but it did not support fetching thumbnails - until now! I've attached my changes to the Vimeo code that now supports thumbnails.

Meeting With Roles - Module for Drupal

I couldn't get the available event content types or CCK to do what I wanted, so I've made a simple meeting module for Drupal that allows you to create a number of meeting templates with various roles, and then create meetings on specific dates, with users assigned to each of the roles.

CV Life Line

CV Life Line Logo

CV Life Line was the result of last weekends participation in the Social Innovation Camp - an experiment in using social technology to address social needs.

I'll be adding more about this as there's some interest in taking this project further.

Recent comments

Latest Posts