內容簡介
這是一個簡單的 Twitter 小工具,可用於您的側邊欄。我知道有幾個類似的外掛程式,但我需要一些非常特定的功能,並決定將其做得更通用並釋出到世界上...
此外掛程式使用基本的快取,以避免超過 API 速率限制(它使用 user.timeline API 方法而不是不推薦 RSS 方法)。它需要寫入一個(xml)檔案到您的上傳資料夾中,並定期更新此檔案,因此請確保該目錄可寫入。繁忙的網站或您希望看到更即時效果的低流量網站可以更改快取時間;但是,如果沒有人在您的網站上,則如果需要,默認值每分鐘更新一次,並且不會有效。
用戶控件:
- 標題: 小工具標題。
- Twitter 用户名: 要顯示的推文串 (必須為公開)。
- 快取時間: 在繁忙的網站中上升,但您可能不需要這樣做。
- 顯示回覆: 顯示對其他使用者的推文 (不會移除提到某人的推文)。
- 顯示「via」鏈接: 顯示您的推文方式 (例如「透過 Tweetdeck」)與鏈接。
- 要顯示的推文: 推文的數量,最多可達 20 則 (包括 @回覆,請參考 FAQ)。
外掛標籤
開發者團隊
原文外掛簡介
This is a simple Twitter widget for your sidebar. I know there are several out there, but I needed something very specific for my site and decided to make it a bit more general and release it into the world…
This plugin uses basic caching so you don’t hit the API rate limit (it’s using the user.timeline API method rather than the deprecated RSS method). It will need to write a (small) xml file to your uploads folder, and to update this regularly, so make sure the directory is writeable. The cache time can be changed for busy sites or quiet sites where you want more immediate effect – but the default updates every minute (if required, it won’t be active if no-one’s on your site) so you should be fine.
User controls:
Title: widget title
Twitter user name: feed to show (must be public)
Cache time: put this up for really busy sites, but you probably won’t need to
Show replies: show tweets which are @replies (won’t remove tweets which mention someone)
Show “via” link: shows your tweet method (i.e. “Via Tweetdeck”) with link
Tweets to show: number of tweets, up to 20 (with @replies on – see FAQ)
