Captcha Question

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Captcha Question

Post 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
Brian
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi

you'll find all the images in
plugins/serendipity_event_spamblock

HTH

Dave
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Post by Brian1969 »

Yes, I know where they are....I would like to change them somehow.
Brian
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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).
Judebert
---
Website | Wishlist | PayPal
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Post 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.
Brian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Post by Brian1969 »

Thanks! That was exactly what I was looking to do, and it worked. =D
Brian
Post Reply