-
- 211 Posts
Hi all,
I’m having a problem with the captcha.
I’m using the modx revolution 2.0.8
I’ve installed the capcha packaged and the image appear but not valid the field.
The code below is the code that I using for call the captcha.
I’m using the formit, It’s necessary to call the captcha there?
<li>
<label>Word Verification:<span class="mandatory">*</span></label>
<p><span class="note">(Type the characters you see in the picture below)</span></p>
<label> </label>
<a href="[[~[[*id]]]]">
<img style="border: 1px solid #039;" src="assets/components/captcha/captcha.php?rand=rand()" alt="If you have trouble reading the code, click on the code itself to generate a new random code." width="148" height="60" align="top" />
</a>
</li>
<li>
<label> </label>
<span class="error">[[+fi.error.veriword]]</span>
<input type="text" name="veriword" id="veriword" class="word-verification" value="[[!+fi.formcode]]"/>
</li>
Did you get Captcha working? I’ve used the Recaptcha as per the guidelines provided which works fine, except the audience who are generally interacting with my customer’s site are silver surfers and struggle with the letters which can be difficult to read - would much prefer to use Captcha although realise it has limitations.
Would be interested to know how you’ve got on.
Thanks
Helen Warner
Number one pixel!
Proud to be linked with MODX at
Crimson Pixel
-
- 24,544 Posts
I know this is an old thread, but in order to user Captcha with FormIt, you would have to use the code above and write a custom FormIt postHook to evaluate the result by comparing the user's input to the $_SESSION['veriword'] value. Return true if they match and false if not.
Also, for a simple contact form SPForm will use Captcha if you tell it to.