2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-age-gate

Age Gate module for SilverStripe.

image

moosylvania/silverstripe-age-gate

Age Gate module for SilverStripe.

  • Tuesday, May 8, 2018
  • by obj63mc
  • Repository
  • 1 Watchers
  • 1 Stars
  • 85 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 49 % Grown

The README.md

SilverStripe Age Gate

Simple Age Gate module for SilverStripe, ensures that users entering site are 21+., (*1)

Requirements

  • SilverStripe 4.0.0+, for 3.x checkout 3.x branch

Installation & Documentation

  1. Clone Repository to your SilverStripe Project or -, (*2)

    composer require moosylvania/silverstripe-age-gate
  2. This will add a route /age-gate to your project and all users will be presented with a yes/no button to validate of age. If you would like the user to type in their date of birth you can set the config option of 'askForAge', (*3)

    Moosylvania\AgeGate\Controllers\AgeGateController:
      askForAge: true

    To set the format of the dates you can change the config values 'dateFormat' (for the form intro text) and 'dateFieldFormat' for the actual SilverStripe Date Field., (*4)

    Moosylvania\AgeGate\Controllers\AgeGateController:
      dateFormat: 'm/d/Y'
      dateFieldFormat: 'MM/dd/yyyy'
  3. You can set up where you want a user redirected to if they select 'No' (not of age) by adding the following config value to your site -, (*5)

    Moosylvania\AgeGate\Controllers\AgeGateController:
      notOfAgeRedirect: 'https://moosylvania.com'
  4. You can also setup how old someone needs to be to enter your site (default is 21 by editing the setting), (*6)

Moosylvania\AgeGate\Controllers\AgeGateController: yearsOld: 21, (*7)

  1. Run a dev/build?flush=1 and your site will now be agegated.

The Versions

08/05 2018

dev-master

9999999-dev

Age Gate module for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Joe Madde
by Bob Sherron
by Joe Madden

silverstripe age agegate

08/05 2018

2.1.0

2.1.0.0

Age Gate module for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Joe Madden

silverstripe age agegate

07/05 2018

2.0.2

2.0.2.0

Age Gate module for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Joe Madden

silverstripe age agegate

07/05 2018

2.0.0

2.0.0.0

Age Gate module for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Joe Madden

silverstripe age agegate

04/05 2018

1.1.0

1.1.0.0

Age Gate module for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Joe Madden

silverstripe age agegate

04/05 2018

1.0.1

1.0.1.0

Age Gate module for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Joe Madden

silverstripe age agegate

04/05 2018

1.0.0

1.0.0.0

Age Gate module for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Joe Madden

silverstripe age agegate

04/05 2018

3.x-dev

3.9999999.9999999.9999999-dev

Age Gate module for SilverStripe.

  Sources   Download

MIT

The Requires

 

by Joe Madde
by Bob Sherron

silverstripe age agegate