Forums / All Other Contributions/Addons / Captcha using TTF & GD

Captcha using TTF & GD

Views: 147,342

Results 261 to 280 of 593
20 Jan 2008, 8:14 PM
#261
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Captcha using TTF & GD

I just moved to a different host. Now, I'm having a small font problem on my main site.

http://www.ktnaturals.com/index.php?main_page=contact_us

What's strange is that I have a test store in just a directory under the root. That one's displaying fine.
http://www.ktnaturals.com/testshop/index.php?main_page=contact_us

The 2 hosts run different versions of PHP, Apache, and MySQL. But that doesn't explain why my testshop displays it correctly... I wouldn't worry so much, but I know some people are going to complain that they can't read it...

I compared the captcha files for both, and I checked the settings, and they're identical.

The only difference is the database... I normally apply the same updates for both stores, so I don't even know where to check...

I tried all 3 image formats, as well as adjusting the font size. Nothing works. I seemed to recall an update that I applied to this mod a while back that fixed this issue at my old host. Maybe I need to undo it? Can someone point me in the right direction? Thanks!

20 Jan 2008, 8:39 PM
#262
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Captcha using TTF & GD

Figured it out... Somehow, the fonts file was missing with the font file. I re-uploaded it, and all is well.

21 Jan 2008, 7:04 AM
#263
wittymom avatar

wittymom

New Zenner

Join Date:
Sep 2005
Posts:
51
Plugin Contributions:
0

Re: Captcha using TTF & GD

phazlee:

Hi all I am getting this bunch of errors when I try to install the sql from admin.
Need help in resolving this fast. Thanks.

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'true', 'false'),'), (NULL, 'Image Type', 'CAPTCHA_IMG_TYPE', 'png', 'CAPTCHA Ima' at line 1
in:
[INSERT INTO zen_sgconfiguration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES (NULL, 'Code Length', 'CAPTCHA_CODE_LENGTH', '6', 'Verification Code length', @configuration_group_id, 1, NOW(), NULL, NULL), (NULL, 'Image Width', 'CAPTCHA_IMG_WIDTH', '240', 'CAPTCHA Image Width', @configuration_group_id, 2, NOW(), NULL, NULL), (NULL, 'Image Height', 'CAPTCHA_IMG_HEIGHT', '50', 'CAPTCHA Image Height', @configuration_group_id, 3, NOW(), NULL, NULL), (NULL, 'Chars minimum size', 'CAPTCHA_CHARS_MIN_SIZE', '0.6', 'Chars minimum size (1.0=Image Height)', @configuration_group_id, 4, NOW(), NULL, NULL), (NULL, 'Chars maximum size', 'CAPTCHA_CHARS_MAX_SIZE', '0.8', 'Chars maximum size (1.0=Image Height)', @configuration_group_id, 5, NOW(), NULL, NULL), (NULL, 'Corner of rotation', 'CAPTCHA_CHARS_ROTATION', '23', 'Chars Corner of rotation', @configuration_group_id, 6, NOW(), NULL, NULL), (NULL, 'Shadow Chars', 'CAPTCHA_CHARS_SHADOW', 'true', 'Generate Shadows for Characters', @configuration_group_id, 7, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Image Type', 'CAPTCHA_IMG_TYPE', 'png', 'CAPTCHA Image Type', @configuration_group_id, 10, NOW(), NULL, 'zen_cfg_select_option(array('png', 'jpeg', 'gif'),'), (NULL, 'Create Account page', 'CAPTCHA_CREATE_ACCOUNT', 'true', 'Activate Validation on Create Account page', @configuration_group_id, 21, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Contact Us page', 'CAPTCHA_CONTACT_US', 'true', 'Activate Validation on Contact Us page', @configuration_group_id, 22, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Tell A Friend page', 'CAPTCHA_TELL_A_FRIEND', 'true', 'Activate Validation on Tell A Friend page', @configuration_group_id, 23, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Links Submit page', 'CAPTCHA_LINKS_SUBMIT', 'true', 'Activate Validation on Links Submit page', @configuration_group_id, 24, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Write Review page', 'CAPTCHA_REVIEWS_WRITE', 'true', 'Activate Validation on Write Review page', @configuration_group_id, 25, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I am having the same problem -- any help on this error? ZC v1.3.7, MySQL client version: 4.1.21

Mommy Haven Forum for Women
http://www.mommyhaven.com/

"Every child comes with the message that God is not yet discouraged of man" --Tagore

21 Jan 2008, 2:02 PM
#264
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Location:
Dark Side of the Moon
Posts:
986
Plugin Contributions:
0

Re: Captcha using TTF & GD

WittyMom:

Did you copy & paste or use the upload option when you tried to apply the sql patch? Copy & paste is the best way to do this.

21 Jan 2008, 9:31 PM
#265
wittymom avatar

wittymom

New Zenner

Join Date:
Sep 2005
Posts:
51
Plugin Contributions:
0

Re: Captcha using TTF & GD

No, copy & paste won't work with this one because it calls in fields that it creates in other tables.

I had modify the script myself. The problem(s) were:

  1. Field names weren't encased in these
  2. Field values weren't encased in 'these' -- namely 'NULL' and the values for "Order"

The first part of the script ran fine where it added a field to the configuration_group, so I went and got the ID for the new field and in subsequent code I replaced:

@configuration_group_id

with..

'ID#' (the actual #)

...I also had to add the prefix to "configuration"

I have no idea why only a couple of us had this problem! I got it from the same download screen everyone else did. I don't know much about SQL versions, but maybe that had something to do with it.

Mommy Haven Forum for Women
http://www.mommyhaven.com/

"Every child comes with the message that God is not yet discouraged of man" --Tagore

22 Jan 2008, 3:12 AM
#266
nighthawk avatar

nighthawk

New Zenner

Join Date:
Jan 2008
Posts:
1
Plugin Contributions:
1

Re: Captcha using TTF & GD

Shalom all,

I installed ths mod and it worked great on every page it's supposed to except for the contact_us page which it simply loaded a blank page on. When I uninstalled it the page was there again... Has anyone else had this problem and, if so, how did you fix it?

Shalom.
Frank

24 Jan 2008, 7:38 AM
#267
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

wittymom:

No, copy & paste won't work with this one because it calls in fields that it creates in other tables.
Copy/Paste & Execute work fine with this and other sql-scripts.
Upload & Execute don't work with magic quotes in 1.3.7.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Jan 2008, 10:51 PM
#268
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Captcha using TTF & GD

Just a FYI.

Running cpatcha mod on ZC 1.3.7.1

Just updated host to Apache 2.2.6 and PHP 5.2.5 (and Apache and PHP now run as CGI and suphp and suhosin installed).

The captcha on contact form still works fine ;-)

Thanks Andrew.

P.S. So how well are the techniques used by this mod holding up?

Recent reports suggest Yahoo's captcha has possibly been cracked for a 35% success rate. (success defined from perspective of the spammer... 35% is considered very good accuracy)

http://www.informationweek.com/internet/showArticle.jhtml?articleID=205900620
http://www.pcworld.com/article/id,141545-c,yahoo/article.html

26 Jan 2008, 11:21 PM
#269
stevefriedman71 avatar

stevefriedman71

Zen Follower

Join Date:
Sep 2006
Posts:
269
Plugin Contributions:
0

Re: Captcha using TTF & GD

Does anyone has CAPTCHA updated for 1.3.8a?

27 Jan 2008, 10:06 AM
#270
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

stevefriedman71:

Does anyone has CAPTCHA updated for 1.3.8a?

Sure. If you will simply follow the instructions to change the files, everything will be fine in 1.3.8.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

28 Jan 2008, 4:59 AM
#271
stevefriedman71 avatar

stevefriedman71

Zen Follower

Join Date:
Sep 2006
Posts:
269
Plugin Contributions:
0

Re: Captcha using TTF & GD

what instructions??? i still have the issue i posted in post #246...
it worked just fine in 1.3.7 and now it doesn't

29 Jan 2008, 4:25 AM
#272
tmike avatar

tmike

New Zenner

Join Date:
Jan 2008
Location:
Texas, USA
Posts:
5
Plugin Contributions:
0

Re: Captcha using TTF & GD

i have updated this to support ZC1.3.8a and Links Manager 3.3.1, and am sending it to the OA

29 Jan 2008, 6:40 AM
#273
creativei avatar

creativei

New Zenner

Join Date:
Jan 2008
Posts:
20
Plugin Contributions:
0

Re: Captcha using TTF & GD

Dear Andrew,
I'm facing a problem in shop after installing the Captcha Mod,
the images are not visible, i'm running the latest zen cart and latest captcha mod,
i'm hosted with bluehost running php5, my test rather live site is http://eshoppe.flahzasystems.com
Could you help me to over come this issue

29 Jan 2008, 11:04 PM
#274
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Captcha using TTF & GD

I installed this and it works great with one SMALL issue.. The input is supposed to be case sensitive, but in my testing it's not.. Is there something I need to tweak to adjust this? Doesn't matter if I enter upper of lowercase letters.. As long as I enter the RIGHT letters and numbers, it will accept the input as valid regardless of whether I entered them with the right case..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

29 Jan 2008, 11:13 PM
#275
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Captcha using TTF & GD

If you look closely, it says "case insensitive." I changed it to say "not case sensitive."

30 Jan 2008, 12:04 AM
#276
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Captcha using TTF & GD

KTNaturals:

If you look closely, it says "case insensitive." I changed it to say "not case sensitive."I appreciate your response.. Yes I realized how the text reads.. (which is what prompted my inquiry) If there is no other solution, then I certainly will edit the form and remove the text altogether. (since it's not case sensitive, IMO it doesn't need to be there

However, it would be nice if this WAS case sensitive.. It helps increase the security of my forms..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

30 Jan 2008, 9:45 AM
#277
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

DivaVocals:

However, it would be nice if this WAS case sensitive.. It helps increase the security of my forms..
Are you confident that you really need? The more complex form of the less chance that it will use the normal visitors.

I can add an option in configuration.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

30 Jan 2008, 10:08 AM
#278
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

Hi,

creativei:

Dear Andrew,
I'm facing a problem in shop after installing the Captcha Mod,
the images are not visible, i'm running the latest zen cart and latest captcha mod,
i'm hosted with bluehost running php5, my test rather live site is http://eshoppe.flahzasystems.com
Could you help me to over come this issue

I can't see your site - http://eshoppe.flahzasystems.com. "Site not found".

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

30 Jan 2008, 1:01 PM
#279
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Captcha using TTF & GD

a_berezin:

Are you confident that you really need? The more complex form of the less chance that it will use the normal visitors.

Completely agree.

IMHO I don't see any need for case sensitive option. I have found the module works just fine and keeps bots from submitting my forms without case sensitivity.

Providing a case option is just one layer of confusion that my customers and shop owners whom I support don't need.

The string stating the code is NOT case sensitive is just fine and can be easily manipulated via a text editor if needed. I have yet to hear from a customer whom did not comprehend the instructions.

Invest your time in more meaningful efforts ;-)

Woody

30 Jan 2008, 3:30 PM
#280
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Captcha using TTF & GD

a_berezin:

Are you confident that you really need? The more complex form of the less chance that it will use the normal visitors.

I can add an option in configuration.Honestly, if it were up to me, I would just change the bloody text on the alert and call it a day.. However the client inquired about this.. and I just wanted to have a complete answer when I speak to him.. I will try to "talk him down".. He's VERY difficult.. sigh Phrases like "Ease of Use", "Best Practices" and "User Experience" don't seem to mean much to him, so instead of "making up" an answer, I just wanted to get an answer on this from here before I go back to him with a response/solution. It was HARD enough to talk him into using this mod.. (he thinks the security image is "ugly" sigh) Now he's asking about this. sigh

You don't need to make any changes:smile:. I just wanted to know if there was something I missed in the configuration. Apparently the answer is that the text on the forms is a typo.:smile: No worries..

Woodymon:

Completely agree.

IMHO I don't see any need for case sensitive option. I have found the module works just fine and keeps bots from submitting my forms without case sensitivity.

Providing a case option is just one layer of confusion that my customers and shop owners whom I support don't need. Not debating the merits of this.. However, I asked the question because my client asked ME the question. I wanted to get an answer before I gave him a response.. It's HIS website.. If he INSISTS on this feature I wanted to know if there was even an option for it..

Woodymon:

The string stating the code is NOT case sensitive is just fine and can be easily manipulated via a text editor if needed. I have yet to hear from a customer whom did not comprehend the instructions.I realize that.. Again I was asking because my client asked me.. I could have "made up" an answer for him or told him an answer based on what I thought he should do, but I don't work like that. So I chose to at least make the effort to get an answer to his question.

Woodymon:

Invest your time in more meaningful efforts ;-)

WoodyI consider customer satisfaction a meaningful effort. :blush: But thanks for your response.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.