hubertusanton/silverstripe-simplequestioncaptchafield

SilverStripe Simple question captcha field

dev-master 2016-02-22 13:03 UTC

This package is auto-updated.

Last update: 2024-11-05 20:10:42 UTC


README

Maintainer Contacts

Requirements

  • SilverStripe 3+

Documentation

GitHub Wiki

Installation Instructions

  1. Place this directory in the root of your SilverStripe installation.
  2. Rename directory to simplequestioncaptchafield
  3. Visit yoursite.com/dev/build?flush=1

Usage

This is a simple user friendly captcha field with random questions a human should know the answer to to prevent spamming of forms in silverstripe.

Documentation

examples of usage:

$obvious_questions = array(
                        'what is the answer of 1 + 1?' => '2',
                        'What is the first letter of the alphabet?' => 'a',
                        'What is the color of the sky?' => 'blue');
SimpleQuestionCaptchaField::create('SimpleCaptcha', null, '', $obvious_questions);

or

SimpleQuestionCaptchaField::create('SimpleCaptcha', null, '');

or a simple one which i like

SimpleQuestionCaptchaField::create('SimpleCaptcha', null, '', array(
	'Type the number <strong>TWO</strong> in numbers.' => '2',
	'Type the number <strong>THREE</strong> in numbers.' => '3',
	)
)

Help

I could use some help in making up the default obvious questions and maybe making these also suporting multiple languages.