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
Views: 147,342
Zen Follower
I have Wamp5 so im going to search on thier site to see about it... I will post later:dontgetit
Thanks,
Chad
Totally Zenned
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
Zen Follower
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
Zen Follower
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.
Zen Follower
Yes woodyman streightened me out! Thanks for the help!! :smile:
Zen Follower
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
Deceased
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.
Zen Follower
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.
Zen Follower
That was the problem!!! I will have to write this in my personal tutorial on a fix issue. Thanks once again!!
Zen Follower
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.
Totally Zenned
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
Zen Follower
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:
Totally Zenned
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
Zen Follower
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.
Totally Zenned
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.
Zen Follower
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.
Zen Follower
By the way, the professor comment was a compliment.
I still appreciate you help in the past.
Zen Follower
Thank you all and thank you Andrew!!!:clap:
Deceased
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.
Zen Follower
Thanks for the nod Andrew, glad to know it.
This one is fantastic and looks great too.
Tell staff why this post should be reviewed.