[WordPress] 外掛分享: Twitter Links

首頁外掛目錄 › Twitter Links
10+
安裝啟用
尚無評分
6334 天前
最後更新
問題解決
WordPress 2.6+ v1.0 上架:2008-11-13

內容簡介

這個外掛會將留言中提到的有效Twitter使用者名稱,轉換成該使用者的 Twitter 個人資料頁面連結。例如,如果有人在留言中提到「@mattfreedman」,這個外掛就會向 Twitter 查詢該名使用者是否存在(存在的話就會轉換),然後將其轉換成「@mattfreedman」。

請注意:由於這個外掛會即時轉換使用者名稱(當有人檢視留言時,每次都會轉換),並逐一向 Twitter 查詢每個使用者名稱(確保其有效性),因此強烈建議使用快取外掛,例如WP Super Cache。這樣不僅可以減少對 Twitter 伺服器的負擔,還可以加快網頁載入速度。

儘管外掛要求 WordPress 2.6 以上的版本,但我認為它應該可以運行在之前的版本上,只是我沒有進行測試。

本外掛要求您的伺服器上安裝了 cURL,並且僅在 PHP 5.2.x 上進行過測試。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Twitter Links」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin will convert valid Twitter usernames mentioned in comments into a link to their Twitter profile page. For example, if somebody mentions “@mattfreedman” in their comment, this plugin will check with Twitter to see if the user “mattfreedman” exists (which is does) and when it does, it will convert it into “@mattfreedman“.
Please note: As this plugin converts usernames on the fly (whenever and everytime somebody views the comments), and checks Twitter for every username (to ensure it’s valid), I strongly recommend using a caching plugin such as WP Super Cache. Which will not only lessen the load on Twitter’s servers, but also speed up page loads.
Although it says this plugin requires WordPress 2.6, I see no reason why it wouldn’t work with earlier versions, I just haven’t tested it with earlier version.
This plugin requires cURL to be installed on your server, and has only been tested with PHP 5.2.x.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon