How to use custom captchas in contact forms

Permalink
Is it possible to use custom captchas in the contact forms? I would like to use this captcha as an alternative to the standard concrete5 captchahttp://www.sweetcaptcha.com/

 
nkennel replied on at Permalink Reply
nkennel
I'm guessing you could create a custom template for the form block.
nkennel replied on at Permalink Reply
nkennel
Looks like if you get this free add-on:

https://www.concrete5.org/marketplace/addons/form-tableless-layout/...

...and replace the following code with your captcha, that might do it!
<div class="captcha">
  <label><?php  echo $translatedCaptchaLabel; ?></label>
  <br />
  <?php  $captcha->display(); ?>
  <br />
  <?php  $captcha->showInput(); ?>
</div>


I'm not an expert, but I think this should do it.
nkennel replied on at Permalink Reply
nkennel
sorry, I didn't say where that code would be! After installing the add-on, I believe this code should be near the bottom of this file: YOURSITE/blocks/form/templates/tableless_layout.php

Good luck!
nkennel replied on at Permalink Reply
nkennel
Oh, keep in mind you need to use this custom template each time you want the custom captcha, unless you copy that file and to YOURSITE/blocks/form/view.php

Additionally this custom template will create some additional styling work for you because it takes away the tables - indicated by it's name - to allow for more flexibility it how your forms can look. All of this is mentioned in the marketplace, but I didn't want you to be taken off guard!
mkly replied on at Permalink Reply
mkly
concrete5 actually has a captcha interface at this point. You can extend it.

For example this is my fork of the concrete5 recaptcha package.
https://github.com/mkly/addon_recaptcha...

It is pretty straightforward to create your own to work with that service. Then you would just choose that captcha for your site and it would show up everywhere you had a captcha.