Despite what this thread seems to suggest, I don't think this has been added so far, but it would be definitely useful to be able to refresh the captcha image without having to submit the form. I just upgraded to 1.9 assuming there would be some admin option to enable this, but there's no such thing.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Needs work
FileSize
27.12 KB
6.24 KB

Here's a start to add a 'Refresh CAPTCHA' link to the Mollom CAPTCHA. I still need to figure out how to actually get it to change the mollom session_id to give it a new captcha. Also attached a proposed screenshot since the links have been moved to below the captcha element instead of to the right of it.

Leaving as needs work for now.

Dave Reid’s picture

Version: 6.x-1.9 » 6.x-1.x-dev
OnkelTem’s picture

Hi,

So? I've just installed 1.12 and still no Refresh on user registration form:

http://www.onlinedisk.ru/view/392969

sun’s picture

Title: Refresh captcha button without submitting the form » Add Refresh button for CAPTCHA
Version: 6.x-1.x-dev » 7.x-1.x-dev
Component: User interface » Code
ramsunvtech’s picture

Title: Add Refresh button for CAPTCHA » Added Refresh Captcha Option in Mollom module
Assigned: Unassigned » ramsunvtech
Priority: Normal » Critical
FileSize
3.64 KB

Guys,

Here i have attached the patch and mentioned the following changes with description below

1). Created the event "mollomRefreshCaptcha" attached to the link "a.mollom-refresh-captcha" and calling "getNewMollomCaptcha" in mollom.js
2). Created a new function called "getNewMollomCaptcha" to get a new Captcha in mollom.js
3). Updated the output variable in "mollom_get_captcha" function to refresh audio and image captcha in mollom.module

Kindly let me know, if any one have better patch than this.

Regards,
Venkatraman

alexkb’s picture

Status: Needs work » Needs review
FileSize
3.55 KB

ramsunvtech, I had trouble with your patch on the more recent version of Mollom. It was only a small change, but you can't the function that returns the mollom image must use post instead of get.

The refresh link should probably be after the image too, and perhaps, it should be changed to an icon anyway.. will let others decide on that.

Anyway, attached is an updated patch for anyone else wanted refresh support with the most recent version of Mollom.

Status: Needs review » Needs work

The last submitted patch, 502390-6-refresh-support.patch, failed testing.

alexkb’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
FileSize
3.55 KB

Retest on correct branch.

alexkb’s picture

Status: Needs work » Needs review
sun’s picture

Note that #504336-33: Audio captcha does not work in Chrome/Firefox, OK in IE 8 contained some initial design prototypes.

sandergo90’s picture

Hi All,

I was trying to use the patch for the refresh button. The button first of all does not appear correctly and secondly when I hit the refresh button and then enter the new captcha, it gives me a message that the word verification is not correct.

namratadas’s picture

Issue summary: View changes
eshta’s picture

FileSize
8.26 KB

So the way the Mollom captchas are presented has changed a lot since the last patch on this. I've created a new patch that works with the new image/audio templates. In the process, I also cleaned up the javascript a little bit to namespace the Mollom captcha retrieval function.

Status: Needs review » Needs work

The last submitted patch, 13: mollom.refresh.13.patch, failed testing.

eshta’s picture

Status: Needs work » Needs review
FileSize
9.35 KB

D'oh - forgot the binary flag.

eshta’s picture

Assigned: ramsunvtech » Unassigned

  • Commit 49a43aa on 7.x-2.x by eshta:
    Issue #502390 by eshta: Added refresh capability to captcha.
    
eshta’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev
FileSize
9.09 KB

Committed the D7 patch.
Now adding a D6 backport.

eshta’s picture

Status: Needs review » Fixed

Patches committed :-)

  • Commit 38024d8 on 6.x-2.x by eshta:
    Issue #502390 by eshta: Add refresh captcha option.
    

  • Commit 49a43aa on 7.x-2.x, fbajs by eshta:
    Issue #502390 by eshta: Added refresh capability to captcha.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

sumithb’s picture

Issue tags: +There is issue with refresh button in firefox

Hi,

I installed the latest MOLLOM module and the refresh CAPTCHA is not working in my firefox. It is working fine in the chrome.

Please fix this.

Thanks
Sumith