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

Captcha using TTF & GD

Views: 147,342

Results 141 to 160 of 593
27 Apr 2007, 12:37 AM
#141
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Captcha using TTF & GD

I have Wamp5 so im going to search on thier site to see about it... I will post later:dontgetit

Thanks,
Chad

27 Apr 2007, 12:54 AM
#142
woodymon avatar

woodymon

Totally Zenned

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

Re: Captcha using TTF & GD

oxicottin:

I have Wamp5 so im going to search on thier site to see about it... I will post later:dontgetit
GD is built into recent versions of PHP. You just need to enable it.

To enable gd you will need to edit the php config file php.ini.

In your case, start wamp, and left click on the wamp tray icon -> config files -> php.ini

to enable gd2 find:
;extension=php_gd2.dll

to enable it you need to remove the semi-colon in front, so change it to:
extension=php_gd2.dll

Then save the file and restart apache for the new settings to take effect.

-Woody

27 Apr 2007, 1:07 AM
#143
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: Captcha using TTF & GD

I was reading that on wamp5 forum when you posted but the newest one you can take it from an extension in a list ect. anyway long story short It works !!!

Thanks,
Chad

27 Apr 2007, 2:41 PM
#144
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Captcha using TTF & GD

Got your PM Chad but it looks like Woody has done it again and got you to working status. He's always a great help.

I'm not there yet but I hope my point, reiterated by Woody, helped.

27 Apr 2007, 8:41 PM
#145
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: Captcha using TTF & GD

Yes woodyman streightened me out! Thanks for the help!! :smile:

27 Apr 2007, 9:33 PM
#146
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: Captcha using TTF & GD

Well I uploaded the Captcha to my website and inserted the SQL. everything is working except there is no picture in the box? It says "Enable this picture" I went into the admin/configuration/captcha and tried jpg,png and gif. What can I do to fix this?

Thanks,
Chad

27 Apr 2007, 9:51 PM
#147
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

oxicottin:

everything is working except there is no picture in the box?
What box???

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

27 Apr 2007, 9:51 PM
#148
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Captcha using TTF & GD

Read my PM to you about this Chad and my first note aboout #121 in this thread (which says the same thing but maybe less clear then my PM), that's all I had to do to solve the same problem.

Remove the two lines:

ob_start() and ob_end_clean()

from the Captcha_img.php and try again.

I'm sure the forum can help with any other potential issues but this fix has worked for many including myself and the Woodman.

27 Apr 2007, 9:56 PM
#149
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: Captcha using TTF & GD

That was the problem!!! I will have to write this in my personal tutorial on a fix issue. Thanks once again!!

27 Apr 2007, 10:12 PM
#150
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Captcha using TTF & GD

Once you get done, I (and everyone else!) suggest you download everything despite how long it takes so you always have the local copy. That way when you make tweaks here and there that go wrong you can always put back the working copy/file.

In my case when I moved the site to an upper level in the directory I kept the old one two and when I make changes I use the old site as a test site. Changes I successfully make go in both so they are always relatively identical (with the exception of products which I don't worry too much about as long as some are there to play with). This, too, is usually the advice from the top Zenners.

Finally, I keep a copy of the add-ons as downloaded so I can also compare to see what changes I've made. I started a log type process but it's too hard for me to keep it organized enough for me to track stuff down the road. This copy is good too if you want to remove the add-on for conflict, etc., it provides the map of the files you need to remove or edit out changes directed by the add-on.

I'm a little more anal than most probably but if it prevents a huge problem in the future it will pay off.

Food for thought.

27 Apr 2007, 10:26 PM
#151
woodymon avatar

woodymon

Totally Zenned

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

Re: Captcha using TTF & GD

Jeffey:

I'm a little more anal than most probably .

Probably?

Chad's running his shop on his own server. So no need to download ;-)
But maybe backup, yes. But if he is running his own server he already knows about backing up.

Woody

27 Apr 2007, 10:29 PM
#152
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: Captcha using TTF & GD

No I agree! I keep a copy of everything! Thats why im writing a tut on everything I have done. I am working on what we just did right now and saw you posted. Anyway this way if someone else has the same problem I had I can look it up in my tut and and help them fix it.:blink:

27 Apr 2007, 10:34 PM
#153
woodymon avatar

woodymon

Totally Zenned

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

Re: Captcha using TTF & GD

oxicottin:

That was the problem!!! I will have to write this in my personal tutorial on a fix issue. Thanks once again!!

Congratulations on getting the mod working.

Be sure to thank Andrew!

Note the ob_ issue doesn't apply to everyone. It is yet unknown which variables are contributing to the issue.

I have two accounts with shops on the very same host machine. One shop displays the captcha image just fine, without removing the output buffer references. The other shop required me to remove the two references.

Rocket Science? No. Out of my league? Definitely.

But as long as it works.

Woody

27 Apr 2007, 10:34 PM
#154
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Captcha using TTF & GD

Couldn't resist the dig eh Woody? Not all of us are professors like you!

Yeah, knew he was offline but already talked via PM about plans to do similar top level move so threw it out there.

27 Apr 2007, 10:46 PM
#155
woodymon avatar

woodymon

Totally Zenned

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

Re: Captcha using TTF & GD

Jeffey:

Couldn't resist the dig eh Woody? Not all of us are professors like you!

Yeah, knew he was offline but already talked via PM about plans to do similar top level move so threw it out there.

Whatever. Please quit repeatedly spouting about in this thread that you discovered the idea to remove the "ob_" statements.

La de da.

27 Apr 2007, 11:00 PM
#156
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Captcha using TTF & GD

Jeez man, what's up with you. One mistaken PM and I'm hated.

I did nothing of the kind, only tried to point out a solution and noted my entry as reference which was a posted that showed I had solved MY issue as I was told was a nicety. I believe I credted you and I think the original post/solution was from someone else.

Didn't realize the history of the solution was necessary. Clearly I'm a newbie and not capable of solving this kind of stuff on my own.

Maybe I should just sit back and watch, not worth getting jumped on if I don't follow procedure or whatever.

Later.

27 Apr 2007, 11:10 PM
#157
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Captcha using TTF & GD

By the way, the professor comment was a compliment.

I still appreciate you help in the past.

27 Apr 2007, 11:16 PM
#158
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: Captcha using TTF & GD

Thank you all and thank you Andrew!!!:clap:

28 Apr 2007, 2:00 AM
#159
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

Woody!
I think I know why ob_ does not work on some hostings.
And I think better remove this from captcha_img.php

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

28 Apr 2007, 2:21 AM
#160
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Captcha using TTF & GD

Thanks for the nod Andrew, glad to know it.

This one is fantastic and looks great too.