Flickr RSS plugin for jQuery

After searching for a suitable Flickr WordPress plugin for ages, I developed my own in less than 40 lines of JavaScript code. It’s free! You may download and use it for your own blog. I recommend to save it as /wp-content/plugins/flickr/flickr.js, if you are using WordPress. As the plugin does not depend on WordPress, you can use it with any other CMS like Drupal too. Even with plain HTML, if you like. Your HTML page header (normally part of your theme in wp-content/themes/[theme name]/header.php) should include these two lines, so that the required scripts (jQuery and the plugin) get loaded:

<script type="text/javascript" src="/wp-includes/js/jquery/jquery.js?ver=1.2.3"></script>
<script type="text/javascript" src="/wp-content/plugins/flickr/flickr.js"></script>

Currently, it just looks for HTML elements with the class flickrFeed, which can be added to blog posts, templates and widgets. You can have multiple containers, but only one feed URL per page. It would be more flexible, if it could be used like a normal jQuery plugin: $(‘.flickrFeed’).flickrRSS(maxItems, url). The current version just loads the feed instantly when the page is ready. Maybe too much magic, but ok as a quick result at this time of the day. Please write comments, if you want an improved version.

By the way: Flickr doesn’t seem to care about unexpected additional parameters (see last posting about Google’s AJAX Feed API). It all works just fine.