Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / All Other Contributions/Addons / User Verification (Anti-Robot / CAPTCHA)

User Verification (Anti-Robot / CAPTCHA)

Started by funkey on 7 Aug 2006, 8:20 AM · Views: 79,900

Results 21 to 40 of 192
15 Aug 2006, 6:55 AM
#21
funkey avatar

funkey

New Zenner

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

User Verification (Anti-Robot / CAPTCHA)

Typhoon:

Ah... I don't have index.php?main_page=create_account, only login, and if I click on "Create Account" on my shop, I get to login page, and from here, I create the account. :down:

If I use your link, index.php?main_page=create_account, I see the validation letters, very nice ... But my customers can't get to it. I could change one link (create account link) to this page, but if the customer instead click on "Log In" link, he don't have to enter the validation code.

Do you have any plans to make this available for the login page also ? But only for the "create account"-part, the customer don't have to enter validation code to login to the shop, right ?

Is it possible to take away all "create account" posibilities from "login page" and only use the "create account" page ? Maybe that's a solution ?

You might be able to work around it by editing the includes/filenames.php file and changing:

define('FILENAME_LOGIN', 'login');

to:

define('FILENAME_LOGIN', 'create_account');

Alternatively, if you use the 'Login Box' contribution available from the downloads section, it's quite easy to switch between the =login and =create_account pages by editing the definitions file.

I'll be working on getting the login part of this modification going later this week, i'll let you know how it goes.

Paul

15 Aug 2006, 7:44 AM
#22
typhoon avatar

typhoon

Zen Follower

Join Date:
Jul 2006
Posts:
144
Plugin Contributions:
0

Re: User Verification (Anti-Robot / CAPTCHA)

Thanx for the tip, funkey, and yes, please, let me know how your updated version goes. :thumbsup:

/Typhoon

15 Aug 2006, 8:00 AM
#23
typhoon avatar

typhoon

Zen Follower

Join Date:
Jul 2006
Posts:
144
Plugin Contributions:
0

Re: User Verification (Anti-Robot / CAPTCHA)

I entered index.php?main_page=create_account, created a user and entered wrong verification code and the user was created. Did I do something wrong ?

To the right of the text box where I suppose to enter the verification code, it says 'Error:' in red color. Could this have something to do with that you can enter whatever you want in the text box ?

Regards,
/Typhoon

15 Aug 2006, 8:21 AM
#24
funkey avatar

funkey

New Zenner

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

Re: User Verification (Anti-Robot / CAPTCHA)

Typhoon:

I entered index.php?main_page=create_account, created a user and entered wrong verification code and the user was created. Did I do something wrong ?

To the right of the text box where I suppose to enter the verification code, it says 'Error:' in red color. Could this have something to do with that you can enter whatever you want in the text box ?

Regards,
/Typhoon

I think it's something to do with the messagestack work, I get the same issue on a test site with javascript turned off, but it correctly prompts me when I switch javascript back on.

I'll look into it now :)

Paul

15 Aug 2006, 8:33 AM
#25
funkey avatar

funkey

New Zenner

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

Re: User Verification (Anti-Robot / CAPTCHA)

funkey:

I think it's something to do with the messagestack work, I get the same issue on a test site with javascript turned off, but it correctly prompts me when I switch javascript back on.

I'll look into it now :)

Paul

Actually, scratch that -- I forgot to add one of the files to the zipfile. I'll fix it and re-release a new zip file in the next hour or so.

15 Aug 2006, 9:05 AM
#26
funkey avatar

funkey

New Zenner

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

Re: User Verification (Anti-Robot / CAPTCHA)

Typhoon,

Try the attached version instead. To install it over the version you have, you just need to replace the templates/tpl_modules_create_account.php file with the one from this archive and upload the new modules/create_account.php file to your server.

Hope that helps,

Paul

15 Aug 2006, 12:05 PM
#27
typhoon avatar

typhoon

Zen Follower

Join Date:
Jul 2006
Posts:
144
Plugin Contributions:
0

Re: User Verification (Anti-Robot / CAPTCHA)

When I used your fix, I got the following error message:

**Warning: require_once(includes/functions/extra_functions/functions_propercase.php) [function.require-once]: failed to open stream: No such file or directory in \includes\modules\create_account.php on line 16

Fatal error: require_once() [function.require]: Failed opening required '/includes/functions/extra_functions/functions_propercase.php' (include_path='.;C:\php5\pear') in \includes\modules\create_account.php on line 16**

In that file, on row 16 it says: require_once(DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'extra_functions/functions_propercase.php');

And this file is missing in my shop (?)... So I deleted (//) that row and the error message disapears.

The only diference is that the text "Error:" in red color is now gone :)... Now, it's a red *, hope that's correct :D..

However, I can still put any text in the validation text box, unfortunatly...

Any tip ?

Regards,
/Typhoon

17 Aug 2006, 6:11 AM
#28
funkey avatar

funkey

New Zenner

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

Re: User Verification (Anti-Robot / CAPTCHA)

Typhoon:

When I used your fix, I got the following error message:

[B]Warning: require_once(includes/functions/extra_functions/functions_propercase.php) [function.require-once]: failed to open stream: No such file or directory in \includes\modules\create_account.php on line 16

The only diference is that the text "Error:" in red color is now gone :)... Now, it's a red *, hope that's correct :D..

However, I can still put any text in the validation text box, unfortunatly...

Any tip ?

Regards,
/Typhoon

Sorry about that, I accidently released the code from the wrong tree -- so it had references to my propercase code in it too.

I've done some more fixes on the code and attached a new zipfile of the code -- tested with 5 and 20 digit validations and both work fine here.

Regards,

Paul

17 Aug 2006, 9:19 AM
#29
typhoon avatar

typhoon

Zen Follower

Join Date:
Jul 2006
Posts:
144
Plugin Contributions:
0

Re: User Verification (Anti-Robot / CAPTCHA)

Super, now it's working super for the "index.php?main_page=create_account" page. Thanx...

Please let me know when you managed to make it work for the "index.php?main_page=login" page

Very nice work, I hope the "zen-cart"-guys will make this as a standard option in the shop...

Regards,
/Typhoon

18 Aug 2006, 4:32 AM
#30
funkey avatar

funkey

New Zenner

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

Re: User Verification (Anti-Robot / CAPTCHA)

Typhoon:

Super, now it's working super for the "index.php?main_page=create_account" page. Thanx...

Please let me know when you managed to make it work for the "index.php?main_page=login" page

Very nice work, I hope the "zen-cart"-guys will make this as a standard option in the shop...

Regards,
/Typhoon

The code now works on the login page, as well as correctly generating alt="" tags for the images so that text and accessibility-compliant browsers can understand what they need to enter.

18 Aug 2006, 6:59 AM
#31
typhoon avatar

typhoon

Zen Follower

Join Date:
Jul 2006
Posts:
144
Plugin Contributions:
0

Re: User Verification (Anti-Robot / CAPTCHA)

I downloaded the pack, re-installed everything, also the sql part, I saw that you did some small changes and it works great.

Thanx alot, great work !

/Typhoon

8 Sep 2006, 10:13 AM
#32
typhoon avatar

typhoon

Zen Follower

Join Date:
Jul 2006
Posts:
144
Plugin Contributions:
0

Re: User Verification (Anti-Robot / CAPTCHA)

Hi again, funkey !

I have installed the new ZC 1.3.5 and I was trying to re-install your CAPTCHA but it didn't work. SQL-problem it seems..

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'),')' at line 1
in:
[INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('NULL', 'Activate Validation', 'ACCOUNT_VALIDATION', 'true', 'Enables CAPTCHA Verification Code. This is used to verify that the customer is real and valid, rather than a bot or spider session.', 35, 10, '2006-08-07 17:00:00', '2006-08-07 17:00:00', NULL, 'zen_cfg_select_option(array('true', 'false'),');]

Did you try it on the new ZC ? Anyone have a clue ?

Regards,
/Typhoon

9 Sep 2006, 1:53 AM
#33
funkey avatar

funkey

New Zenner

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

Re: User Verification (Anti-Robot / CAPTCHA)

Typhoon:

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'),')' at line 1
in:
[INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('NULL', 'Activate Validation', 'ACCOUNT_VALIDATION', 'true', 'Enables CAPTCHA Verification Code. This is used to verify that the customer is real and valid, rather than a bot or spider session.', 35, 10, '2006-08-07 17:00:00', '2006-08-07 17:00:00', NULL, 'zen_cfg_select_option(array('true', 'false'),');]

Did you try it on the new ZC ? Anyone have a clue ?

Typhoon,

Did you use the 'upload' function in the SQL patch tool by any chance, I have the same error on a MySQL 5.0 box when 'uploading' the code, but manually cut-and-pasting it into the query executor seems to work fine on 1.3.5?

It could be yet-another-quirk-of-the-sql-patch-tool(tm), but i'm not that familiar with the code, so i'll do some investigating and post my findings.

Paul

5 Oct 2006, 8:26 AM
#34
typhoon avatar

typhoon

Zen Follower

Join Date:
Jul 2006
Posts:
144
Plugin Contributions:
0

Re: User Verification (Anti-Robot / CAPTCHA)

funkey:

Typhoon,

Did you use the 'upload' function in the SQL patch tool by any chance, I have the same error on a MySQL 5.0 box when 'uploading' the code, but manually cut-and-pasting it into the query executor seems to work fine on 1.3.5?

It could be yet-another-quirk-of-the-sql-patch-tool(tm), but i'm not that familiar with the code, so i'll do some investigating and post my findings.

Paul

Sorry for the late reply. I did like you said, cut'n'past into the query box in admin and it worked like a charm. Thanx again !

/Typhoon

11 Oct 2006, 1:55 AM
#35
funkey avatar

funkey

New Zenner

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

Re: User Verification (Anti-Robot / CAPTCHA)

You're quite welcome.

Also, this module has now been uploaded to the downloads section (thanks DrByte) -- so future new releases will be posted there.

16 Oct 2006, 6:25 AM
#36
stenrique avatar

stenrique

Zen Follower

Join Date:
Apr 2005
Posts:
355
Plugin Contributions:
0

Re: User Verification (Anti-Robot / CAPTCHA)

funkey:

You're quite welcome.

Also, this module has now been uploaded to the downloads section (thanks DrByte) -- so future new releases will be posted there.

Hi, I looked at the Download section but the CAPTCHA entry is empty. Hence I downloaded the zip file in post #30 on page 3 of this posting.

When installing the mod., there seems to be quite a lot of code differences in these files:

  • includes/modules/create_account.php
  • includes/modules/pages/create_account/header_php.php
  • includes/modules/pages/create_account/jscript_form_check.php
  • includes/templates/template_default/templates/tpl_modules_create_account.php

compared to those in ZC 1.3.5.

Funkey, could you advise if the zip file in post #30 is tested for ZC 1.3.5? TIA

17 Oct 2006, 9:35 AM
#37
funkey avatar

funkey

New Zenner

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

Re: User Verification (Anti-Robot / CAPTCHA)

Stenrique:

Hi, I looked at the Download section but the CAPTCHA entry is empty. Hence I downloaded the zip file in post #30 on page 3 of this posting.

When installing the mod., there seems to be quite a lot of code differences in these files:

  • includes/modules/create_account.php
  • includes/modules/pages/create_account/header_php.php
  • includes/modules/pages/create_account/jscript_form_check.php
  • includes/templates/template_default/templates/tpl_modules_create_account.php

compared to those in ZC 1.3.5.

Funkey, could you advise if the zip file in post #30 is tested for ZC 1.3.5? TIA

Although most of those differences are because of the difference between DOS (which most of zen-cart uses) and UNIX (which I use) linebreaks, especially the includes/modules/create_account.php one -- there are some modifications in the 1.3.5 code that need to be taken into consideration when using the CAPTCHA modification.

I've put together a new version of the code that has been tested under 1.3.5, i'll upload it to the modules section within the next day or so.

Cheers,

Paul

18 Oct 2006, 7:37 AM
#38
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: User Verification (Anti-Robot / CAPTCHA)

hi there,

I just installed these mod in my local testing server and the CAPTCHA configuration page was empty! look at the attachment... BUT the SQL patch had been execute succesfully thru the Admin Intall SQL Patches! :yes: but at the storefront, the CAPTCHA works properly... anyone?! FYI, I installed it on v1.3.0.1

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

20 Oct 2006, 1:34 AM
#39
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: User Verification (Anti-Robot / CAPTCHA)

never mind! got it fixed... :laugh:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

23 Oct 2006, 12:12 AM
#40
funkey avatar

funkey

New Zenner

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

Re: User Verification (Anti-Robot / CAPTCHA)

tajul_ashyqin:

never mind! got it fixed... :laugh:

So, what was the problem? :)