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

前言介紹

  • 這款 WordPress 外掛「Gravity Forms Duplicate Prevention」是 2013-02-07 上架。
  • 目前有 500 個安裝啟用數。
  • 上一次更新是 2016-03-20,距離現在已有 3332 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.5 以上版本才可以安裝。
  • 有 12 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

stevegrunwell | buckeyeinteractive |

外掛標籤

forms | gravity forms |

內容簡介

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

它是如何起作用的?

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

您可以在項目的 Github 頁面上追蹤插件的開發: https://github.com/buckii/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

各版本下載點

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

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


0.1 | 0.1.1 | 0.1.2 | 0.1.3 | 0.1.4 | 0.1.5 | trunk |

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

文章
Filter
Apply Filters
Mastodon