Flickr Gallery 0.7
This plugin allows users of WordPress (and other clever people who can figure out how to make it work without WP) to display their Flickr photos on their own site. It is advised that users of previous versions of the plugin upgrade to this one. New features in this version:
- “Friendly” URI generation
- Link to Flickr slideshow of photosets
- Support for new Flickr image URLs
- Security conscious cache file names
Features that were already there include:
- Flickr photosets as “albums” – complete with descriptions and meta
- EXIF data support to display camera settings the photo was snapped with — in addition to the description and meta info from Flickr
- Valid XHTML output
- Option to respect photos marked “private”
- Thumbnail size choices
- Pagination of albums and photos in albums
If you are having issues with the new Flickr authentication API please consider the FAlbum project over at RandomByte. It is a branch of this project, and contains some neat features I simply haven’t had time to implement.
I know some people might be wondering where the interface for adding notes to photos is. For a while I worked at incorporating something like FotoBuzz or FotoNoter into the plugin, but in the end decided it was too hackish because both of those solutions are meant to actually store the notes in the JPEG. To store the notes in Flickr we just have to pass them to an API method. So, if anyone is a Flash guru (I’m not) with a little extra time maybe we could work together to create an interface that doesn’t feel so hackish, both from a usability standpoint and from an integration with this plugin standpoint.
Installation instruction remain approximately the same, but here is a rehash of them anyway.
- Put your Flickr photos into photosets
- Extract flickr-gallery.php from the archive you download into your wp-content/plugins directory
- Configure the settings in flickr-gallery.php to fit your situation
- Make a flickr-cache directory, preferably in your wp-content directory. Make sure it is writable by the web server
- Make a copy of your index.php and call it gallery.php (or whatever you want)
- Extract annimg.js into your site root and put
- Add the following to your CSS file and edit it to fit your liking:
- Add the following to your .htaccess file if you want to use “friendly” URLs:
RewriteRule ^photos/?(album|page)?/?([_0-9a-z-]+)?/?(photo|page)?/?([_0-9a-z-]+)?/?(page)?/?([0-9]+)?/?$ /flickr-gallery.php?$1=$2&$3=$4&$5=$6 [QSA]
- Clear out your flickr-cache directory if you had a previous version of this plugin installed (the old cache filenames weren’t very secure)
Somewhat more detailed installation instructions can be found in README.txt in the download.
PHP 4.1 or greater – with allow_url_fopen enabled (to make remote API/REST calls and download images)
Of course this code comes with no guarantee. If you need support I’ll be glad to help (within reason) — just shoot me an email. If you want to suggest future features or just tell me that you are using my plugin I’d appreciate that feedback too.
Copyright (c) 2005
Released under the GPL license