[WordPress] 外掛分享: wordpressAjaxComments

首頁外掛目錄 › wordpressAjaxComments
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
全新外掛
安裝啟用
☆☆☆☆
1/5 分(1 則評價)
3788 天前
最後更新
問題解決
WordPress 4.3.0+ v1.0.3 上架:2015-11-03

內容簡介

你是否曾經因為評論沒有即時響應訊息而感到煩惱?難道錯誤訊息總是出現在與表單內容毫無關聯的另一個頁面上嗎?

這個外掛就是解決方案。評論通過 AJAX 傳送,發生的錯誤將會直接在表單中以即時響應訊息方式顯示,您可自行設計錯誤訊息的樣式(如果您需要或想要的話),並且甚至可以在評論表單中新增自訂欄位,前提是必須透過 AJAX 評論回呼來驗證這些額外欄位。

此外掛和其他 Ajax 評論外掛有什麼不同?

此外掛使用了經過完全重寫的後端,並不使用預設的 WordPress 後端,即使它是基於 WordPress 的。此外掛將錯誤訊息直接顯示在發生錯誤的欄位上方,因此錯誤訊息就處於欄位的上下文中,使得錯誤訊息更加清楚明瞭。此外掛使用了 WordPress 核心所帶來的 AJAX 功能,因此不需要任何第三方庫。此外掛可以輕鬆處理表單中的自訂欄位。如果你想使用此外掛的錯誤顯示功能,你需要使用 wp_ajax_comment_validate_form 過濾器,如果要存儲這些元數據欄位,則需要實現 wp_ajax_comment_store_metadata-action 事件。如果在使用過程中遇到任何問題,請在 github 上的問題追蹤器上創建一個問題。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「wordpressAjaxComments」→ 直接安裝(推薦)

原文外掛簡介

Have you ever been annoyed that there are no inline-error messages for the comments? That the errors are displayed on a different page completely out of context?
Here\’s the answer. The comments are send via AJAX, errors that happen will be displayed inline in the form, you can style the error-messages yourself (if you want or have to) and it is even possible to add custom fields to the comment-form, provided the validation for those extra fields is done via the Ajax-Comments callback.
How is this plugin different from other Ajax-Comment-plugins?
This plugin uses a comletely rewritten backend and doesn\’t use the default wordpress-backend although it is based on that. This plugin displays the errors directly at the field they happened at. Therefore the error-messages are right in the context of the fields. This plugin uses the AJAX-functionality brought to you with the core wordpress, so there are no third-party libraries necessary This plugin can handle custom fields in the form without a problem. If you want to use the error-display-functions of the plugin you will have to use the wp_ajax_comment_validate_form-filter and for storing those metadata-fields you will need to implement the wp_ajax_comment_store_metadata-action. If you find any issues during the usage, feel free to create an issue on the issue tracker on github

延伸相關外掛

文章
Filter
Apply Filters
Mastodon