Page 1 of 1

Customizing the captchas

Posted: Wed Aug 03, 2005 3:44 am
by Thomas
Hi,

is there a way to customize the captcha layout? I mean the font, the picture generated etc.

Regards, Thomas

Posted: Wed Aug 03, 2005 4:06 am
by MySchizoBuddy
I would liek to know too. cause the font is a pain to read. I find it really hard to figure out whether its a letter of a number.

Posted: Wed Aug 03, 2005 4:46 am
by wesley
Hehe, indeed the letters and numbers aren't sometimes very readable by a
regular human! :shock: :wink:

Posted: Wed Aug 03, 2005 5:25 pm
by garvinhicking
You can customize the fonts by editing the serendipity_event_spamblock.php file. In line 552 you can see this:

Code: Select all

$fontfiles = array('Vera.ttf', 'VeraSe.ttf', 'chumbly.ttf', '36daysago.ttf');
You can replace that with your fonts, and you need to put the .ttf files into the spamblock directory.

Changing the created picture is also only possible in PHP scope.

Regards,
Garvin