[WordPress] 外掛分享: Comment Form Inline Errors

WordPress 外掛 Comment Form Inline Errors 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Comment Form Inline Errors」是 2013-09-10 上架。
  • 目前有 30 個安裝啟用數。
  • 上一次更新是 2013-11-14,距離現在已有 4189 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

latorante |

外掛標籤

errors | comment | comments |

內容簡介

這款外掛專門處理 WordPress 內部評論錯誤處理,並將評論錯誤顯示在表單上方,而不是使用只有單行錯誤描述的奇怪灰色頁面。這一切都是開箱即用的。

它還記住您輸入的內容。例如,如果您填寫評論表單,發送並忘記必填項目,外掛會在表單上方顯示錯誤,並在提交的值中預填表單,因此您不必重新輸入(這很麻煩)。

默認情況下,外掛會在以下標記中打印錯誤:

--error-here--

因此,您很容易使用“ .formError”或“ #formError”在 CSS 文件中樣式化它。默認的紅色是為了防止您無法樣式化,並且由於它是錯誤,紅色似乎是合適的。

順便說一下,如果您使用新字段自定義了評論表單,並且正在使用“ preprocess_comment”鉤子以正確的 WordPress 方式處理錯誤,即在遇到錯誤時使用“ wp_die”,此外掛將與之兼容,並顯示您的錯誤消息在表單上方。

原文外掛簡介

This plugin takes care of WordPress inner comments error handling, and shows comment errors above the form, instead of using the weird grey page with single line error description. All this out-of-the-box.
It also remembers what you’ve typed in. So for example, if you fill in the comment form, and send it and forget required field, it will show the error above the form, and prefills the form with values you’ve submitted so you don’t have to retype them again (which is annoying).
By default, the plugin prints the error in this markup:

--error-here--

So it should be quite easy for you to style it in your css file with ".formError" or "#formError", you know the drill :). The default red colour is there just in case you won’t be able to style and since it’s error, red seems appropriate.
By the way, if you’ve customised your comment form with new fields, and you’re using the preprocess_comment hook, with the correct WordPress way of handeling errors, which is using wp_die on error encounter, this plugin will play nicely with that, and display your error messsage above the form as well.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Comment Form Inline Errors」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.1 | 1.0.2 | trunk | 1.0.1.1 |

延伸相關外掛(你可能也想知道)

  • Debug Log Manager 》Debug Log Manager 可以讓您:, , 單擊啟用 WP_DEBUG 以記錄 PHP、數據庫和 JavaScript 錯誤,不需要手動編輯 wp-config.php 文件,完成後再禁用。 , 在自訂...。
  • Static 404 》這個外掛能快速輸出 404 錯誤給找不到的靜態檔案,而非載入一般的 404 頁面。, 任何不存在的靜態檔案(圖片、文字、PDF 等)將會立即顯示 404 錯誤,而非載入...。
  • Ajaxify Comments – Ajax and Lazy Loading Comments 》尋找新的外掛程式維護者 👀, 請注意,此外掛程式已不再維護或支援,我們正在尋找新的外掛程式維護者(請參閱我們的公告 這裡)。 , 介紹, 預設情況下,當使用...。
  • Custom Error Pages 》WordPress 內建自訂 404 頁面支援所有主題。但是其他常見錯誤如 401 和 403 呢?你只能看到 Web Server 提供的平庸錯誤頁面。, 使用此外掛,你可以輕鬆建立任...。
  • Disable Deprecated Warnings 》作為主題開發人員,您希望啟用 WP_DEBUG,但並不想看到其他外掛程式產生的已棄用警告。使用此外掛程式可關閉這些訊息,同時仍然顯示其他錯誤、警告和提示。, ...。
  • Site Checkup AI Troubleshooting with Wizard and Tips for Each Issue 》**總結:**, **「Site Checkup Wizard Plugin」**是對於希望確保 WordPress 網站各重要方面運行良好的站點管理員來說是一個必不可少的工具。該外掛執行自動檢...。
  • Custom Error Log 》Custom Error Log 可以讓你在你的 WordPress 主題或外掛中使用一個簡單的功能創建自定義錯誤。非常適用於調試冗長和複雜的腳本。, 每個錯誤都可以有自己的錯...。
  • Airbrake 》該外掛可以收集和整合 WordPress 及其外掛程式所產生的所有錯誤。它將消除重複的錯誤並提供開發人員快速修復問題的指引。。
  • Browsee 》Browsee 可以幫助您根據使用者的使用方式優先處理產品。它自動瞭解使用者喜歡什麼和在哪裡遇到問題。不需要再猜測漏斗分析結果,嘗試這種新穎且直覺的方式來...。
  • Error Logs Emailer for WooCommerce 》總結:Error Logs Emailer for WooCommerce 是一款免費外掛,可以發送 WooCommerce 儲存的致命錯誤記錄。, , 1. 這個外掛的主要功能是什麼?, - 這個外掛主要...。
  • Error Tracker 》不要等待使用者告訴您錯誤。, 這個外掛可以讓您在 PHP 和 JavaScript 中使用 Sentry 追蹤錯誤,或追蹤 JavaScript 錯誤並查看會話使用 LogRocket。這個外掛只...。
  • Debug Activation Errors 2.0 》總結:Debug Activation Errors 2.0 是一個針對 WordPress 外掛啟用期間問題的開發者外掛,能夠幫助解決啟用外掛時出現的錯誤訊息。, , 問題與答案:, 1. Deb...。
  • WP Offline Fallback 》通常情況下,當用戶沒有互聯網時嘗試訪問您的網站時,他們將無法獲取有關您的任何信息。, 如果您的客戶來到您的商店,突然失去了互聯網。如果他們忘記了您的...。
  • WP Admin Error Handler 》討厭在 WordPress 管理區域中看到那些醜陋的錯誤和警告(尤其在 WP_DEBUG 啟用時)?, WP Admin Error Handler 透過捕獲所有錯誤和警告,並在管理列中整齊地...。
  • GNA Crawling Errors 》這個外掛程式容易檢查網站的爬行錯誤,並將資訊匯出為 CSV 檔案, 需要協助嗎?, 常見問題 | 技術支援, 提供的語言, , 英文, 。

文章
Filter
Apply Filters
Mastodon