This project is now closed. Please use the much superior FAlbum if you want to integrate Wordpress and Flickr.
Update (1/8/2005) - A new version is available here with some of the features requested in this post’s comments and also some bug fixes.
Flickr’s recent outage uncovered a bit of a security hole in my Flickr Gallery plugin. When Flickr goes down, or for some other reason your server can’t execute the API calls against their server, the remote fopen() calls were blowing up. The fopen() calls were throwing warnings (unless you have warnings turned off in PHP - which you should) that showed the entire URI of the API call it attempted to make, including the user’s email and password. Obviously this is undesirable. So, I’ve manually surpressed errors and warnings on any statement that could contain a password so we don’t get passwords spit out in the output stream anymore and caused it to fail back to the cache if that happens.
Also, Stewart (a Flickr developer) made a good point about EXIF data not needed to be refreshed in the cache because the EXIF data won’t be changing, so I’ve made that caching permanent. Stewart also had some concerns about how often we were refreshing the API call cache, so I’ve extended that from 10 mins to 1 hr by default. Unfortunately that’s not quite as drastic as Stewart would like us to be, but I think it is fair because the caching the plugin does is pretty efficient from their perspective (no matter how many users hit your gallery pages, the plugin will only hit the Flickr API once per hour for each API call).
So, this should probably just be a minor number release (security and bug fixes), but I’m making it a major number release because I’ve also added a few features like:
- Pagination of albums and photos in albums
- Slightly better navigation through gallery
Get the newest version in .tar.gz format here or .zip format here. Follow the installation instructions in the README.txt. Or follow the installation instructions here, except now the line you put in your gallery.php file is (to support paging):
<?php flickr_show_photos($_GET['album'], $_GET['photo'],
$_GET['page']); ?>
System Requirements:
PHP 4.1 or greater - with allow_url_fopen enabled (to make remote API/REST calls and download images)
Wordpress isn’t actually required because this doesn’t use any of WP’s plugin hooks
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) 2004
Released under the GPL license