[WordPress] 外掛分享: Comment Connection

首頁外掛目錄 › Comment Connection
10+
安裝啟用
尚無評分
6278 天前
最後更新
問題解決
WordPress 2.0+ v1.6 上架:2008-04-30

內容簡介

Comment Connection 是一個 WordPress 外掛,可以將評論文本中的某一部分轉換為連接到先前評論的連接。當作者使用 @commenter 時,@ 後的文本會自動連結到它所參照的先前評論。

該外掛通過搜索每個評論中的 @ 符號來實現。當它找到時,該外掛會在評論數據庫中搜索同一篇文章中被參照人寫的留言。通過這種方式,該外掛每次引用留言時只會增加一個數據庫查詢。

如果 @ 符號後面的內容不對應到評論,則不會進行更改。

目前在最新版本的 WordPress (2.7) 中成功進行了測試。如果您在較早版本上遇到問題,或者在較早版本上正常運作,請讓我知道。

欲了解每個版本的變更完整列表,請訪問外掛主頁。

請務必查看我在我的 WordPress 個人檔案中的其他外掛。

用法

在一個評論中,寫下 @commenter,其中 commenter 是您回覆的作者的名稱。當參照的作者文本後跟著換行符、冒號 (:)、逗號 (,) 或破折號 (-) 時,該插件將成功找到連結。

限制

commenter 名字必須完全匹配原始作者的名字。
在具有多個參考評論的帖子中,可能會導致許多數據庫查詢。
僅鏈接到 commenter 最後發表的評論(例如,如果 commenter 在 @ 前寫了許多評論,則將該最新的一則與 @ 產生關聯)。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Comment Connection is a plugin that turns an element of comment text to a link for a previous comment. Whenever an author uses @commenter, the text after @ is automatically linked to the previous comment it refers to.
The plugin works by searching each comment for an occurance of @. Where it finds one, the plugin searches the comment database for a comment on the same post written by the person being referenced. By doing it this way, the plugin only adds one database query for each referencing comment.
If the type after the @ symbol does not correspond to a comment, no changes are made.
Currently tested successfully with the most current version of WP, 2.7. If you have trouble with earlier versions, or even have it work properly on earlier versions, please let me know.
For a complete list of the changes from each version, please visit the plugin homepage.
Be sure to check out my other plugins at my WordPress profile.
USAGE
Inside a comment, write @commenter where commenter is the name of the author you are replying to. The plugin will successfully find a link when the commenter text is followed by a new line, colon (:), comma (,) or a dash (-).
LIMITATIONS

Commenter must be an exact match of the original author’s name.
Many database queries can occur for a post with many referencing comments.
Only links to the last comment made by commenter (ie. if the commenter writes many comments before the @, the most recent one is linked to).

延伸相關外掛

文章
Filter
Apply Filters
Mastodon