Human test question on signup page

Discussion in 'aMember Pro v.4' started by mike_mac, Feb 2, 2012.

  1. mike_mac

    mike_mac aMember Pro Customer

    Joined:
    Jan 21, 2010
    Messages:
    9
    I've added Recaptcha to my signup page in AM v.4, but it seems robot accounts are still getting through. I hate those robot accounts.

    Is it possible to add a "human test" question on the signup page? I've added the field to the form, but would need some direction on how to verify the new user got the answer correct to proceed with their registration, or kick back if they get it wrong.

    Thanks.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Mike,
    you have to create HTML_QuickForm2_Rule that will validate your element.
    Then create new brick that can be included in signup form and will add your field to signup form.
    You can find bricks example in /amember/library/Am/Form/Brick.php
  3. mike_mac

    mike_mac aMember Pro Customer

    Joined:
    Jan 21, 2010
    Messages:
    9
    Sounds a little complicated. So I would be adding a whole new class, something like:

    class Am_Form_Brick_HumanTest extends Am_Form_Brick
    {
    ...
    }

    to that Brick.php page?
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Yes correct.
  5. frybread

    frybread aMember Pro Customer

    Joined:
    Jul 14, 2008
    Messages:
    63

Share This Page