Customizing the captchas

Creating and modifying plugins.
Post Reply
Thomas
Regular
Posts: 130
Joined: Tue Sep 21, 2004 2:00 pm
Location: Stockerau/NÖ/A
Contact:

Customizing the captchas

Post by Thomas »

Hi,

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

Regards, Thomas
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post 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.
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Post by wesley »

Hehe, indeed the letters and numbers aren't sometimes very readable by a
regular human! :shock: :wink:
I make s9y plugins, too.
My s9y blog depends on them. :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply