Any chance of someone figuring out a way to add a refresh image link in as YoutTube does:

http://youtube.com/signup (see 'can't read' link under the image). usefull just incase the image screws up or it isnt too clear to read.

thanks

Comments

nathanraft’s picture

I second this one. tried to find a way to do this but could not find a way.

Thanks to anyone who would take the time to do this.

nathanraft’s picture

Version: 5.x-2.x-dev » 4.7.x-2.x-dev

I second this one. tried to find a way to do this but could not find a way.

Thanks to anyone who would take the time to do this.

DiGiT’s picture

Version: 4.7.x-2.x-dev » 5.x-1.2

Replace the next line in function textimage_captchachallenge(&$form)

'#prefix' => '<div class="textimage-challenge"><img src="' . url('_textimage/image/'.time()) . '" '.$imageSize[3].' alt="'.t('Captcha Image: you will need to recognize the text in it.').'"/></div>',

by

'#prefix' => '<div class="textimage-challenge"><img onclick="document.captcha.src=\''. url('_textimage/image/'.time()) . '&\'+Math.random();return false" src="' . url('_textimage/image/'.time()) . '" '.$imageSize[3].' name="captcha" alt="'.t('Captcha Image: you will need to recognize the text in it.').'"/> <a href="#" onclick="document.captcha.src=\''. url('_textimage/image/'.time()) . '&\'+Math.random();return false">Code onleesbaar?</a></div>',

in captcha.inc (textimage directory).

rkn-dupe’s picture

Thanks will try!

rkn-dupe’s picture

Status: Active » Postponed (maintainer needs more info)

DiGit - this works great - however it only shows up the 'reset code' text once a user has submitted the form with the wrong code - can you tell me how to change so the reset code link shows up all the time? Before the user has pushed submit?

lias’s picture

noting

deciphered’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Captcha no longer supported in Textimage.