Forums

need help in reducing number of character showd in captcha

sameer_mhatre512 26 Dec, 2008
Hello admin,
I need to develop a form with less number of characters in captcha image and also reduce the size of captcha image.

please help me with the same.

regards
Fortune4 team
GreyHead 26 Dec, 2008
Hi sameer_mhatre512,

This isn't adjustable for each form, but you can probably it for the whole site by hacking the chrono_verification.php file.

Bob
sameer_mhatre512 26 Dec, 2008
Hello bob,
I tried doing that . i reduced

$image_size = 5*(abs($image_size[2] - $image_size[0])+7);

form 5 to 3 and the reduced the background.png to 80x26. the problem is the characters get overlapped. so the code isnt visible.

can you please help me where i am going wrong.


regards
Sameer.
GreyHead 26 Dec, 2008
Hi sameer_mhatre512,

There are two different images that can be created by the file. Thhe first with imtype=1 is 'with fonts' the second with imtype=0 is without fonts.

The background.png is only used by the 'without fonts' images so you don't need to change that.

The length of the code is set in lines 19 (for the code) and 21 (for the background image).

The font-size of the 'with fonts' characters is set in line 34.

This is then repeated 5 times to give the image block size. If you only have 3 characters in your code then you can safely reduce this to 3. But only if you've also edited line 19.

I hope this helps.

Bob
This topic is locked and no more replies can be posted.