Page 1 of 1

Captcha Question

Posted: Sat Sep 30, 2006 10:33 am
by Brian1969
I've had numerous complaints about the captchas on Serendipity. Some users are saying (and I can totally see this) that the "X" looks like a "K" sometimes, and vice-versa, and the "H" also will look like a "K" sometimes.

Is there anyway to edit these images (or install new ones) that make them easier to read? I went through my logs and I have about two or three dozen people per day who try to comment, only to have entered the code wrong, and without fail, it's because they've misread one of these letters.

Then, of course, they send you the ranting email. =D

Posted: Sat Sep 30, 2006 4:02 pm
by d_cee
Hi

you'll find all the images in
plugins/serendipity_event_spamblock

HTH

Dave

Posted: Sat Sep 30, 2006 7:07 pm
by Brian1969
Yes, I know where they are....I would like to change them somehow.

Posted: Sat Sep 30, 2006 10:17 pm
by judebert
Just use any image editor that understands PNG format and replace captcha_x.png and captcha_h.png with your modified images. If you're looking for a good image editor, GIMP is quite powerful and Open Source (free as in speech AND beer).

Posted: Mon Oct 02, 2006 11:00 am
by Brian1969
Ok, did that...but here's another question:

It seems that some of the captcha images are randomly generated somehow. As in different colors. Also, when I look at the "properties" of the images, it shows their location as being something like

"mywebsite/index.php?/plugin/captcha_49657e13f4f0aa1f83f366bf8e015986"

So my new question is, where are these being generated and how, and how can I edit them to make them a little more legible. Because they are sometimes very, very hard to read.

Posted: Mon Oct 02, 2006 11:28 am
by garvinhicking
Hi!

Dynamic captchas are created as PHP code in the plugins/serendipity_event_spamblock/serendipity_event_spamblock.php file, search for "imagecreate".

You can upload different .ttf fonts to the spamblock directory, and adjust the variable inside that file that lists the name of available .ttfs for the code.

HTH,
Garvin

Posted: Mon Oct 02, 2006 11:44 am
by Brian1969
Thanks! That was exactly what I was looking to do, and it worked. =D