Drupal photo slide show based on Flickr tags

Here are some resources for creating an image slide show based on a Flickr images.

Drupal Recipes: Building Image Galleries with jQuery and Flickr

Basically it uses the Flickr API, Flickrsync, CCK, image_field, views and views slideshow to create a dynamic image slideshow to display wherever you please.

This excellent post explains how to dynamically create drupal nodes based on on a Flickr feed. Then use a Views slideshow to display the images within your Drupal site.

Using Drupal 6 I had to apply this patch in order to get the Flickrsync module to detect my image fields.

And I also had to apply this patch to make Flickrsync stop deleting my newly created photos everytime cron ran.

I added this around line 789 of flickrsync.module



if ($file = field_file_save_file($filename, array(), $directory, TRUE)) {

//if ($file = file_save_upload($filename, array(), $directory, TRUE)) {

// file_set_status($file, FILE_STATUS_PERMANENT);

$tempfile = (object)$file;

file_set_status($tempfile, FILE_STATUS_PERMANENT);

...

After that my slide show was being automatically updated based on whatever Flickr photos are tagged with my ‘website’ tag.

It still doesn’t unpublish images which I remove the ‘website’ tag from but I can live with that for now.

Leave a Reply

Your email address will not be published. Required fields are marked *