[WordPress] 外掛分享: Twitter Avatar Reloaded

首頁外掛目錄 › Twitter Avatar Reloaded
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
4267 天前
最後更新
問題解決
WordPress 3.8+ v2.0.1 上架:2010-03-14

內容簡介

Twitter avatar reloaded 外掛會在留言表單中新增一個欄位,讓使用者輸入他們的 Twitter 用戶名稱,並將其與評論一同儲存,當評論被顯示時,將 Gravatar 替換為 Twitter 頭像。

此外掛程式完美無縫運作,您不需要編輯佈景主題檔案以新增評論表單中的新欄位,啟用之後會自動新增。

注意:由於 Twitter API 的更改,自外掛的 v2.0 版本開始,您需要建立 Twitter 應用程式並提供存取金鑰和令牌。請參閱安裝說明以了解如何執行此操作。

模板功能

此外掛程式提供了 7 個模板功能,您可以在主題中使用這些功能,以自訂評論作者的 Twitter ID/個人資訊的顯示方式。

get_comment_author_twitter_id($comment_id) – 取得評論作者的 Twitter ID
comment_author_twitter_id($comment_id) – 列印評論作者的 Twitter ID
get_comment_author_twitter_url($comment_id) – 取得評論作者的 Twitter 個人資訊 URL
comment_author_twitter_url($comment_id) – 列印評論作者的 Twitter 個人資訊 URL
get_comment_author_twitter_profile_image($comment_id) – 取得評論作者的 Twitter 個人資訊頭像 URL
comment_author_twitter_profile_image($comment_id) – 列印評論作者的 Twitter 個人資訊頭像 URL
get_twitter_profile_image($twitter_username) – 取得使用 Twitter ID 的使用者的 Twitter 個人資訊頭像

使用 CSS 進行樣式設定

此外掛程式預設使用 class comment-form-twitter 來表示新 Twitter 欄位。您可以為該欄位新增 CSS 或在外掛程式的設定頁面中更改 class。

開發

此外掛程式的開發在github 上進行。如果您想貢獻功能,您可以複製 github 上的專案,然後提交拉取請求給我。

如果你不熟悉 git 或 Github,請參閱這篇指南了解如何複製和發送拉取請求。

支援

如果您發現程式有 bug/問題或有功能請求,請在 github issues 中發佈。
如果您對使用方法有疑問或需要協助排除問題,請在 WordPress 論壇上張貼或在外掛程式的官方網頁中留言。
如果您喜歡此外掛程式,請在WordPress 儲存庫頁面上留下您的評價/意見回饋。
如果您覺得此外掛程式很有用,想對作者說聲謝謝,您可以透過多種方式表達感激之意,我會很感激。
檢視我發布的其他WordPress 外掛程式。
如果有其他需要,請在Twitter上與我聯繫。

致謝

此外掛程式使用 @timw開發的 wp-twitter-api。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.1) 或搜尋安裝

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

原文外掛簡介

Twitter avatar reloaded Plugin adds a new field to the comment form to get the user’s Twitter username and stores it together with comments and using it replaces gravatar with twitter avatar when the comment is displayed.
This Plugin works seamlessly and you don’t need to edit your theme files to add the new field to the comment form. It automatically adds it when activated.
Note: Because of the changes in the way Twitter API works, from v2.0 of the plugin you need to create a twitter app and provide the access key and token. Refer to the installation instructions to find out how to do this
Template functions
This Plugin provides 7 template functions which you can use in your theme to customize the way the comment author’s twitter id/profile should be displayed.

get_comment_author_twitter_id($comment_id) – Get the Twitter id of the comment author
comment_author_twitter_id($comment_id) – Print the Twitter id of the comment author
get_comment_author_twitter_url($comment_id) – Get the Twitter profile url of the comment author
comment_author_twitter_url($comment_id) – Print the Twitter url of the comment author
get_comment_author_twitter_profile_image($comment_id) – Get the twitter profile image url of the comment author
comment_author_twitter_profile_image($comment_id) – Print the twitter profile image url of the comment author
get_twitter_profile_image($twitter_username) – Get the twitter profile image of a user using twitter id

Styling using CSS
By default the Plugin uses the class comment-form-twitter for the new twitter field. You can add CSS to that field or you can change the class in the Plugins setting page.
Development
The development of the Plugin happens over at github. If you want to contribute to the Plugin, fork the project at github and send me a pull request.
If you are not familiar with either git or Github then refer to this guide to see how fork and send pull request.
Support

If you have found a bug/issue or have a feature request, then post them in github issues
If you have a question about usage or need help to troubleshoot, then post in WordPress forums or leave a comment in Plugins’s home page
If you like the Plugin, then kindly leave a review/feedback at WordPress repo page.
If you find this Plugin useful or and wanted to say thank you, then there are ways to make me happy 🙂 and I would really appreciate if you can do one of those.
Checkout other WordPress Plugins that I have released.
If anything else, then contact me in twitter.

Credit
This plugin uses wp-twitter-api by @timwhitlock as the underlying backend to make calls to Twitter.
Translation

Hebrew (Thanks Sagive)
Dutch (Thanks Rene of WordPress WPwebshop)
Brazilian Portuguese (Thanks Marcelo of Criacao de Sites em Ribeirao Preto)
German (Thanks Jenny Beelens)
Spanish (Thanks Brian Flores of InMotion Hosting)
Bulgarian (Thanks Nikolay Nikolov of Health Blog)
Lithuanian (Thanks Vincent G)
Hindi (Thanks Love Chandel)
Serbian (Thanks Diana)
Irish (Thanks Vikas Arora)
Gujarati (Thanks Puneet)

The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.
Readme Generator
This Readme file was generated using wp-readme, which generates readme files for WordPress Plugins.

延伸相關外掛

文章
Filter
Mastodon