Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

reCaptcha Module

Go to End

9 Posts   3497 Views


6 May 2008 at 2:01am Community Member, 1 Post

hi community!

we started to use silverstripe for simple sites and are very satisfied with it's intuitive user interface.

now we tried to integrate recaptcha into our contact forms. we found the module and its documentation ([url][/url]) but we didn't succeed in using it.

we read discussions at the dev-forums ([url][/url]) and are a little confused about how to use the module. isn't it ment to install the module and to have a new field in the form-tab?

we appreciate any hint on using this module. thank you very much!


6 May 2008 at 3:17am Community Member, 787 Posts

No , at this moment it cannot be used on user generated forms. We played around with it , trying to get it to work on them, but ended up manually creating the forms through a class , the recaptcha works perfectly then.

It is still on our todo list though... ;)


11 August 2008 at 11:51pm Community Member, 6 Posts

First off great work in incorporating this module with SS. But i'm having some problems getting the module to work with my custom form and a template.

Here is my code All of my fields are showing but the recaptcha one.


12 August 2008 at 12:27am Community Member, 787 Posts

Hmmm..that's weird.... Can't really see anything wrong with it...

the only difference is that I did not create a specific form template....but let SS generate it for me (e.g. ; I just dumped a $myformname in the template)...


11 October 2008 at 9:56pm Community Member, 501 Posts

I created a little module that works like this, but for Mollom then:


14 October 2008 at 1:00am Forum Moderator, 801 Posts

nice work! one tiny note: we favour the usage of FormField::createTag() in FormField->Field() because its easier to read and modify.

do you want me to set up your module as a component on and add it to as always, we're offering to host your module on our subversion-repo as well if you're keen :)


14 October 2008 at 1:18am Community Member, 501 Posts

Ingo, thanks

I based myself on the recaptchamodule, don't remember seeing createTag there, but I can change it in a next version some day.

The guys from mollom asked me to set up a little site for it where I maintain the versions, but feel free to add it to translate and open. (although it might need some extra vars added to translate).

The module is also featured on

I'm also looking into adding Mollom as a whole (as a Validator extension) - which checks the content first and only adds a Captcha on 'unsure', but I'm running into some difficulties with Validator and Form - might open a topic for it later that describes my problem in detail.


6 November 2008 at 2:20pm (Last edited: 6 November 2008 2:20pm), Community Member, 64 Posts

Hi, I am a newby, simply want to add Mollom into my form, but I got stuck on where to put this code:

$myCaptcha = new MollomCaptchaField("MyCaptcha", "Label Text");

Please help!! Thanks.

Go to Top