One of our clients has the requirement to add a captcha control to an existing Contour form that is used in a right-hand bar and hence space is limited at around 220px wide. I have tried using the recaptcha control built into Contour but as you know the minimum width of this control is 300px wide.
Has anyone created or know how to implement a captcha control that would fit into a small space such as 200px wide?
Any ideas or solutions would be greatly appreciated.
Thanks for the information. I have implemented what was in the article using the Contour Contrib recaptcha control, however I have an issue in that when submitting the form, no validation is being done on the control and the form can be submitted.
I am now using the default recaptcha fieldtype from the Contour core, however when I try to submit the form all I ever receive is that the code entered is invalid even though I can see that the code I am entering is correct. The code I am using is shown below, note the overwritten RecaptchaOptions that was needed as the default fieldtype doesn't allow the specifying of the customthemewidget. Any further ideas?
This is turning into a bit of a nightmare, I have spent a fair few hours trying to get this working but still no luck, surely there must be someone out there who has successfully implemented a custom theme to the captcha control and got it working.
After much trial and error I have eventually found a way of getting this working, for any other people wanting to know how to implement this in the future find the steps below:
Use the default Recaptcha datatype that ships with Contour.
Set the theme to custom
Set the ReCaptcha Public and Private keys in the file UmbracoContour.config located in /Umbraco/Plugins/umbracoContour
Change the file Fieldtype.Recaptcha.cshtml in the /umbraco/plugins/umbracoContour/Views directory to read as the attached file here (N.B. if you are using an overriden form then the updated file will need to be placed in the /umbraco/plugins/umbracoContour/Views/Forms/)
Once the above steps have been done then the custom ReCaptcha control should all work fine.
Smaller captcha control
One of our clients has the requirement to add a captcha control to an existing Contour form that is used in a right-hand bar and hence space is limited at around 220px wide. I have tried using the recaptcha control built into Contour but as you know the minimum width of this control is 300px wide.
Has anyone created or know how to implement a captcha control that would fit into a small space such as 200px wide?
Any ideas or solutions would be greatly appreciated.
Comment author was deleted
Haven't seen one around
Found this on the subject of small recpatcha http://blog.cdeutsch.com/2011/03/make-recaptcha-smaller.html
Hi Tim,
Thanks for the information. I have implemented what was in the article using the Contour Contrib recaptcha control, however I have an issue in that when submitting the form, no validation is being done on the control and the form can be submitted.
Any ideas?
Comment author was deleted
Hey,
Think you'll need to do this on the default recaptcha fieldtype in the Contour core
I am now using the default recaptcha fieldtype from the Contour core, however when I try to submit the form all I ever receive is that the code entered is invalid even though I can see that the code I am entering is correct. The code I am using is shown below, note the overwritten RecaptchaOptions that was needed as the default fieldtype doesn't allow the specifying of the customthemewidget. Any further ideas?
This is turning into a bit of a nightmare, I have spent a fair few hours trying to get this working but still no luck, surely there must be someone out there who has successfully implemented a custom theme to the captcha control and got it working.
After much trial and error I have eventually found a way of getting this working, for any other people wanting to know how to implement this in the future find the steps below:
Once the above steps have been done then the custom ReCaptcha control should all work fine.
Comment author was deleted
Great thanks for posting the solution :)
is working on a reply...