Mibew Messenger Community

General => Support => Topic started by: buddahboy on December 17, 2013, 05:35:52 PM

Title: (RESOLVED) Can the CAPTCHA image be larger?
Post by: buddahboy on December 17, 2013, 05:35:52 PM
Good day - Having the CAPTCHA feature is great, thanks!  That being said, I'm finding that the CAPTCHA image is rather difficult to make out - are there any options to use a different size or style of CAPTCHA? 

Thanks much
Ron
Title: Re: Can the CAPTCHA image be larger?
Post by: faf on December 17, 2013, 09:27:19 PM
The geometry and the style of the CAPTCHA image in Mibew Messenger 1.6.x is hardcoded in libs/captcha.php file (in draw_captcha function). So, if you want to change the size of the image or its appearance, you should change it there.
Title: Re: Can the CAPTCHA image be larger?
Post by: buddahboy on December 17, 2013, 09:30:17 PM
thanks again faf - appreciate it
Title: Re: Can the CAPTCHA image be larger?
Post by: smic717394 on April 22, 2014, 01:23:41 AM
The geometry and the style of the CAPTCHA image in Mibew Messenger 1.6.x is hardcoded in libs/captcha.php file (in draw_captcha function). So, if you want to change the size of the image or its appearance, you should change it there.

This only makes the image larger but the font inside is still small. What class control the size of the font?
Title: Re: (RESOLVED) Can the CAPTCHA image be larger?
Post by: faf on April 22, 2014, 07:36:44 AM
There are no classes in Mibew 1.6.x. Only functions.  :-\

Everything related to CAPTCHA is in the libs/captcha.php file. And according to the official PHP documentation (http://jp2.php.net/manual/en/function.imagestring.php) the font size used there is the largest one.

Probably, you can try to use imagettftext (http://jp2.php.net/manual/en/function.imagettftext.php) function instead of imagestring.
Title: Re: (RESOLVED) Can the CAPTCHA image be larger?
Post by: smic717394 on April 28, 2014, 01:14:04 AM
Thank you. replaced with the line bellow and not its ok. Thank you.
    Imagettftext($image, 16, 0, 30, 22, $white, $font, $security_code);