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 <Configure> 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', it should be entered even you've selected not to use image cache due to the limited validation function provided by FormUI class.
Usage
echo 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.
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
Download here (Downloaded 323 times)

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

簡介

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

安裝

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

設定選項

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

  • 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' 同一位置。因為 FormUI class 現時提供有限的資料檢查 function,就算選擇了不作圖片暫存,這選頊都需要輸入。
使用方法
echo flickr_images;
注意事項
  • 這 plugin 現附上 SimplePie,如使用 CJD Lifestream plugin 或其他附上 SimplePie 的 plugin,有機會會出現衝突,建議將 SimplePie 複製至獨立 folder,然後修改有關 plugins 在那 folder include SimplePie
版本資料
  • 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 - 修正了設定頁面的檢查程序

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

6 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
    Pingback on 7 months 3 weeks ago
  2. 5956 Because I Learn » Blog Archive » What I have been playing
    Pingback on 7 months 3 weeks ago
  3. 17208 RN FlickrRSS Plugin 1.0 @ 天佑的自由天地
    Pingback on 2 months 2 weeks ago
  4. 17382 RN FlickrRSS Plugin 1.1 @ 天佑的自由天地
    Pingback on 2 months 1 week ago
  5. 19221 Downloads - Thomas Silkjær
    Pingback on 1 month 6 days ago

Leave a Reply