Full View >>

jquery.ui.flickr.rss

Flickr RSS jQuery Plugin

The Flickr RSS jQuery plugin makes it easy to retrieve RSS information from Flickr and display it on a page using all client side code.  The plugin makes a request to Flickr by way of JSONP, by default applies a template to the retrieved content, then injects the content into the context element.

Download The Plugin

Download Plugin Version 1.0

Getting Started

  1. Make sure you have jQuery installed and working.
  2. Download the plugin and place it in your scripts directory.
  3. Include the plugin script and start using it.
  4. See examples below.
<script language="javascript" type="text/javascript" src="script/jquery.ui.flickr.rss.js"></script>

Examples

Example 1

Populate an element with 5 of a user’s photos.

<div id="myUserPhotos" />
$(function(){
    $("#myUserPhotos").flickrRss({username: "61767910@N06", limit: 5});
});

Example 2

Populate all elements of a specific class with the user’s photos by tag parameters.

<div class="userPhotos" flickr-username="61767910@N06" flickr-limit="5" />
$(function(){
    $(".userPhotos").flickrRss();
});

API Options

Option Attribute Equivalent Description
username flickr-username (Required) The Flickr username from which to pull the photos.
template flickr-template The template string which will be used to transform each entity. Default is $.fn.flickrRss.defaultTemplate.
context n/a – uses current $this The content target or content element to be populated. Default is null.
offset flickr-offset The zero based starting offset to be used when retrieving photos. Default is 0.
limit flickr-limit The maximum count or limit of photos to retrieve. Default is 25.
url flickr-url The url used to retrieve photos. Default is http://api.flickr.com/services/feeds/photos_public.gne.
callback n/a The callback function to be use as an override when retrieving photos. Default is null, internal template engine is used.
Full View >>

One Response to “jquery.ui.flickr.rss”

  1. GodLikeMouse Says:

    If you have trouble finding the user id for flickr, try using the following service:

    http://idgettr.com/

Leave a Reply