Hello,

Please add a link to reload the image if it can't be read without reload the whole page, just the image.

THanks

DONIE

Comments

robloach’s picture

Priority: Normal » Minor

It would be neat if you could click on the image to generate a new one. Since the CAPTCHA module is so dependent on the Forms API, I'm not sure if this is something we could do. Drupal 6 adds a bunch of AJAX Forms API stuff though, so that might be something that we'll have to wait for in the Drupal 6 port.

You might like to try out reCAPTCHA, as it implements this functionality.

soxofaan’s picture

Title: Reload Link » AHAH/AJAX request for new challenge
Version: 5.x-3.x-dev » 6.x-2.x-dev
Component: Image Captcha (image_captcha) » Captcha API (captcha)
Assigned: doniking » Unassigned
Priority: Minor » Normal

Looks like a Drupal6 AHAH thing
and should be applicable to all CAPTCHA types (not only image CAPTCHA)

bejayoharen’s picture

It is especially important for the image captchas, though. IMO, it makes the image captchas unusable b/c someone may think the image is unreadable and at worst say "well, forget this" and at best feel a bit frustrated, or worry what will happen if they enter the wrong value. This is a shame because otherwise they are fantastic... I love how configurable they are.

OneTwoTait’s picture

Subscribing. I've made the CAPTCHAs fairly reasy to read by trying out different fonts and settings... but a refresh link is important.

jonline’s picture

Subscribing. is there any update???

srjosh’s picture

Subscribing; may have to do this for my company and will try and get permission for a patch to post here.

aryanto’s picture

I am also interested in this feature, as I think this will be the quickest workaround for the intermittent issue that I have just reported on http://drupal.org/node/558904.

arcaic’s picture

Subscribing - I have definitely lost at least one submission as they emailed me to tell me they couldn't read the Captcha and couldn't figure out how to submit the form. Andy

treksler’s picture

regenerating the captcha is pretty expected functionality these days.
almost qualifies as a bug

soxofaan’s picture

FYI: in #654118: Link for reloading CAPTCHA image, we're working on a patch to reload the image (but keep the code in the image the same), which is pretty easy to achieve with some jQuery.

This is not really a duplicate, as this thread is more targeted at generating a new challenge/code/solution (which is much harder)

suresh.gju’s picture

StatusFileSize
new14.69 KB

Hi

I have also made fixes in image captcha module to give refresh functionality.
You can read this post http://drupal.org/node/274173#comment-1042232

Preview : http://sureshyadav.com/files/captcha.jpeg
You can verify at http://sureshyadav.com/user/register
(register please)

You can download the source code for captcha module from here:
http://sureshyadav.com/content/drupal-image-captcha-with-refresh-link

www.sureshyadav.com
-----------------------------------
When problem is clear, solution is near.

soxofaan’s picture

Status: Active » Needs work
StatusFileSize
new2.64 KB

Thanks suresh for those pointers.
Apparently you hacked an old version of the CAPTCHA module 6.x-1.x (from april 2008), which is unmaintained now (the 6.x-2.x branch is the active one). Because of some architectural changes, your changes can not be merged directly into the 6.x-2.x branch unfortunately.
It's also recommended to provide a patch instead of a zip file with a edited version. In attachment the patch I managed to extract from your code (for reference only, as it's not applicable to 6.x-2.x) .

samc’s picture

Status: Needs work » Needs review
StatusFileSize
new2.59 KB

Found this issue today in my search for a way to refresh image CAPTCHAs.

The attached patch is based on suresh's code, updated for 6.x-2.x and with some added themability of the link.

One caveat is that this does not generate a new code, just refresh the image with a different pattern.

soxofaan’s picture

@samc in #13:
in #654118: Link for reloading CAPTCHA image there is already a patch for just regenerating the image (without generating a new code). Note that you don't need AJAX and additional server side code for this, just requesting a the same image with jQuery is enough.

kcolbe’s picture

StatusFileSize
new1.77 KB

I have had the same need...but I prefer not to use reCAPTCHA because it depends on external libraries from their site. Attached is a module I wrote which is derived from some of the code that suresh_gju wrote and compatible with the new CAPTCHA module. Enjoy!

yerboo’s picture

Thanks for this(image_captcha_refresh.zip), work well for me.
image_captcha_refresh is a module, both image and code reloaded, thank again.
My captcha is 6.x-2.2.

Status: Needs review » Needs work

The last submitted patch, image_captcha_refresh.patch, failed testing.

benjarlett’s picture

Issue tags: +Accessibility

I really need this for the site I am creating for disabled people (I'm using the textCAPTCHA add-on but realise that this should be a part of this module, so it's available for all types). Please please please. I'm using 6.x-2.x-dev

warobushek’s picture

Component: Captcha API (captcha) » Image Captcha (image_captcha)
Status: Needs work » Patch (to be ported)
StatusFileSize
new2.63 KB

Here is working patch. I've changed MENU_LOCALTASK type to MENU_CALLBACK, moved link to the #suffix property of element

soxofaan’s picture

Status: Patch (to be ported) » Needs work

@warobushek: there is something wrong with the link to your patch

warobushek’s picture

StatusFileSize
new2.63 KB

.. once more

wundo’s picture

I'd like to approach this avoiding inline JS calls, also we need to make sure this degrades gracefully

Also we should re-use the code from #654118: Link for reloading CAPTCHA image

rogical’s picture

+1

Dubber Dan’s picture

Does the patch in #19 work?

blauerberg’s picture

Subscribing

mitraidos’s picture

Version: 6.x-2.x-dev » 6.x-2.4
Category: feature » task
StatusFileSize
new10 KB

I fixed and updated the image_captcha_refresh module for 6.x-2.4 for the latest session framework and jquery. There you go.

halloffame’s picture

This is not working...

mgifford’s picture

Version: 6.x-2.4 » 7.x-1.0
Issue summary: View changes

I'm assuming this is still an issue in D7.

hamrant’s picture

Version: 7.x-1.0 » 7.x-1.3
Assigned: Unassigned » hamrant
Status: Needs work » Closed (fixed)
Issue tags: -Accessibility +dcuacs2015

Use module image_captcha_refresh
Tested with CAPTCHA 7.x-1.3 and Image captcha refresh 7.x-1.5