Introduction
This plugin show the images of Zooomr by using RSS provided by Zooomr. It used SimplePie to parse RSS.
Installation
- Unzip the file
- Put the folder 'zooomrrss' to /user/plugins and activate it
After activated it, click "configure" link next to <Deactivate> button to setup the plugin.
- Zooomr ID - User ID of Zooomr
- No. of items displayed - Number of images to be shown
- Size - Size of the images shown, either 'square', 'thumbnail', 'small', 'medium', 'large' or 'original'
- 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 'Y' or 'N'
- 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.
echo zooomr_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.
- This plugin used FormUI class of Habari to construct the configuration page. Due to the limited validation provided by FormUI class, it can only validated if the valid is required or whether it is a valid URL. Please make sure the value of the field is correct.
- Version 0.6 - Initial release
- Version 0.7 - Handle all sizes of image and align the terminology of size with Zooomr
- Version 0.8 - Changed to use Habari built-in RemoteRequest class to retrieve the image
======================
簡介
這個 plugin 是使用 SimplePie 來讀取 RSS 從而顯示 Zooomr 內的圖片。安裝- 將下載了的 zip file 解壓
- 把 'zooomrrss' folder 放在 /user/plugins 中,然後啟動 plugin
設定選項
啟動 plugin 後,click 在 <Deactivate> 按鈕旁的 "configure" link 來設定選項。
- Zooomr ID - Zooomr 的 login ID
- No. of items displayed - 顯示圖片的數目
- Size - 顯示圖片的大小,'square'、'thumbnail'、'small'、'medium'、'large' 或者 'original'
- 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 內暫存圖片,'Y' 或者 'N'
- Image Cache URL - 圖片暫存 folder 的 URL,它應該是和 'Feed/Image cache path' 同一位置。因為 FormUI class 現時提供有限的資料檢查 function,就算選擇了不作圖片暫存,這選頊都需要輸入。
echo zooomr_images;注意事項- 這 plugin 現附上 SimplePie,如使用 CJD Lifestream plugin 或其他附上 SimplePie 的 plugin,有機會會出現衝突,建議將 SimplePie 複製至獨立 folder,然後修改有關 plugins 在那 folder include SimplePie
- 這 plugin 使用了 Habari 內的 FormUI class 來建立選項設定畫面,但因為現時 FormUI class 只提供有限的資料檢查 function,只可限定某欄是必須輸入,或者是否正確 URL 字串。所以請確保輸入的資料正確。
- Version 0.6 - 最初公開版本
- Version 0.7 - 支援所有 Zooomr 的圖片大小,統一了圖片大小的稱號
- Version 0.8 - 轉用 Habari 內置的 RemoteRequest class 來讀取圖片
下載連結(已經下載了 209 次)
你既blog已經加入左www.mix-blog.com啦,多謝你既支持!