My favorites | Sign in
Project Home Downloads Wiki Source
Search
for
FlickrFeed  
Display your latest photos on your blog.
Habari, Plugin
Updated Jun 15, 2010 by elo...@gmail.com

Introduction

FlickrFeed is a widget plugin to allow you display your latest photos on your blog. I write this plugin because I think unserialize() should be much faster than parsing XML.

Installation

  1. Extract the file.
  2. Put the folder flickrfeed to /user/plugins and activate it.
  3. Copy and paste the following line to your theme.
  4. <?php $theme->flickrfeed(); ?>

Configuration & Customization

After activated it, click Configure button to setup the plugin.

  • Photostream type
  • Flickr ID – Place your Flickr ID here, you can get your Flickr ID from idGettr.
  • № of Photos – Number of photos to be shown.
  • Photo Size
  • Tags – A comma delimited list of tags to filter the photos by.
  • Cache Expiry (in seconds) – Number of second after the call that the cache will expire.

You can copy flickrfeed.php to your theme directory and modify the HTML output.

Advanced Usage

You can pass parameters when you call $theme->flickrfeed() in the theme. This way, you can have more than one FlickrFeed on a page. Following is an example:

<?php
    $theme->flickrfeed(array(
        'type' => 'user',
        'user_id' => '21638177@N00',
        'num_item' => '6',
        'size' => 'square'));
?>

You do not have to put every parameters, missing parameters will use what you have set in admin. Following are supported parameters.

Name Value allowed
type One of following: public, user, friends, faves, group
user_id Flickr ID, not your login ID
num_item Positive integer
size One of following: square, thumbnail, small, medium, large, original
tags Comma separated tags, no space between them
cache_expiry Positive integer

Download

Changelog

  • 0.3 (2008-08-26)
    1. Support custom settings when call.
    2. Fix cache conflict in multiple sites.
    3. Fix a stupid bug on validate_uint(). (You will never pass this validation! XD)
    4. Change license to Apache License 2.0
  • 0.2 (2008-07-26) – Initial release.
Comment by samuel.j...@gmail.com, Jan 21, 2010

Is it possible to also show the title of the Flickr photo?

Comment by project member elo...@gmail.com, Jan 22, 2010

Hello samuel.jesse.mc

Please see flickrfeed.php, $flickrimage['title'] is the title of the Flickr photo.

Comment by ian.mon...@gmail.com, Feb 8, 2010

Do you have some CSS to use with it?

Comment by project member elo...@gmail.com, Feb 10, 2010

Hello ian.monroe

I'm not sure what's your meaning. What do you like to do with CSS?


Sign in to add a comment
Powered by Google Project Hosting