[WordPress] 外掛分享: Gravity Forms Duplicate Prevention

首頁外掛目錄 › Gravity Forms Duplicate Prevention
400+
安裝啟用
★★★★
4.6/5 分(12 則評價)
3650 天前
最後更新
問題解決
WordPress 3.5+ v0.1.5 上架:2013-02-07

內容簡介

這個外掛可讓您在使用流行的 Gravity Forms WordPress 外掛時,偵測到重複的資料,並避免在查詢表單時創建多個條目。這個外掛的目標是,在使用者重複或連續點擊滑鼠來提交表單時,可以避免 Gravity Forms 創建多個相同的條目。它不需要對表單進行任何修改,只要啟用即可。

它是如何起作用的?

這個外掛的功能實現方法有兩種:首先,加載少量 JavaScript 到頁面中,在提交表單時禁用提交按鈕。其次,在提交表單時,外掛會創建一個表單數據的加密哈希值。如果 PHP 會話中存在一個匹配的哈希值,則會將表單數據修改成伪裝成失敗的 honey-pot 條件。就像所有失敗的 honey-pot 一樣,Gravity Forms 將忽略保存任何資料,也不會發送任何通知,但表單將顯示為提交成功。

您可以在項目的 Github 頁面上追蹤插件的開發: https://github.com/buckii/gravity-forms-duplicate-prevention

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.5) 或搜尋安裝

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

原文外掛簡介

This plugin adds silent duplicate detection to the popular Gravity Forms WordPress plugin. The goal is to prevent Gravity Forms from creating multiple entries when an impatient user double-, triple, or full-on secret-combo-move-clicks his/her mouse when submitting a form. No modifications to your forms is necessary, it just works.
How does it work?
The plugin prevents duplicate submissions in two ways: first, a small bit of JavaScript is loaded into the page that disables the submit button(s) on form submit. Second, the plugin creates a cryptographic hash of the form data upon submission. This unique hash is compared to a hash stored in a PHP session (if available) and, if a matching hash is found, the form data is altered to simulate a failing honeypot condition. Like with all failed honeypots, Gravity Forms will skip saving the data or sending any notifications but the form will appear (to the user) to have been submitted successfully.
Plugin development can be tracked on the project’s Github Page: https://github.com/buckii/gravity-forms-duplicate-prevention

延伸相關外掛

文章
Filter
Apply Filters
Mastodon