On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • 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?

    <label>Word Verification:<span class="mandatory">*</span></label>
    <p><span class="note">(Type the characters you see in the picture below)</span></p>
    <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" />

    <span class="error">[[+fi.error.veriword]]</span>
    <input type="text" name="veriword" id="veriword" class="word-verification" value="[[!+fi.formcode]]"/>
    • Hi,

      I’m not sure what you mean with ’image appear but not valid the field’, but maybe this helps:
      • 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 wink
          Helen Warner
          Number one pixel!
          Proud to be linked with MODX at Crimson Pixel
        • 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.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting