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

Captcha using TTF & GD

Views: 147,342

Results 161 to 180 of 593
29 Apr 2007, 8:55 AM
#161
a_berezin avatar

a_berezin

Deceased

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

Captcha using TTF & GD

v 2.7 28.04.2007 6:12

  1. Remove "ob_" functions from captcha_img.php.
  2. Add
    header('Content-Transfer-Encoding: binary');
    header('Content-Disposition:attachment; filename=captcha_img.' . $this->img_type);

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

29 Apr 2007, 11:50 AM
#162
oxicottin avatar

oxicottin

Zen Follower

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

Re: Captcha using TTF & GD

A_berezin,

I already have mine working by taking out the "ob_"lines out, should I add the
"header" lines in thier place? Would it look like this:

header('Content-Transfer-Encoding: binary');
require('includes/application_top.php');
header('Content-Disposition:attachment; filename=captcha_img.' . $this->img_type);

require(DIR_WS_CLASSES . 'captcha.php');
$captcha = new captcha();

$captcha->generateCaptcha();
``` Oh and once again thanks for the mod:D 

Thanks,
Chad
30 Apr 2007, 5:46 AM
#163
babygekko avatar

babygekko

New Zenner

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

Re: Captcha using TTF & GD

:clap:Will somebody please notify Zencart's administrator to make Andrew's Captcha TTF as the default one in the download mods? Andrew has done a really good job and I think it's very very stupid to ignore this kind of contribution. The old Captcha in the download mods is a freaking joke any 13-yrs old can break.:shocking:

babygekko (.net)

a_berezin:

v 2.7 28.04.2007 6:12

  1. Remove "ob_" functions from captcha_img.php.
  2. Add
    header('Content-Transfer-Encoding: binary');
    header('Content-Disposition:attachment; filename=captcha_img.' . $this->img_type);
30 Apr 2007, 12:00 PM
#164
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

babygekko:

to make Andrew's Captcha TTF as the default one in the download mods
It is not correct. :censored:

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

30 Apr 2007, 5:20 PM
#165
woodymon avatar

woodymon

Totally Zenned

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

Re: Captcha using TTF & GD

babygekko:

Will somebody please notify Zencart's administrator to make Andrew's Captcha TTF as the default one in the download mods? Andrew has done a really good job and I think it's very very stupid to ignore this kind of contribution. The old Captcha in the download mods is a freaking joke any 13-yrs old can break.

How do you make a mod a "default" in the downloads area? What does that mean? Mods are just listed in alpha order, that's all.

How is Andrew's mod being "ignored"?

Andrews' mod is completely different from the previous captcha mod. Shopowners can choose either to try out.

Yes the limitations of the old captcha mod are well known, but is based on old technology for previous times.

But there is nothing you can do to promote one mod or the other in the Zen Cart downloads area.

Woody

8 May 2007, 3:25 AM
#166
shopyoungway avatar

shopyoungway

New Zenner

Join Date:
Jul 2005
Posts:
53
Plugin Contributions:
0

Re: Captcha using TTF & GD

can someone tell me why when i enable captcha everything works but the login, create account. it just ends up with a dead page. i have turned that part off and no problems.

8 May 2007, 6:20 AM
#167
woodymon avatar

woodymon

Totally Zenned

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

Re: Captcha using TTF & GD

shopyoungway:

can someone tell me why when i enable captcha everything works but the login, create account. it just ends up with a dead page. i have turned that part off and no problems.

  1. Can you provide a URL?

  2. Does the same issue occur on your Write a Product Review submission page or Tell A Friend submission page

  3. What errors display in your web server error log?

  4. The mod should not effect the login page, but does effect the create_account page.

5, Where did you upload the following template files provided with the mod? (provide full path please).

(note you should only upload those files to your custom template directory only if running ZC 1.37 and you have not customized your versions of the same files... otherwise you need to merge the mod code from the provided template files into your versions).

tpl_tell_a_friend_default.php
tpl_modules_create_account.php
tpl_product_reviews_write_default.php
tpl_contact_us_default.php
(and tpl_links_submit_default.php if you have Links Manager mod installed).

  1. The mod includes captcha_test.php and captcha_debug.php for testing/debug purposes. If you upload both files to the root of your shop and access both files via your web browser what do you observe?

Woody

11 May 2007, 8:01 PM
#168
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Captcha using TTF & GD

Hi All,

Where is the latest version of this? One of my sites was recently blacklisted for spam and I know I don't spam people so...

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

11 May 2007, 8:44 PM
#169
oxicottin avatar

oxicottin

Zen Follower

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

Re: Captcha using TTF & GD

sleepless:

Hi All,

Where is the latest version of this? One of my sites was recently blacklisted for spam and I know I don't spam people so...

Thanks,
Kelly

The first post is the newest version!! Good luck!

11 May 2007, 10:16 PM
#171
oxicottin avatar

oxicottin

Zen Follower

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

Re: Captcha using TTF & GD

sleepless:

Thank you.
This is great. I am having one problem though. No matter what setting I use in admin, I can't get the image font any larger.

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

Any ideas?

Thanks,
Kelly

I would re-upload the captcha.php file thats in the classes folder. I think it has the font size ect in it. Im not really sure how this works. If that dont work try uploading the whole thing again after you run the uninstall.sql ect!

12 May 2007, 5:25 AM
#172
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

sleepless:

Thank you.
This is great. I am having one problem though. No matter what setting I use in admin, I can't get the image font any larger.

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

Any ideas?

Thanks,
Kelly
Are not loaded ttf-fonts

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

12 May 2007, 11:04 AM
#173
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Captcha using TTF & GD

I uploaded the font that was included in the zip. Would my css have anything to do with it?

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

12 May 2007, 11:46 AM
#174
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

About what css you talk???

If *.ttf uploaded, may be function 'imagettftext' not exists.

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

12 May 2007, 12:15 PM
#175
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Captcha using TTF & GD

If *.ttf uploaded, may be function 'imagettftext' not exists.

I have another site on a different server and the image is fine. I used all the same files, etc. So it may be that.
How can I tell if I have that or not?

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

12 May 2007, 4:12 PM
#176
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

Ask your hosting support.

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

21 May 2007, 2:20 PM
#177
klito avatar

klito

New Zenner

Join Date:
Jan 2006
Posts:
25
Plugin Contributions:
0

Re: Captcha using TTF & GD

All is ok. only I have a problem to install SQL install.

On read me file say for do not install but transfer or copy. I go to Admin---Tools--Install SQL patchs and only exhist the possibility to install. How to proceed?

I try trough MYSQL my administration and I get error on first line.

Pls how to proceed for install "Install SQL"?

Thanks for all kind and simple information to proceed.

Tony

27 May 2007, 4:52 PM
#178
stevenb avatar

stevenb

New Zenner

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

Re: Captcha using TTF & GD

Thank You, this mod is fantastic, just what I needed.
Installation was a breaze and is working great!

I do have one problem... In IE 6 the redraw capcha image does not display. Everything else works fine and no problems at all in FF.

I read through the post but did not see any specific refrence to this and I don't want to break it by messing with something over my head.

Has anyoneone else experienced or fixed this issue?

Thanks in advance,

Steve

Stuff: ZC v1.37 | Linux | mysql v 4.1x | php v 4.4x | phpmyadmin v 2.6x | Default Template

Mods: Login Box v 1.41

29 May 2007, 1:48 AM
#179
stevenb avatar

stevenb

New Zenner

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

Re: Captcha using TTF & GD

Little Bumpie...

:blush:

Stuff: ZC v1.37 | Linux | mysql v 4.1x | php v 4.4x | phpmyadmin v 2.6x | Default Template

Mods: Login Box v 1.41

29 May 2007, 6:34 AM
#180
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

There are no problems with IE6 for me.

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