This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Captcha Transparent


  1. djones
    Member

    Possible to make the captcha background color transparent? This way I could color forms different colors without having the white captcha block showing

    Posted 13 years ago #
  2. redityo

    It's only possible to change the background color for "internal captcha", but you need to use an image for this.
    You can create an image with a color same like your website and save it as JPG file. After that, upload the image file into machform folder and edit your 'captcha.php' file inside machform folder. You'll see these code inside that file :

    $fonts = array('lib/php-captcha/VeraSeBd.ttf','lib/php-captcha/VeraBd.ttf');
       	$captcha = new PhpCaptcha($fonts, 200, 60);
       	$captcha->Create();

    then change it to

    $fonts = array('lib/php-captcha/VeraSeBd.ttf','lib/php-captcha/VeraBd.ttf');
       	$captcha = new PhpCaptcha($fonts, 200, 60);
    	$captcha->SetBackgroundImages('mycolor.jpg');
       	$captcha->Create();

    That would change capcha background with "mycolor.jpg"


    MachForm Support

    Posted 13 years ago #

RSS feed for this topic

Reply