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

Captcha using TTF & GD

Views: 147,342

Results 201 to 220 of 593
4 Sep 2007, 1:00 AM
#201
oxicottin avatar

oxicottin

Zen Follower

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

Captcha using TTF & GD

cjcrafts:

ok I have a new problem now. I recently rebuilt my site to correct a problem unrelated to this mod. In the process I am now running the newest version of Links Manager ver. 3.2.3. After several failed attempts of merging the captcha code into the template file I am begging for help. I'm getting hammered with spam links. :shocking:

Love the mod, just can't get the two of them to get along

I'm getting an unexpected end error when I merge in all the sections that are marked in the code.

Does anyone have the correctly merged files they would be willing to send me? Save me from my spam hell PlEaSe :lamo:

cjcrafts, I was having the same thing. When I installed the captcha my links manger submit link page gave errors. I have an old version that I installed on my running site which is curently running php4.. and I have links manager on it and they both are fine? Im testing this on my PC which is PHP5 and im getting errors. The last time I tried to install I never saw any picture ect. it was like I didnt install it:blink: If you get yours fixed let me know and I will do the same...Thanks!

Oh, What and where is the latest version/download?

4 Sep 2007, 2:04 AM
#202
cjcrafts avatar

cjcrafts

New Zenner

Join Date:
Apr 2007
Posts:
43
Plugin Contributions:
0

Re: Captcha using TTF & GD

oxicottin:

cjcrafts, I was having the same thing. When I installed the captcha my links manger submit link page gave errors. I have an old version that I installed on my running site which is curently running php4.. and I have links manager on it and they both are fine? Im testing this on my PC which is PHP5 and im getting errors. The last time I tried to install I never saw any picture ect. it was like I didnt install it:blink: If you get yours fixed let me know and I will do the same...Thanks!

Oh, What and where is the latest version/download?

I found it in the zencart downloads I have attached it for you as well. I'm not sure if this is a new development with this new version or what. I do know I had the previous version working get with CAPTCHA. I am at a total loss as to how to fix it at this point. I'm hoping to find that answer here too.

4 Sep 2007, 6:16 AM
#203
goodwrench1 avatar

goodwrench1

New Zenner

Join Date:
Aug 2007
Posts:
11
Plugin Contributions:
0

Re: Captcha using TTF & GD

Mantid:

I apologize if this has been stated already, but it is late and I am far too tired to read all 18 pages to check, lol.

I was having the same problem as a few others here with the image not showing. It would just show "Enable this picture". It turned out to be my SEO mod (Ultimate SEO URLs by dream-scape) that was fumbling it up. Disabled that and it worked great. Just thought I would mention that for anyone else who may be in a similar situation (or willing to find a way to make them work together :wink:).

For some people that are having problems displaying the captcha image due to the .html being added to captcha_img.php

I added this line to my .htaccess file and it seems to work.

Redirect /captcha_img.php.html https://mywebsite.c4.myhost.com/captcha_img.php

Obviously you would need to change the italics portion to suit your needs.

If your using SSL, I believe you must redirect to an SSL location so you don't get any certificate issues.

4 Sep 2007, 9:43 AM
#204
oxicottin avatar

oxicottin

Zen Follower

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

Re: Captcha using TTF & GD

cjcrafts:

I found it in the zencart downloads I have attached it for you as well. I'm not sure if this is a new development with this new version or what. I do know I had the previous version working get with CAPTCHA. I am at a total loss as to how to fix it at this point. I'm hoping to find that answer here too.

cjcrafts, I was talking about captcha's latest and greatest. I have the newest links manager installed and modifyed to except banners. I just cant get captcha to even show up at the bottom of anything... Thanks for finding the file though :bigups:......

4 Sep 2007, 3:46 PM
#205
cjcrafts avatar

cjcrafts

New Zenner

Join Date:
Apr 2007
Posts:
43
Plugin Contributions:
0

Re: Captcha using TTF & GD

oxicottin:

cjcrafts, I was talking about captcha's latest and greatest. I have the newest links manager installed and modifyed to except banners. I just cant get captcha to even show up at the bottom of anything... Thanks for finding the file though :bigups:......

:oops: I must have misunderstood you then, I am not aware of a new release of the gd ttf captcha mod.

On another note I have tried slicing and dicing mixing and matching several different combinations and still can't get it to work right with the links manager.

It appears just fine, but when I load the submit link page, however it displays the add image field with the field title all muffed up, and when you submit the link it rolls you right back to the submit form instead of displaying the link submitted screen.

It has me totally baffled because all I have been doing is adding the code that is between the //bof captcha and //eof captcha segments from the captcha mod to the header_php.php and tpl_links_submit_default.php of links manager 3.2.3.

:frusty:

4 Sep 2007, 4:16 PM
#206
cjcrafts avatar

cjcrafts

New Zenner

Join Date:
Apr 2007
Posts:
43
Plugin Contributions:
0

Re: Captcha using TTF & GD

cjcrafts:

:oops: I must have misunderstood you then, I am not aware of a new release of the gd ttf captcha mod.

On another note I have tried slicing and dicing mixing and matching several different combinations and still can't get it to work right with the links manager.

It appears just fine, but when I load the submit link page, however it displays the add image field with the field title all muffed up, and when you submit the link it rolls you right back to the submit form instead of displaying the link submitted screen.

It has me totally baffled because all I have been doing is adding the code that is between the //bof captcha and //eof captcha segments from the captcha mod to the header_php.php and tpl_links_submit_default.php of links manager 3.2.3.

:frusty:

:censored: Boy do I feel like an idiot, I found my problem, I was adding the code in the wrong place in the template file. This is what happens when they switch me to decaf :blink:

Thank anyways,

4 Sep 2007, 6:43 PM
#207
jmacdoug avatar

jmacdoug

New Zenner

Join Date:
Jun 2007
Location:
NJ
Posts:
84
Plugin Contributions:
0

Re: Captcha using TTF & GD

I was hoping someone could expand on the reason this may be happening. CAPTCHA works on all pages that I choose in admin except for the actual "create account" page.:frusty:

Here is my link CLICK HERE

Thanks for your help.:lookaroun

4 Sep 2007, 8:33 PM
#208
oxicottin avatar

oxicottin

Zen Follower

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

Re: Captcha using TTF & GD

cjcrafts:

:censored: Boy do I feel like an idiot, I found my problem, I was adding the code in the wrong place in the template file. This is what happens when they switch me to decaf :blink:

Thank anyways,

cjcrafts, what did you do to fix this? Here is my error when I click submit a link:

Fatal error: Cannot redeclare zen_get_link_path() (previously declared in W:\wamp\www\rbackyard\includes\functions\links.php:23) in W:\wamp\www\rbackyard\includes\functions\links.php on line 32

Is this the error you were getting and if so what and where did you do? Im new to this so please post code...Thanks!!

4 Sep 2007, 9:48 PM
#209
oxicottin avatar

oxicottin

Zen Follower

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

Re: Captcha using TTF & GD

I got it working without the Captcha at the bottom of the links Manager page! I just didnt use the header.php file that was with the Captcha.. I would still like to know how to add it at the bottom of the page though!

6 Sep 2007, 3:59 PM
#210
jmacdoug avatar

jmacdoug

New Zenner

Join Date:
Jun 2007
Location:
NJ
Posts:
84
Plugin Contributions:
0

Re: Captcha using TTF & GD

PLEASE, PLEASE HELP!!! :cry: Users can not register on my site! I have CAPTCHA working on all pages except the "create account" page and it leaves users going somewhere else. Before this version I was running the other very basic CAPTHA. I tried to uninstall it the best I could and perhaps something went nuts. ***My page is HERE!!*** I am also using ultimate seo but the CAPTHA issue started before that installation.

Someone actually called me and let me know they could not go any further with their registration.

Here is my server config

**Server Host: **https://www.printsxpress.com (66.252.131.130) **Database Host: **localhost (127.0.0.1) **Server OS: **Windows NT NVWEB1 5.2 build 3790 **Database: **MySQL 5.0.41-community-nt **Server Date: **09/06/2007 11:56:18 **Database Date: **09/06/2007 11:56:18 **Server Up Time: **
**PHP Version: **5.2.2 (Zend: 2.2.0)
**HTTP Server: **Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2 mod_perl/2.0.3 Perl/v5.8.8
table, td, tr {font-family: sans-serif; font-size: 11px;}.p {text-align: center;}.e {background-color: #ccccff; font-weight: bold; font-size: 11px;}.h {background-color: #9999cc; font-weight: bold; font-size: 11px;}.v {background-color: #cccccc; font-size: 12px;}i {color: #666666; font-size: 11px;}hr {display: none; font-size: 11px;}[IMG]http://www.printsxpress.com/admin/images/logo.gif[/IMG] Zen Cart 1.3.7.1

Database Patch Level: 1.3.7.1

v1.3.7.1 [2007-07-09 13:16:41] (Fresh Installation)

12 Sep 2007, 7:32 AM
#211
miweb avatar

miweb

New Zenner

Join Date:
Jul 2007
Posts:
31
Plugin Contributions:
0

Re: Captcha using TTF & GD

How can I implement this CAPTCHA to the modul "Ask a question"?

18 Sep 2007, 4:59 PM
#212
tvmangum avatar

tvmangum

New Zenner

Join Date:
Sep 2007
Posts:
8
Plugin Contributions:
0

Re: Captcha using TTF & GD

Can someone tell me very simply how in intall the captcha. I've read the readme but still don't know what to do. I like to think that I'm rather intelligent and can follow directions but come on--this is like Greek to me. :shocking:

TIA.

18 Sep 2007, 5:24 PM
#213
oxicottin avatar

oxicottin

Zen Follower

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

Re: Captcha using TTF & GD

tvmangum:

Can someone tell me very simply how in intall the captcha. I've read the readme but still don't know what to do. I like to think that I'm rather intelligent and can follow directions but come on--this is like Greek to me. :shocking:

TIA.

look threw the files and everywhere it says Your_Template change the name to your "custom" templates name. Then upload all files to your zencart. Not to worry all files are in the same structure so they will go where needed. Once uploaded the SQL patch thats includedNote I think there are several updates in the folder so do the most recent. Run the SQL in you zencars admin/tools/install SQL patches. Just copy your code and paste it in the "Enter the Query to be executed area" and click send. Thats it! you can go to the admin/configuration/CAPTCHA and adjust things ect and I think there are a few more areas that you can adjust but that is the basics. Good luck!

19 Sep 2007, 7:20 PM
#214
cjcrafts avatar

cjcrafts

New Zenner

Join Date:
Apr 2007
Posts:
43
Plugin Contributions:
0

Re: Captcha using TTF & GD

ok here's a new one on me??

My captcha images is only displaying one character as shown below

jjjjjj
666666
tttttt
222222,

intead of random characters.

This has be totally baffled. I haven't toyed around with captcha in weeks, any insight would be greatly appreciated.

20 Sep 2007, 5:31 PM
#215
zapisto avatar

zapisto

Zen Follower

Join Date:
Aug 2005
Posts:
163
Plugin Contributions:
0

Re: Captcha using TTF & GD

miweb:

How can I implement this CAPTCHA to the modul "Ask a question"?

here it is

#
#--- [ OPEN ]------------
#  

includes/templates/YOUR_TEMPLATE/templates/tpl_ask_a_question_default.php[/b]

#
#---[ FIND ] -------------
#

</fieldset>

#
# ---[ BEFORE, ADD ]--------------
#
<?php
// BOF Captcha
if(is_object($captcha)) {
?>
<br class="clearBoth" />
<?php echo $captcha->img(); ?>
<?php echo $captcha->redraw_button(BUTTON_IMAGE_CAPTCHA_REDRAW, BUTTON_IMAGE_CAPTCHA_REDRAW_ALT); ?>
<br class="clearBoth" />
<label for="captcha"><?php echo TITLE_CAPTCHA; ?></label>
<?php echo $captcha->input_field('captcha', 'id="captcha"') . ' <span class="alert">' . TEXT_CAPTCHA . '</span>'; ?>
<br class="clearBoth" />
<?php
}
// BOF Captcha
?>

#
#--- [ OPEN ]------------
#

includes/modules/pages/ask_a_question/header_php.php

#
#---[ FIND ] -------------
#

require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));

#
# --- [ AFTER , ADD ] ---------------
#

// BOF Captcha
if(CAPTCHA_ASK_A_QUESTION != 'false') {
	require(DIR_WS_CLASSES . 'captcha.php');
	$captcha = new captcha();
}
// EOF Captcha

#
#---[ FIND ] -------------
#

$zc_validate_email = zen_validate_email($email_address);

#
# --- [ AFTER , ADD ] ---------------
#

// BOF Captcha
  if (is_object($captcha) && !$captcha->validateCaptchaCode()) {
    $error = true;
    $messageStack->add('question', ERROR_CAPTCHA);
  }
// EOF Captcha


#
# ---[ SAVE , CLOSE all files] -------------
#
25 Sep 2007, 9:02 PM
#216
velvetangels avatar

velvetangels

New Zenner

Join Date:
Sep 2007
Posts:
27
Plugin Contributions:
0

Re: Captcha using TTF & GD

Hey everyone,

I really love Zencart and I am completely new to this. (i do understand php and some sql)

I was trying to use the captcha and the darkness template ->
Darkness Template

and it doesn't seem to show the image on the contact or any of the other pages that I found it on. I was able to do the test image and it worked fine but I guess i was confused on what could be wrong and why it wasn't showing. :frusty:

Here is what I see when I had it setup.

Then if I try to send a message it gives me the error that the code wasnt filled out correctly.

I have uninstalled it temporarily but can reinstall the captcha again if needed.

26 Sep 2007, 4:06 AM
#217
cjcrafts avatar

cjcrafts

New Zenner

Join Date:
Apr 2007
Posts:
43
Plugin Contributions:
0

Re: Captcha using TTF & GD

cjcrafts:

ok here's a new one on me??

My captcha images is only displaying one character as shown below

jjjjjj
666666
tttttt
222222,

instead of random characters.

This has be totally baffled. I haven't toyed around with captcha in weeks, any insight would be greatly appreciated.

I have been looking into this for just about a week now, with no luck. :censored:

I have hit a brick wall, if anyone has even the slightest idea, please throw me a bone here. Captcha was working absolutely fine until the day of my original post.

26 Sep 2007, 7:53 AM
#218
phazlee avatar

phazlee

New Zenner

Join Date:
Aug 2007
Posts:
28
Plugin Contributions:
0

Re: Captcha using TTF & GD

Hi all I am getting this bunch of errors when I try to install the sql from admin.
Need help in resolving this fast. Thanks.

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'true', 'false'),'), (NULL, 'Image Type', 'CAPTCHA_IMG_TYPE', 'png', 'CAPTCHA Ima' at line 1
in:
[INSERT INTO zen_sgconfiguration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES (NULL, 'Code Length', 'CAPTCHA_CODE_LENGTH', '6', 'Verification Code length', @configuration_group_id, 1, NOW(), NULL, NULL), (NULL, 'Image Width', 'CAPTCHA_IMG_WIDTH', '240', 'CAPTCHA Image Width', @configuration_group_id, 2, NOW(), NULL, NULL), (NULL, 'Image Height', 'CAPTCHA_IMG_HEIGHT', '50', 'CAPTCHA Image Height', @configuration_group_id, 3, NOW(), NULL, NULL), (NULL, 'Chars minimum size', 'CAPTCHA_CHARS_MIN_SIZE', '0.6', 'Chars minimum size (1.0=Image Height)', @configuration_group_id, 4, NOW(), NULL, NULL), (NULL, 'Chars maximum size', 'CAPTCHA_CHARS_MAX_SIZE', '0.8', 'Chars maximum size (1.0=Image Height)', @configuration_group_id, 5, NOW(), NULL, NULL), (NULL, 'Corner of rotation', 'CAPTCHA_CHARS_ROTATION', '23', 'Chars Corner of rotation', @configuration_group_id, 6, NOW(), NULL, NULL), (NULL, 'Shadow Chars', 'CAPTCHA_CHARS_SHADOW', 'true', 'Generate Shadows for Characters', @configuration_group_id, 7, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Image Type', 'CAPTCHA_IMG_TYPE', 'png', 'CAPTCHA Image Type', @configuration_group_id, 10, NOW(), NULL, 'zen_cfg_select_option(array('png', 'jpeg', 'gif'),'), (NULL, 'Create Account page', 'CAPTCHA_CREATE_ACCOUNT', 'true', 'Activate Validation on Create Account page', @configuration_group_id, 21, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Contact Us page', 'CAPTCHA_CONTACT_US', 'true', 'Activate Validation on Contact Us page', @configuration_group_id, 22, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Tell A Friend page', 'CAPTCHA_TELL_A_FRIEND', 'true', 'Activate Validation on Tell A Friend page', @configuration_group_id, 23, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Links Submit page', 'CAPTCHA_LINKS_SUBMIT', 'true', 'Activate Validation on Links Submit page', @configuration_group_id, 24, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Write Review page', 'CAPTCHA_REVIEWS_WRITE', 'true', 'Activate Validation on Write Review page', @configuration_group_id, 25, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

PhazLee
**thankgoditshalal.com**
A One Stop Halal Online Food and Services For The Singapore Community

27 Sep 2007, 1:30 PM
#219
lazzo85 avatar

lazzo85

New Zenner

Join Date:
Sep 2007
Location:
Italy
Posts:
7
Plugin Contributions:
0

Re: Captcha using TTF & GD

Hi
My name is Simone, I’m Italian.
So sorry for my English.:P

I have a problem with “Captcha using TTF & GD” and “Ultimate SEO URLs”.
I don’t succeed to work together.:frusty:

If I disable Ultimate SEO URLs, Captha function;
but if I enable Ultimate SEO URLs, the image of Captcha is not visible.:wacko:

I using 1.3.7 release of ZenCart

I don’t know if you have responded already.
You can help me?

Thanks

Simone

I'm Italian boy - sorry for my english...

27 Sep 2007, 2:29 PM
#220
zapisto avatar

zapisto

Zen Follower

Join Date:
Aug 2005
Posts:
163
Plugin Contributions:
0

Re: Captcha using TTF & GD

phazlee:

Hi all I am getting this bunch of errors when I try to install the sql from admin.
Need help in resolving this fast. Thanks.

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'true', 'false'),'), (NULL, 'Image Type', 'CAPTCHA_IMG_TYPE', 'png', 'CAPTCHA Ima' at line 1
in:
[INSERT INTO zen_sgconfiguration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES (NULL, 'Code Length', 'CAPTCHA_CODE_LENGTH', '6', 'Verification Code length', @configuration_group_id, 1, NOW(), NULL, NULL), (NULL, 'Image Width', 'CAPTCHA_IMG_WIDTH', '240', 'CAPTCHA Image Width', @configuration_group_id, 2, NOW(), NULL, NULL), (NULL, 'Image Height', 'CAPTCHA_IMG_HEIGHT', '50', 'CAPTCHA Image Height', @configuration_group_id, 3, NOW(), NULL, NULL), (NULL, 'Chars minimum size', 'CAPTCHA_CHARS_MIN_SIZE', '0.6', 'Chars minimum size (1.0=Image Height)', @configuration_group_id, 4, NOW(), NULL, NULL), (NULL, 'Chars maximum size', 'CAPTCHA_CHARS_MAX_SIZE', '0.8', 'Chars maximum size (1.0=Image Height)', @configuration_group_id, 5, NOW(), NULL, NULL), (NULL, 'Corner of rotation', 'CAPTCHA_CHARS_ROTATION', '23', 'Chars Corner of rotation', @configuration_group_id, 6, NOW(), NULL, NULL), (NULL, 'Shadow Chars', 'CAPTCHA_CHARS_SHADOW', 'true', 'Generate Shadows for Characters', @configuration_group_id, 7, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Image Type', 'CAPTCHA_IMG_TYPE', 'png', 'CAPTCHA Image Type', @configuration_group_id, 10, NOW(), NULL, 'zen_cfg_select_option(array('png', 'jpeg', 'gif'),'), (NULL, 'Create Account page', 'CAPTCHA_CREATE_ACCOUNT', 'true', 'Activate Validation on Create Account page', @configuration_group_id, 21, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Contact Us page', 'CAPTCHA_CONTACT_US', 'true', 'Activate Validation on Contact Us page', @configuration_group_id, 22, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Tell A Friend page', 'CAPTCHA_TELL_A_FRIEND', 'true', 'Activate Validation on Tell A Friend page', @configuration_group_id, 23, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Links Submit page', 'CAPTCHA_LINKS_SUBMIT', 'true', 'Activate Validation on Links Submit page', @configuration_group_id, 24, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'), (NULL, 'Write Review page', 'CAPTCHA_REVIEWS_WRITE', 'true', 'Activate Validation on Write Review page', @configuration_group_id, 25, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

where you take this SQL statement
because this is wrong and i never see that in the zip.