Image captcha for drupal 4.7.x

Events happening in the community are now at Drupal community events on www.drupal.org.
stborchert's picture

Hi.
Does anyone has a working version of image captcha for drupal 4.7.x? It shouldn't be that hard to backport 5.x but if someone already did this...
I'm using drupallite ([1], [2]) for a small site and added captcha to the contact form. No I wanted to add image captcha but drupallite is based of drupal 4.7.

thanks,

Stefan

Comments

I wouldn't hold my breath

soxofaan's picture

Drupal 4.7 is not supported anymore and it is very unlikely that the Drupal 5 version of CAPTCHA would be backported to Drupal 4.7. None of the CAPTCHA maintainers (including me) have the time nor interest to do this anyway.
Moreover, I don't think it is "not that hard" to backport the module.

Also, it seems from what I understood of Drupal Lite, that it does not use a database,
the CAPTCHA module needs sessions to work, which are stored in the database (in normal Drupal),
I don't know how this can be solved in Drupal Lite.

In short: I think your chances are extremely low to get a working image CAPTCHA on Drupal lite.
sorry

done :-)

stborchert's picture

Drupal 4.7 is not supported anymore and it is very unlikely that the Drupal 5 version of CAPTCHA would be backported to Drupal 4.7. None of the CAPTCHA maintainers (including me) have the time nor interest to do this anyway.

It was just a question if someone already did this. Not to make you to do the backport.

Also, it seems from what I understood of Drupal Lite, that it does not use a database,
the CAPTCHA module needs sessions to work, which are stored in the database (in normal Drupal),
I don't know how this can be solved in Drupal Lite.

DrupalLite uses php standard sessions (no db) so its no problem.

In short: I think your chances are extremely low to get a working image CAPTCHA on Drupal lite.

Hey, I finally did it :-) It wasn't that hard (just a few modifications, e.g. adding "_captchavalidate", renaming "_captcha" to "_captchachallange" and modifying some lines.
If someone needs this I could upload it (or provide a small demo site).

greetings,

Stefan

Try Textimage

wundo's picture

For Image Captcha in Drupal 4.7 you can try to use the Textimage module.
Although I really don't recommend you to do so, as this is a really old version, and doesn't uses the v3 Captcha API.

Can you upload your

oemb29's picture

Can you upload your image_captcha version for 4.7?

Thanks

I need it!!

chrsc's picture

Hey Stefan,

I have a drupal 4.7 install in need of capatcha ;) If you could provide me the source it would be very much appreciated.

Chris

ImageCaptcha for 4.7.x

stborchert's picture

Hey.
It has been a long time since I backported ImageCaptcha (and modified it to my needs). Now jivko666 asked me to upload my work.
Here it is: image_captcha-4.7.x.tar.gz.

Note: it doesn't use the database but get its configuration options right from settings.php (in $conf array).

Sample:

  'image_captcha_image_allowed_chars' => 'aAbBCdEeFfGHhijKLMmNPQRrSTtWXYZ23456789%$#!@+?*',  // used characters
  'image_captcha_font' => 'arial.ttf',  // used font (put this in directory fonts)
  'image_captcha_font_size' => 30,  // font size
  'image_captcha_character_spacing' => 1.25,  // spacing between characters
  'image_captcha_code_length' => 5,  // number of characters to display
  'image_captcha_distortion_amplitude' => 5,  // 1..10
  'image_captcha_dot_noise' => TRUE,  // show noise
  'image_captcha_line_noise' => FALSE,  // show linear noise
  'image_captcha_noise_level' => 3,  // 1..10 noise level (10 is really unreadable)
  'image_captcha_double_vision' => FALSE,  // show each character twice

Fatal error: image_captcha.module on line 21

oemb29's picture

Anyone have the correct version? Try: /admin/user/captcha/image_captcha and display Fatal error: Call to undefined function image_captcha_captcha() in /modules/image_captcha/image_captcha.module on line 21

Fatal error on line 21

oemb29's picture

Fatal error: Call to undefined function image_captcha_captcha() in .../modules/image_captcha/image_captcha.module on line 21

CAPTCHA

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: