QapTcha Snippets Revo
JavaScript PHP
Latest commit f8275b3 Nov 25, 2012 @Viktorminator Viktorminator Update README.md
Permalink
Failed to load latest commit information.
assets/components/qaptcha
core
README.md

README.md

QapTcha Snippets v2.5 Revo

Original article
[Home Page QapTcha](http://www.myjqueryplugins.com/QapTcha)
[Online Demo QapTcha](http://www.myjqueryplugins.com/QapTcha/demo)

Snippet written thoroughtfully on August 8th, 2011, the original article here

Download Here

Quick Start

Use of snippet:

A simple call —

[[!Qaptcha]]

Optionally you can use some parameters -

[[!Qaptcha?
    &disabledSubmit=`false`
]]

Parameters:

  • disabledSubmit — by default ** true **,

Put Slider before pressing submit via placeholder:

[[+qaptcha.Slider]]

When using with Register snippet you need to add preHook validCaptcha:

&preHooks=`validQaptcha`

For example Register snippet call:

[[!Qaptcha? &disabledSubmit=`false` &txtLock=`Заблокирована: форма не может быть отправлена` &txtUnlock=`Разблокирована: форма может быть отправлена`]]
[[!Register?
    &preHooks=`validQaptcha`
    &submitVar=`registerbtn`     
    &activationResourceId=`4`
    &activationEmailTpl=`myActivationEmailTpl`
    &activationEmailSubject=`Thanks for Registering!`
    &submittedResourceId=`4`
    &usergroups=`Marketing,Research`
    &validate=`nospam:blank,
        username:required:minLength=^6^,
        password:required:minLength=^6^,
        password_confirm:password_confirm=^password^,
        fullname:required,
        email:required:email`
    &placeholderPrefix=`reg.`
]]
<div class="register">
    <div class="registerMessage">[[!+reg.error.message]]</div>

    <form class="form" action="[[~[[*id]]]]" method="post">
        <input type="hidden" name="nospam" value="[[!+reg.nospam]]" />

        <label for="username">[[%register.username? &namespace=`login` &topic=`register`]]
            <span class="error">[[!+reg.error.username]]</span>
        </label>
        <input type="text" name="username" id="username" value="[[!+reg.username]]" />

        <label for="password">[[%register.password]]
            <span class="error">[[!+reg.error.password]]</span>
        </label>
        <input type="password" name="password" id="password" value="[[!+reg.password]]" />

        <label for="password_confirm">[[%register.password_confirm]]
            <span class="error">[[!+reg.error.password_confirm]]</span>
        </label>
        <input type="password" name="password_confirm" id="password_confirm" value="[[!+reg.password_confirm]]" />

        <label for="fullname">[[%register.fullname]]
            <span class="error">[[!+reg.error.fullname]]</span>
        </label>
        <input type="text" name="fullname" id="fullname" value="[[!+reg.fullname]]" />

        <label for="email">[[%register.email]]
            <span class="error">[[!+reg.error.email]]</span>
        </label>
        <input type="text" name="email" id="email" value="[[!+reg.email]]" />

        <br class="clear" />

        <div class="form-buttons">
            [[+qaptcha.Slider]]
            <input type="submit" name="registerbtn" value="Register" />
        </div>
    </form>
</div>

Authors

Valentin Rasulov
artdevue.com
http://artdevue.com

Contributor

Viktor Matushevskyi
MODX Webschool
http://modx.ws