Habari - RN FlickrRSS Plugin

Introduction

This plugin show the images of Flickr by using RSS provided by Flickr. It used SimplePie to parse RSS.

Installation

  1. Unzip the file
  2. Put the folder 'flickrrss' to /user/plugins and activate it

Configuration Option

After activated it, click button to setup the plugin.
  • Photostream Type - Type of photostream, either 'Public', 'User' or 'Group'. 'Public' for all public images, 'User' for individual user's public images and 'Group' for group public images
  • Flickr ID - Required for 'user' or 'Group' photostream only. Please get the corresponding 'user' or 'group' Flickr ID from idGettr.
  • No. of items displayed - Number of images to be shown
  • Photo Size - Size of the images shown, either 'square', 'thumbnail', 'small', 'medium' or 'large'
  • Tags - Tag(s) of image to be shown. It's optional for 'user' and 'group' but mandatory for 'public' photostream. If tag is provided, it cannot contained "space" and multiple tags should be comma separated.
  • Markup prefix - HTML tag before the image, it's optional
  • Markup suffix - HTML tag after the image, it's optional
  • Feed/Image cache path - Cache folder for SimplePie and cached image, relative to the installation folder of Habari. Make sure it is writable for everyone.
  • Feed cache expiry time - SimplePie feed cache expiry time (in second)
  • Cache image - Option to cache image locally, either 'Yes' or 'No'
  • Image Cache URL - URL of the folder of cached image, it should be the same location as 'Feed/Image cache path'
Usage
$theme->flickr_images();
Note
  • This plugin is bundled with SimplePie. If you are using CJD Lifestream plugin or other similar plugins bundled with SimplePie, conflict might occur. Suggest to copy SimplePie to separate folder and modify the plugins to include SimplePie from the same folder.
  • Version 1.2 modified to use new FormUI and comply to the new standard of configuration name, please make sure you are using Habari SVN r1948 or later and configure the plugin again.
  • Version 1.3 modified to use theme function instead of theme variable, please note the change of usage.
Changelog
  • Version 0.6 - Initial release (Thanks Stanley for help me to test the plugin)
  • Version 0.7 - Handle all sizes of image and align the terminology of size with Flickr
  • Version 0.8 - Due to the inconsistent handling of media:content of Media RSS of Flickr, now used workaround method to retrieve image hyperlink
  • Version 0.9 - Changed to use Habari built-in RemoteRequest class to retrieve the image
  • Version 1.0 - Improved the configuration page - Support i18n, use drop down selection box for some items and improve the validation to eliminate incorrect input
  • Version 1.1 - Fixed the validation problem in configuration page
  • Version 1.2 - Modified to support new FormUI, some code cleanups and setup default configuration option during activation. In addition, SimplePie 1.1.1 is bundled in this release
  • Version 1.3 - Change from using theme variable to theme function for better memory utilization
Download here (Downloaded 415 times)

======================

簡介

這個 plugin 是使用 SimplePie 來讀取 RSS 從而顯示 Flickr 內的圖片。

安裝

  1. 將下載了的 zip file 解壓
  2. 把 'flickrrss' folder 放在 /user/plugins 中,然後啟動 plugin

設定選項

啟動 plugin 後,click 按鈕來設定選項。

  • Photostream Type - Photostream 的類別,'Public'、'User' 或者 'Group'。'Public' 是所有公開圖片,'User' 是單一用戶的公開圖片,而 'Group' 是 group 的公開圖片
  • Flickr ID - 請往 idGettr 來獲得有關 'User' 或者 'Group' photostream 的 Flickr ID
  • No. of items displayed - 顯示圖片的數目
  • Photo Size - 顯示圖片的大小,'square'、'thumbnail'、'small'、'medium' 或者 'large'
  • Tags - 指定某些 tag(s) 的圖片才作顯示,這個選項在 'user' 和 'group' 時不是必須的,但用 'public' photostream 時就需要輸入,如提供的話,記著當中不可含空格,在多個 tags 時要以逗號作分隔
  • Markup prefix - 在圖片前的 HTML tag,這選項不是必須的
  • Markup suffix - 在圖片後的 HTML tag,這選項不是必須的
  • Feed/Image cache path - SimplePie feed 和圖片暫存的資料夾,不是完整的 path,只需提供 Habari 安裝位置以下相對的 folder,記著這 folder 的權限要所有人皆可寫入。
  • Feed cache expiry time - SimplePie feed 的暫存有限時間(以秒作單位)
  • Cache image - 選擇是否在 server 內暫存圖片,'Yes' 或者 'No'
  • Image Cache URL - 圖片暫存 folder 的 URL,它應該是和 'Feed/Image cache path' 同一位置。
使用方法
$theme->flickr_images();
注意事項
  • 這 plugin 現附上 SimplePie,如使用 CJD Lifestream plugin 或其他附上 SimplePie 的 plugin,有機會會出現衝突,建議將 SimplePie 複製至獨立 folder,然後修改有關 plugins 在那 folder include SimplePie
  • Version 1.2 轉用了新的 FormUI 加上跟隨了新的 configuration name 命名,請使用 Habari SVN r1948 或以後的版本,及重新設定 plugin
  • Version 1.3 由 theme variable 轉用 theme function,請留言使用方法的改變
版本資料
  • Version 0.6 - 最初公開版本(多謝 Stanley 幫助測試 plugin)
  • Version 0.7 - 支援所有 Flickr 的圖片大小,統一了圖片大小的稱號
  • Version 0.8 - 因為Flickr 的 Media RSS 內 media:content 的處理不統一的問題,現時轉用了另一方法來讀取圖片的 URL
  • Version 0.9 - 轉用 Habari 內置的 RemoteRequest class 來讀取圖片
  • Version 1.0 - 改善設定頁面 - 支援 i18n,部份選項改用 drop down selection box 和改良檢查步驟來避免錯誤輸入
  • Version 1.1 - 修正了設定頁面的檢查程序
  • Version 1.2 - 使用了新的 FormUI、code cleanups 和在啟動 plugin 時自動設定 plugin 的預設選項,還有這版本 bundled 了最新的 SimplePie 1.1.1
  • Version 1.3 - 由 theme variable 轉用 theme function 來節省記憶體的使用

下載連結(已經下載了 415 次)

8 Responses to “Habari - RN FlickrRSS Plugin”

  1. 20336

    Works for me, though I changed the above to echo $flickr_images.

  1. 5949 Because I Learn » Blog Archive » This is habari.sfong.net
  2. 5956 Because I Learn » Blog Archive » What I have been playing
  3. 17208 RN FlickrRSS Plugin 1.0 @ 天佑的自由天地
  4. 17382 RN FlickrRSS Plugin 1.1 @ 天佑的自由天地
  5. 19221 Downloads - Thomas Silkjær
  6. 25224 RN FlickrRSS Plugin 1.2 @ 天佑的自由天地
  7. 27443 RN FlickrRSS Plugin 1.3 @ 天佑的自由天地

Leave a Reply