2017 © Pedro Peláez
 

silverstripe-module areyouahuman

The Are You a Human Module allows use of the Are You a Human Spam Protection game as both a FormField type (AYAHField) and as the default Spam Protector when integrated with the Spam Protection Module.

image

sam-costigan/areyouahuman

The Are You a Human Module allows use of the Are You a Human Spam Protection game as both a FormField type (AYAHField) and as the default Spam Protector when integrated with the Spam Protection Module.

  • Wednesday, September 16, 2015
  • by Sam-Costigan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

silverstripe-areyouahuman

Original by stozze

Adapted for SpamProtector by SDC

Usage

Add the root folder called "areyouahuman" in the root of your Silverstripe installation. Make sure to rename it to "areyouahuman" if it is not already named so., (*1)

In your site _config.php you can set the publisher and scoring keys like this:, (*2)

AYAHField::$publisher_key = 'your publisher key';
AYAHField::$scoring_key = 'you scoring key';

If you want the Are You a Human field to be the automatic Spam Protection field, also add the following line to your _config.php:, (*3)

SpamProtectorManager::set_spam_protector('AYAHProtector');

After you have configured your keys, add AYAHField to the forms you want validated via the "Are you a human"-service (www.areyouahuman.com). Something like this:, (*4)

$formFields->push(new AYAHField());

You must have registered an account at www.areyouahuman.com to be able to use their service. It's free!, (*5)

The Versions

16/09 2015

dev-master

9999999-dev

The Are You a Human Module allows use of the Are You a Human Spam Protection game as both a FormField type (AYAHField) and as the default Spam Protector when integrated with the Spam Protection Module.

  Sources   Download

The Requires

 

by Sam Costigan

silverstripe areyouahuman