Tags:
Drupal modules are plug and play. Download, Place, Enable, Configure .. thats it.
Make CAPTCHA in real life is quite a tedious job. But thanks to drupal community, you can get easily and place on your site. But with contributed module there is an issue, if you need some custom requirement, you need to understand all the code. Even a single change take more time.
With captcha module I have faced issue of refresh image link. Our requirement is to show a link in side of captcha image, so that if user is not able to understand the code in image, he can refresh image without reloading page.
After a lot of search, i didn't find anything relaed. So i decided to modify image_captcha module and here is result. You can download the code as attachment.
| Attachment | Size |
|---|---|
| captcha.5.X.zip | 54.55 KB |
| captcha.6.X.zip | 61.58 KB |

Hi Suresh, You're a
Hi Suresh,
You're a life-saver!! I have been searching for this functionality for quite some time.
Could you pinpoint the part of the code in image_captch.module that implements the refresh link? I was thinking to adding the code to my existing image captcha module instead re-installing the module.
I'm using drupal 6 and had d/led the captcha.6.X.zip and assume that it's for drupal 6.
Hope to hear from you soon.
Thanks in advance.
I have made changes to
I have made changes to image_captcha.module file. And 100% confident that it will not break your existing functionality. You don't need to re-install module. Just rename your image_captcha module folder and put new one there. If you face any issue, you can restore old one.
If you still, need to see difference, you can see difference between the between the two files (yours and mine) by any file diff utility e.g. Examdiff
Let me know, if u need more help.
I've did as what you advised
I've did as what you advised but somehow the image did not displayed, though the link was there. Is there any changes that I need to do for the image to appear as expected?
I am using drupal 6 and captcha version 6.x-2.0-rc2.
Is captcha module (without
Is captcha module (without refresh link, downloaded from drupal site) working fine for you?
If yes, then can i see it somewhere online, to diagnose the issue? OR Mail me access details to check at suresh.gju@gmail.com
hi, I've moved already
hi,
I've moved already running application to new server, everything works out rest of image captcha at user/register page.
The image captcha is not displayed.
I've not enable the gd extension? Should I do it? what are the dependencies should i install?
Yes, you need to enable GD.
Yes, you need to enable GD. You can check status at drupal link of you site 'admin/logs/status'. Also, you need to configure captcha module, to show captha while registration.
This is great. How do you
This is great. How do you set the font size? the images showing for me are very small.
Font size can set by admin
Font size can set by admin configuration (user/captcha/image_captcha) i.e normal, small, large etc
I have recently read a book
I have recently read a book on this topic which found at pdf search engine on ebooks and must admit that from your article I've learned much new and interesting. Thanks!
Hi Suresh, This is apparao
Hi Suresh,
This is apparao from hyderabad, i need same functionality for refresh image regarding captcha.
can u suggest how to do that functionality.
I am new to drupal, using drupal 6, and need one more help regarding the registration process with 3 steps.
Thanks,
Apparao CH
Hi Apparao, I have not
Hi Apparao,
I have not worked on drupal 6, but can download captcha module attached to this blog (for drupal 5). Then download original captcha module from drupal.org for drupal 5. See the difference in both module. Then implement those changes in your drupal 6 module. The idea behind refreshing is just to change value in session and regenerate new image.
I will also convert captcha module for drupal 6 with refresh link soon.
Regarding multistep registration search google for 'drupal multistep form'.
You will get some help.
~ suresh
Post new comment