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

Captcha using TTF & GD

Views: 147,342

Results 101 to 120 of 593
1 Apr 2007, 8:18 AM
#101
woodymon avatar

woodymon

Totally Zenned

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

Captcha using TTF & GD

a_berezin:

Woody!
Certainly it works with Zen Lightbox. And with all other normal mods. :)
That with IH2 I do not know. I didn't try, didn't install, didn't look and didn't touch this :censored:.Thanks for the info. I will install IH2 on the shop where captcha is working, to test. Will report back.

Woody

1 Apr 2007, 8:55 AM
#102
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!
You use any SEFU module?

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

1 Apr 2007, 10:34 AM
#103
woodymon avatar

woodymon

Totally Zenned

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

Re: Captcha using TTF & GD

a_berezin:

Woody!
You use any SEFU module?
No. Although I have been thinking about implementing in the future.

1 Apr 2007, 11:14 AM
#104
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!
Can you give me a fuul list of using contributions? Except ih2.

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

1 Apr 2007, 7:23 PM
#105
ktnaturals avatar

ktnaturals

Zen Follower

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

Re: Captcha using TTF & GD

Jeffey:

SQL! Oh Nooooo!

Though I've done inserts in Admin. I've never hand added/deleted anything.

Any clues as to entries to remove and procedure?
I was hoping someone else would chime in as I have no SQL experience, so if you decide to do what I did, do so at your own risk. :wink:

First, go into phpMyAdmin and back up your DB.

If you look at the captcha.sql file, you can see that you can undo each statement. So, in phpMyAdmin, open your zen databbase. Then go into configuration_group and delete CAPTCHA Validation. Next, go into configuration_group_id and delete a field that has configuration_key value of "ACCOUNT_VALIDATION." Then go to the next statement and delete the next one (I think I sorted the configuration_key field to make it easy to find these entries).

When you get to the DROP TABLE... part, I ran that same command.

Hope this makes sense.

4 Apr 2007, 6:25 AM
#106
kennyoz avatar

kennyoz

New Zenner

Join Date:
Mar 2007
Posts:
21
Plugin Contributions:
0

Re: Captcha using TTF & GD

a_berezin:

Hi KennyOz,
Thank for the decision!

Fixed.
Hi a_berezin,
No worries mate.
I really appreciate your contributions, fantastic work. Keep it up.

Cheers,
KennyOz
Cheap Lego in Australia

4 Apr 2007, 4:43 PM
#107
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

Hi KTNaturals!
Sorry for the delay and thanks for taking the time.

I'm guessing I had a question because it doesn't appear that I have a "configuration_group_id", at least not in the same area as "configuration_group " which had previously found (along with the "CAPTCHA Validation" field.

Still worried since you mention two fields in "configuration_group_id" to delete. My Captcha (the one that just works with log in) is working.

Almost all my mods have gone super smoothly with no issues but this one has me a little bugged since it is fairly involved in terms of files and with my near zero experience my normal method of back tracking after a problem could easily get confused.

I suppose I will eventually have to take the leap and hope that it will work once I delete the one field found and hope that full functionality comes with this improved Captcha.

Hey! you've got more PHP, etc. under your belt than me! Like you, I'm learning all of the involved software/languages as I go. Fortunately a lot of it is intuitive or, in Zen's case, easy.

Any other thought always appreciated and thanks again for jumping in.

8 Apr 2007, 7:18 PM
#108
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

Ok, I'm back.

I have installed the new mod CAPTCHA as discussed and though it appears others have similar problems I am unable to uncover the solution in the postings.

Problem is that though the image (letters) and box for CAPTCHA showed the first time I went to contact_us they no longer show either there or at login. The validation box shows as does the redraw button but when you redraw the outline of the box shows briefly with the generic image icon but does not load and outline disappears again.

The only thing I can think is my previous issue with not finding a particular field (think that's what you call it) in SQL database. See my procedure:

I did removed CAPTCHA Validation from configuration_group but I did not have a configuration_group_id even though the old CAPTCHA was working.

Before installing this new version I reloaded the contact page and this appeared at bottom:'
Files not overwritten yet but when reloaded login this appeared at bottom (i've replaced my SQL database name):

1146 Table 'mytablename'.TABLE_ANTI_ROBOT_REGISTRATION' doesn't exist
in:
[DELETE FROM TABLE_ANTI_ROBOT_REGISTRATION WHERE timestamp < '1176050552' OR session_id = '55e5ca3e81faa0bf28215325ec74ca7e']

which I assumed was a call from one of the files I had yet to replace with new CAPTCHA versions. ?

CAPTCHA option did not show in Zen Admin which convinced me I had removed previous version.

Installed all new CAPTCHA files (except French language if that matters) and ran SQL patch in Admin (I have results if needed but no errors) and CAPTCHA options showed once again in Admin.

I have tried changing picture types in Admin already and same result of the image box not drawing.

Again, "Enable Picture" redraw button and "Validation Code" block do show properly just not letter/image box.

All help appreciated!!

8 Apr 2007, 7:21 PM
#109
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

One last thing to help solve.

I did run the captcha_test and the box and default image icon (not letters) shows only there as well. Only difference is that the box and icon show.

8 Apr 2007, 7:27 PM
#110
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

Maybe this is it.

There is a "anti_robotreg" table in SQL, do I delete this? Appears to have been created with old CAPTCHA but don't want to break anything.

I'll shut up and wait now!

8 Apr 2007, 8:08 PM
#111
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

Deleting "anti_robotreg" table in SQL didn't do anything to help. Put it back in.

8 Apr 2007, 8:32 PM
#112
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

Realize I'm talking to myself but the more info. the better.

I mentioned test produced empty box with generic image icon.

When I go to captcha_img.php the image with letters does shows and will change when reloaded.

I loaded the captcha_img.php, test and debug files at the same level as the includes folder. Almost seems like the captcha_img.php is in the wrong place.

But what do I know?!? Just more food for thought (YOU ARE THINKING AREN"T YOU?!!)

9 Apr 2007, 1:44 AM
#113
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

Yet again...

I find that if I, as a "customer", quit the browser and restart I see the CAPTCHA field and can send a message. However, if I go to send another message the block is gone again.

Something to do with the "session".

Again, I'm making guesses with little technical background so if it doesn't make sense or seems way off, that's why.

Frustrating!

9 Apr 2007, 4:06 AM
#114
woodymon avatar

woodymon

Totally Zenned

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

Re: Captcha using TTF & GD

Jeffey:

Maybe this is it.

There is a "anti_robotreg" table in SQL, do I delete this? Appears to have been created with old CAPTCHA but don't want to break anything.

Hi Jeffrey,

Yes, it is for the older version captcha mod (by funkey and other versions). If you think you might want to revert back to previous version won't hurt anything if you leave it in the DB.

Question: Do you have Image Handler 2 mod installed?

And it is ok to talk to yourself on these boards and to think out loud. Something you post with during your "conversation" might stimulate an idea, solution/recommend from someone else.

Wish I could help you but I have yet to solve my issue.

Woody

9 Apr 2007, 4:41 AM
#115
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

Sorry to hear that, your posts where the ones I tried to track with and was kinda hoping your issues would get/be fixed.

Yeah, the SQL delete didn't work. Meant to follow up with that information. I put it back since it didn't help.

No, I don't have Image Handler 2 mod installed.

Elusive and a real hassle. I've been literally taking guesses all day long with little else done. It's a must for me to figure it out. Maybe if we both keep knocking they shut us up with a solution! Thanks.

9 Apr 2007, 5:13 AM
#116
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

This has something to do with the generation of the URL and or combined with the session information.

The generated URL for captch_img.php appears to be in the format of http://www.
The image wont load there but it will with just http://
Difference being the elimination of the "www." part.

Whaa?

I'm tweaking things that LOOK (that's almost all I'm skilled to do now!) like they will fix the generated URL but no luck.

Give you any ideas?

9 Apr 2007, 5:21 AM
#117
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

Sorry so many posts, things keep popping up. Just to clarify last post, here is the debug output:
var $img_href = 'http://www.mysite.com/zencart/captcha_img.php?zenid=(string of numbers/letters here)';

Error message if you go there.

But, take our the "www." and CAPTCHA text block shows up.

How/where does the captcha_img.php ref URL get generated?

9 Apr 2007, 12:30 PM
#118
woodymon avatar

woodymon

Totally Zenned

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

Re: Captcha using TTF & GD

Jeffey:

Sorry so many posts, things keep popping up. Just to clarify last post, here is the debug output:
var $img_href = 'http://www.mysite.com/zencart/captcha_img.php?zenid=(string of numbers/letters here)';
Error message if you go there.
But, take our the "www." and CAPTCHA text block shows up.
How/where does the captcha_img.php ref URL get generated?
Jeffey, That may give Andrew some ideas.

I just tried deleting www but I observed same error as I've been observing all along:

The image “http://domain.com/shop/captcha_img.php” cannot be displayed, because it contains errors.

As an update, I now have two accounts on the very same server. Andrew's captcha mod runs on the account with the fresh ZC 1.37 install. But does not run on the ZC 1.37 install with many mods installed (see error above). So that possibly points to a mod compatibility issue. Thus I was asking you and everyone else if they had IH2 installed.

I have IH2 installed on the shop where captcha is not working, but IH2 is not installed on the shop which captcha is working). But your error might a bit different than mine, not sure.

If you would like to PM me a list of mods you have installed, I will compare with my mod list. Maybe that will help narrow down the possibilities.

A week ago or so I sent Andrew a list of mods I have installed (as requested). But I have not heard back from him since. Maybe he is on vacation or he looked at the long list of mods and dropped dead. :wink2:

Woody

10 Apr 2007, 10:58 PM
#119
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

Hey Woody,
Sorry for delay, along with everything else I've lost 2+ 16 hour days on computer issues! Back up again.

Here's my list but I must confess that I haven't cleaned up my working stuff yet so I may have missed something or names might not be exact, just ask if you need clarification. I usually clean everything up and make it easy reference for later once I'm completely done with a project like this.

Still surprised no one has been through similar stuff and has solved it.

add_customers_from_admin_1.0
BACKUP_MYSQL_ADMIN_PLUGIN-1.2.0.10a
credit_card_images_for_payment_page_1.0.zip
edit_orders
EmailAddressExporter
ask a question
Contact_Us - Subject Mod
css-flyout-categories-v1.3.0.3.1
login_box_1.4.1
captcha (whatever this one is called)
shipping_insurance_2b
call_shipper
User Tracking v.1.3.6.2
zc_subsilver_buttons_1-0
Zen Lightbox

I've also been working a little with monoslideshow but that's not integrated and kept separate save for the calls to the Zen product images so don't think it could have an effect and I think I did that AFTER I had this problem.

11 Apr 2007, 9:11 PM
#120
jeffey avatar

jeffey

Zen Follower

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

Re: Captcha using TTF & GD

Still working this unsuccessfully for yet another day Woody. I saw your last post regarding switching to this CAPTCHA and PHP version.

I'm having my problem with PHP version 4.4.4 which I think you have running successfully. ???

I can occassionally get the picture to show up but it is so infrequent and I'm trying so many things with my limited knowledge that I can't really even tell what change makes it appear once.

Always disappears on reload, etc. so maybe it doesn't matter.

This one sucks, can't go live until I figure it out and I'm getting worried that I wont after all these weeks of work. No sense putting it up if I get blacklisted when people use me to spam.