========
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
[[!Qaptcha]]
[[!Qaptcha?
&disabledSubmit=`false`
]]
- disabledSubmit — by default ** true **,
[[+qaptcha.Slider]]
When using with Register snippet you need to add preHook validCaptcha:
&preHooks=`validQaptcha`
[[!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>
Valentin Rasulov artdevue.com http://artdevue.com |
Viktor Matushevskyi MODX Webschool http://modx.ws |