Flickr Gallery Module

10/28/2005 20:39:56

Installing a module is easy: Create a modules subdirectory in your data directory, and put the Perl file in there. It will be loaded automatically.

Download module:

This module allows you to automatically generate a photo gallery from a Flickr photo set. You provide the photo set id number, and the plugin handles the rest, including gathering the title and description for the set, and for each individual photo.

To use, simply add the following command on a line by itself with no leading or trailing spaces:

<FlickrSet:photoset>

where photoset is the photoset id number, or:

<FlickrPhoto:photo (secret) (size)>

where photo is the photo id number, secret is an option secret key, and size is the optional size label for the image to display (square, thumbnail, small, medium, original)

Check out the SampleFlickrGallery for an example.

Output

The output of this module is designed to be fairly simple, yet flexible. You can change the template strings to change what is output. The default version provides a basic layout, and you can use CSS to adjust the formatting.

There is definitely room for improvement here, and I am open to suggestions. My goal is to use CSS only (no tables), and to make the gallery take best use of available screen space, regardless of how big the monitor is.

Special Notes

This module, as always, is released under the GPL license. My Flickr api key, however, is to be used ONLY for this plugin, not for any derivative works. Contact me with questions.

Markdown Extension Compatibility

This is the first plugin to take advantage of support for additional modules to be compatible with the Markdown Extension. Check it out.

Version History

  • 1.9 - fix bug that was introduced as I saved 1.8 - 1.8 is broken

  • 1.8 - remove timeout fix
    add backwards compatibility fix for old versions of LWP

  • 1.7 - fix non-Markdown rule for FlickrPhoto (I think)

  • 1.6 - add support for individual photos; add timeout to improve reliability (thanks George)

  • 1.5 - fix (I think) bug where gallery would be duplicated if Markdown was not installed (thanks \GreyWulf)

  • 1.4 - fix underscore issue now that templating error is fixed (Markdown bug only)

  • 1.3 - fix validation error when used with [[WikiMarkdown]]

  • 1.2 - fix some bugs, change formatting of command

  • 1.1 - Initial public release

Similar Pages

Comments

Leave a comment