FlickrFeed Plugin for Habari


0 Comments

簡介

此 Plugin 讓你在 blog 上顯示你的 Flickr 最新照片。我覺得 unserialize() 應該會比解析 XML 快得多,所以我寫了這個 plugin.

安裝

  1. 解壓縮檔案。
  2. 將 flickrfeed 資料夾放到 /user/plugins 資料夾中,然後到 Habari 管理介面中啟用它。
  3. 將下面這行貼到你的 Theme 中。

    <?php if ( Plugins::is_loaded('FlickrFeed') ) $theme->flickrfeed(); ?>
    

設定 / 自訂

啟用後,請按下 Configure 來設定此 Plugin ,有這些項目可以設定:

  • Photostream type
  • Flickr ID – 你的 Flickr ID ,你可以使用 idGettr 取得。
  • № of photos – 設定要顯示幾張照片。
  • Photo size – 設定照片大小。
  • Tags – 限制只顯示某些標籤的照片,以逗號分隔,不可空白。(可不填)
  • Cache expiry – 設定暫存檔保存多久,單位是秒。

如果你要修改 HTML 呈現的結果,可以將 flickrfeed.php 複製到你的 Theme 資料夾中並修改這個檔案。

下載

更新紀錄

  • 0.2 (2008-07-26) – 初次釋出。

Introduction

This plugin show 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.

    <?php if ( Plugins::is_loaded('FlickrFeed') ) $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 – 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.

Download

Changelog

  • 0.2 (2008-07-26) – Initial release.

Leave a Reply

Your comment may not display immediately due to spam filtering. Please wait for moderation.