Really Simple CAPTCHA 是一個號稱可以跟用 WP 的表單外掛配合使用的表單驗證功能,開發者其實也是 Contact Form 7 的開發者,所以如果要跟 Contact Form 7 搭配的話應該用這個就可以了。
安裝好後在表單樣板編輯器那邊加上這段就可以了:
[captchar captcha-1 4/4] [captchac captcha-1]
其中 captchar 會生成輸入欄位,captchac 會生成驗證碼。
還可以額外設定參數:
Option | Examples | Description |
---|---|---|
id: (id) |
id:foo |
id attribute value of the img element. |
class: (class) |
class:bar |
class attribute value of the img element. To set two or more classes, you can use multiple class: option, like [captchac your-captcha class:y2008 class:m01 class:d01] . |
size: (sml) |
size:s |
Image size. Only size:s (60×20), size:m (72×24) and size:l (84×28) are available. |
fg:# (hex) |
fg:#ff0000 |
Foreground color of the image. Put RGB color code in hex format after fg:# . |
bg:# (hex) |
bg:#00ffff |
Background color of the image. Put RGB color code in hex format after bg:# . |
比如說:
[captchac your-captcha size:s fg:#ffffff bg:#000000]
給有需要的參考看看,更多說明請見 Really Simple CAPTCHA