Skip to content

Viktorminator/QapTcha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

We put a challenge before the captcha form below:

A simple call —

[[!Qaptcha]]

Full call -

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

Parameters:

  • disabledSubmit — by default ** true **,

We put a placeholder before pressing submit.

[[+qaptcha.Slider]]

In calling the form, put

&preHooks=`validQaptcha`

Example Call Register

[[!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

About

QapTcha Snippets Revo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.0%
  • PHP 20.0%