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

Captcha using TTF & GD

Views: 147,342

Results 561 to 580 of 593
27 Dec 2011, 11:32 PM
#561
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,449
Plugin Contributions:
3

Captcha using TTF & GD

Was this project abandoned? There are few questions not answered.

Also, is there going to be a PHP5 upgrade for this module? It was working just fine before my server was upgraded to PHP 5.2.17.

IDEASLady
IDEAS Creative Studio

Your image... our business!

10 Mar 2012, 6:30 PM
#562
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,727
Plugin Contributions:
56

Re: Captcha using TTF & GD

I think it's just session handling in 5.2.17 that makes this module not work - it works fine on my PHP 5.3.10 site but fails on my 5.2.17 site.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

11 Apr 2012, 3:18 AM
#563
jimproz avatar

jimproz

New Zenner

Join Date:
Mar 2008
Posts:
30
Plugin Contributions:
0

Re: Captcha using TTF & GD

Hi! I just installed CAPTCHA image using GD library and true type fonts_telephone not required v. 3.0 for Zen Cart version 1.5

Everything seemed to install fine. Captcha is working on 'Contact Us' page just fine, but when I click on 'Create an Account' page, it doesn't show the captcha at all. I am using the All_Businesss Zen Cart template. Any idea what I may be doing wrong? I figure if the Contact Us page is showing it and working correctly, it's installed correctly and I just have something not set right. Any help would be much appreciated. Thanks.

15 Apr 2012, 4:11 AM
#564
awhfy99 avatar

awhfy99

Zen Follower

Join Date:
Feb 2007
Location:
Burleson. Texas
Posts:
196
Plugin Contributions:
0

Re: Captcha using TTF & GD

jimproz:

Hi! I just installed CAPTCHA image using GD library and true type fonts_telephone not required v. 3.0 for Zen Cart version 1.5

Everything seemed to install fine. Captcha is working on 'Contact Us' page just fine, but when I click on 'Create an Account' page, it doesn't show the captcha at all. I am using the All_Businesss Zen Cart template. Any idea what I may be doing wrong? I figure if the Contact Us page is showing it and working correctly, it's installed correctly and I just have something not set right. Any help would be much appreciated. Thanks.

If you are using zc1.50, then I would try

captcha_verification_antirobot_registration_1.4_for_zc_v1.5.0

as found in the uploads section. I could not get the one you are using to work either.

Dennis
www.stampdays.com
Over 80,000 stamps and still growing!

23 May 2012, 10:17 PM
#565
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: Captcha using TTF & GD

Hi wondering if anyone would have an insight into an issue I am experiencing with this, other wise great, module.

I have install it on a Zen Cart v1.5 store and it was, still is, working great. When I use images for my buttons.
I am trying to keep load times to a minimum and every Kb counts sometime, so I swapped over to css buttons. Now the redraw button for the captcha image does nothing.
It maybe nothing to do with this module and everything to do with FEC, which I now think is overkill. Really only use the login and create account part of it.
As I am writing this I am getting the feeling I may be answering my own question. Uninstall FEC and see I the issue remains.

Any insight would be great guy and girls. I'll leave this on as a question and post back if uninstalling FEC clears it.
Just in case other need the answer too.

No It Made No Difference. FEC Disabled or FEC Uninstalled. The css button still did not redraw the captcha image.

Today I am trying something different. Read the install.txt Read the FAQ Read the forum for answers; Then Install the mod. ;-)
AML Candles

24 May 2012, 5:40 AM
#566
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Captcha using TTF & GD

I am installing it now, and noticed that this mod for V1.5 that is said to build on the original Captcha TTF mod for 1.39, but there is a file that is different from the latest version for 1.39 mod.

/includes/classes/captcha.php

Using a merge tool to compare, I noticed that the old copy I had was V2.9; while the copy that is provided in the V1.5 Captcha mod is V2.8;

Exists in V2.9 in line 094 is (which is missing in the V2.8 copy)

    $redraw_button = zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strpos($redraw_button, $redraw) === false) {
    	$redraw_button = str_replace('<span ', '<span ' . $redraw, $redraw_button);
    }
    return $redraw_button;

I am not sure if this has any effect in anything, but I thought I'll just point out here while I continue to work to upgrade my ZC to 1.5.

24 May 2012, 6:36 AM
#567
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Captcha using TTF & GD

Also.. on Readme.txt of V2.9 the changelog recorded:

v 2.9 11.08.2008 15:01

  1. Bug fix - use zen_image_button with IMAGE_USE_CSS_BUTTONS == 'yes';
  2. Update to support ZC1.3.8a and Links Manager 3.3.1 - thanks to t. mike howeth
  3. corrected text in /includes/languages/english/extra_definitions/captcha.php - thanks to t. mike howeth

Another file spotted to be different:
/includes/modules/pages/links_submit/header.php.php

24 May 2012, 9:01 PM
#568
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: Captcha using TTF & GD

Not really sure if this relates to the issue I was/am having with the redraw button not actually redrawing the captcha image.

here is a side by side comparison of the two sections of code and perhaps someone could explain to me how to get the redraw button to function on page. If I have not managed to merge the two sections correctly. My php is still very much at the beginners stage.

line 89 to 96 from the supplied version v2.8

/**
 * Generate the HTML output code for the Redraw Captcha image button
 */
  function redraw_button($image, $alt = '', $parameters = '', $sec_class = '') {
    $redraw = 'onclick="document.getElementById(\'captcha-img\').src=\'' . $this->img_href . '&rand=\'+Math.random();return false;"';
    return zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
  }

From Line 094 the code section pointed out in the above posting

$redraw_button = zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class ); 
    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strpos($redraw_button, $redraw) === false) { 
        $redraw_button = str_replace('<span ', '<span ' . $redraw, $redraw_button); 
    } 
    return $redraw_button;

The merged code section which I hope works and fixes my issue. :huh: :blink:

 * Generate the HTML output code for the Redraw Captcha image button
 */
	  function redraw_button($image, $alt = '', $parameters = '', $sec_class = '') {
    $redraw = 'onclick="document.getElementById(\'captcha-img\').src=\'' . $this->img_href . '&rand=\'+Math.random();return false;"';
    return zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
  
    if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strpos($redraw_button, $redraw) === false) { 
        $redraw_button = str_replace('<span ', '<span ' . $redraw, $redraw_button); 
    } 
    return $redraw_button;
	  }

Today I am trying something different. Read the install.txt Read the FAQ Read the forum for answers; Then Install the mod. ;-)
AML Candles

24 May 2012, 9:11 PM
#569
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Re: Captcha using TTF & GD

Of Course I had to try it out. and no it does not fix the issue of the css buttons working as a redraw image button. Those Folks than can read code like Nero, probablly new that already. Oh! well back to the funky images for buttons.

Today I am trying something different. Read the install.txt Read the FAQ Read the forum for answers; Then Install the mod. ;-)
AML Candles

8 Sep 2012, 6:08 AM
#570
sweetikins avatar

sweetikins

New Zenner

Join Date:
Feb 2009
Location:
Melbourne, Australia
Posts:
85
Plugin Contributions:
0

Re: Captcha using TTF & GD

What is the uninstall code for this please.

8 Sep 2012, 6:47 AM
#571
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Captcha using TTF & GD

sweetikins:

What is the uninstall code for this please.
It is in the mods files that you downloaded and installed.

If you don't have it, you can get another copy from the plugins link above.
Just make sure you get the version for the mod that you have installed.

26 Apr 2013, 11:45 AM
#572
sandyshore avatar

sandyshore

New Zenner

Join Date:
Dec 2012
Posts:
5
Plugin Contributions:
0

Re: Captcha using TTF & GD

Hi,
I think i may have found a bug???
This captcha has been working perfectly on 2 of sites for about 2 years now
BUT recently i have been getting lots of customers telling me they cannot enter the captchas, they always get the error
"you did not enter the validation code correctly"
and no matter how many times they try they get this error

I test it on my home PC and it is always OK, but when testing from my android tablet i get this error
this happens on both of my separate sites, so it seems to be an issue only affecting tablets???
im running 1.3.9h

Need a fix quickly PLEASE :(

26 Apr 2013, 11:51 AM
#573
worldmaker avatar

worldmaker

Zen Follower

Join Date:
Jul 2006
Location:
Manchester
Posts:
139
Plugin Contributions:
0

Re: Captcha using TTF & GD

sandyshore:

Hi,
I think i may have found a bug???
... but when testing from my android tablet i get this error
this happens on both of my separate sites, so it seems to be an issue only affecting tablets???
im running 1.3.9h

Interesting and worth prompt attention.
Were you using a specific browser on the Andriod tablet (I don't have one so don't know enough about the issue), and does that browser differ from the one(s) on your PC?

Can you test with different browsers on both machines?

"Why dumb down when we can rise up?" Worldmaker / BonDevZone Store

26 Apr 2013, 8:44 PM
#574
sandyshore avatar

sandyshore

New Zenner

Join Date:
Dec 2012
Posts:
5
Plugin Contributions:
0

Re: Captcha using TTF & GD

ok tested with IE 8, firefox and chrome on PC and works fine,
Installed chrome on the tablet and it works

so it only seems to have an issue with the standard internet browser that comes with the tablet, i am using a galaxy note 10.1
i cant seem to find out what browser it uses...

an interesting thing i found was that if i load the contact page (for example) and then hit the redraw button, then enter the validation code it works
but if you just enter the first code that appears when the page is loaded it wont work and you get the error
(hope that makes sense)

26 Apr 2013, 9:54 PM
#575
worldmaker avatar

worldmaker

Zen Follower

Join Date:
Jul 2006
Location:
Manchester
Posts:
139
Plugin Contributions:
0

Re: Captcha using TTF & GD

sandyshore:

ok tested with IE 8, firefox and chrome on PC and works fine,
Installed chrome on the tablet and it works

so it only seems to have an issue with the standard internet browser that comes with the tablet, i am using a galaxy note 10.1
i cant seem to find out what browser it uses...

an interesting thing i found was that if i load the contact page (for example) and then hit the redraw button, then enter the validation code it works
but if you just enter the first code that appears when the page is loaded it wont work and you get the error
(hope that makes sense)

A quick check on the web thingy suggests Android has its own internal default web browser app. This suggests it's not a fully web compliant application and thus not your fault no one can use the captcha with it, blame the evil forces of Google who own Android.

My first thought is you should put a warning out on your captcha web page(s) telling everyone on the Captcha page that the page doesn't work without a web-compliant browser such as Mozilla or advise them to follow your experience with redrawing the page if they have an error.

I think this would be the quickest fix without delving into deep code (don't go there unless you have a degree in programming or a lot of migraine pills handy :cool: ).

And keep a close eye on this thread if anyone more skilled can offer a better solution.

:smartalec:

"Why dumb down when we can rise up?" Worldmaker / BonDevZone Store

27 Apr 2013, 7:26 AM
#576
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,

sandyshore:

Hi,
I think i may have found a bug???
This captcha has been working perfectly on 2 of sites for about 2 years now
BUT recently i have been getting lots of customers telling me they cannot enter the captchas, they always get the error
"you did not enter the validation code correctly"
and no matter how many times they try they get this error
Didn't know that this old plugin someone else used. Was sure that all have long been using reCAPTCHA, CSS-captcha and JS-captcha.

sandyshore:

an interesting thing i found was that if i load the contact page (for example) and then hit the redraw button, then enter the validation code it works
but if you just enter the first code that appears when the page is loaded it wont work and you get the error
(hope that makes sense)
This error is known for a very long time - to captcha earned, it is necessary that the session has been started.
If You have set the parameter Force Use Cookies = true, then when you first time visit the site the session does not start.
As an option, try setting the parameter Force Cookie Use = false.

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

17 May 2013, 7:46 PM
#577
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Captcha using TTF & GD

Is this compatible with zen 1.5.1?

If not what else do you recommend?

Using Zen Cart 1.5.1

23 May 2013, 4:14 PM
#578
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

Kevin205:

Is this compatible with zen 1.5.1?

If not what else do you recommend?
Nothing since Zen Cart now includes a CSS CAPTCHAless spam deterrent... It's simple and effective, won't frustrate customers, and most importantly is supported on mobile devices..

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.

23 May 2013, 5:25 PM
#579
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Captcha using TTF & GD

Do I understand you correctly?

Are you saying I shouldn't use any CAPTCHs, since "Zen Cart now includes a CSS CAPTCHAless spam deterrent"?

Please let me know. Thank you.

Using Zen Cart 1.5.1

23 May 2013, 6:23 PM
#580
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

Kevin205:

Do I understand you correctly?

Are you saying I shouldn't use any CAPTCHs, since "Zen Cart now includes a CSS CAPTCHAless spam deterrent"?

Please let me know. Thank you.
You understood me correctly.. It uses CSS and a hidden field to trap the bots.. Fools the bots into thinking the form is filled in correctly..

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.