Skip to content

hubertusanton/silverstripe-simplequestioncaptchafield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SilverStripe Simple question captcha field

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.

About

Silverstripe simple question captchafield

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages