If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / 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,933

Results 101 to 120 of 192
14 Jan 2007, 12:26 AM
#101
x_vier avatar

x_vier

New Zenner

Join Date:
Oct 2006
Location:
Belgium
Posts:
39
Plugin Contributions:
0

Post #101 by x_vier

Paul,

The origin of the problem isn't the Captcha. Now it is working fine!
It must be something else.
I don't know what it could be....

Anyway thank you a lot for helping me...

Xavier

14 Jan 2007, 1:41 PM
#102
megaman avatar

megaman

New Zenner

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

Post #102 by megaman

I made some modifications to this addon to use only one dynamic image to show the validation code (like in Anti Robot Registration Validation 2.5 for OsCommerce).

Every thing is working but I have a question :
is there a security risk to use the session_id to generate the image ?
I mean, by looking the properties of the picture we can see it. Is it dangerous or not ?

I send my work to funkey, maybe he will include my work soon if I didnt make to many mistakes ;)

18 Jan 2007, 8:44 AM
#103
iceburn avatar

iceburn

New Zenner

Join Date:
Jan 2007
Posts:
17
Plugin Contributions:
0

Post #103 by iceburn

I just installed this on the lastest Zen-cart. I might be doing something stupid. But got this problem at the moment.

When you goto create account.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/petsandc/public_html/brondegpostoffice/includes/classes/db/mysql/query_factory.php:114) in /home/petsandc/public_html/brondegpostoffice/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/petsandc/public_html/brondegpostoffice/includes/classes/db/mysql/query_factory.php:114) in /home/petsandc/public_html/brondegpostoffice/includes/init_includes/init_templates.php on line 78

and there is no letters within the create page.

What have I done wrong?

thanx, Mark

18 Jan 2007, 8:50 AM
#104
iceburn avatar

iceburn

New Zenner

Join Date:
Jan 2007
Posts:
17
Plugin Contributions:
0

Post #104 by iceburn

NB: sorry for double post I tried to delete the first one/edit it but it would not allow me :-(

I just install this script and I think I done it all create but obivously I have not cause I get the following error message below.

Warning: Variable passed to each() is not an array or object in /home/petsandc/public_html/brondegpostoffice/includes/classes/db/mysql/query_factory.php on line 114

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/petsandc/public_html/brondegpostoffice/includes/classes/db/mysql/query_factory.php:114) in /home/petsandc/public_html/brondegpostoffice/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/petsandc/public_html/brondegpostoffice/includes/classes/db/mysql/query_factory.php:114) in /home/petsandc/public_html/brondegpostoffice/includes/init_includes/init_templates.php on line 78

And the number field do not come up. Do any of you know what I have done wrong?
Mark

2 Feb 2007, 4:44 PM
#105
lujo avatar

lujo

New Zenner

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

Post #105 by lujo

install the module of captcha and the images me appear in a vertical and not horizontal way, there is some .css who arranges it.

p.s

I do not speak very well English

4 Feb 2007, 5:15 PM
#106
sunabac avatar

sunabac

Zen Follower

Join Date:
Dec 2006
Location:
Summer:Ontaio, Winter:Texas
Posts:
211
Plugin Contributions:
0

Post #106 by sunabac

Is it possible to also include this verification with "Contact Us" and/or "Tell a Friend"? Or anything that involves sending email (other than order)??

9 Feb 2007, 3:08 AM
#107
sunabac avatar

sunabac

Zen Follower

Join Date:
Dec 2006
Location:
Summer:Ontaio, Winter:Texas
Posts:
211
Plugin Contributions:
0

Post #107 by sunabac

how can I prevent the validation code from being split onto two lines?
Ideally I would like to start the validation code on new line right under the "Please enter ..."

13 Feb 2007, 5:27 AM
#108
dasuglystick avatar

dasuglystick

New Zenner

Join Date:
Feb 2007
Posts:
1
Plugin Contributions:
0

Post #108 by dasuglystick

Sunabac:

Is it possible to also include this verification with "Contact Us" and/or "Tell a Friend"? Or anything that involves sending email (other than order)??
Maybe someone has done this already but I just did a mod that adds contact us to the current captcha mod. I haven't broken it out into an installable yet. Everything is in overrides and it works as expected. When I get a chance to break it down and zip it up I'll let you know.

Kinda forward for a first post but I just happened to stumble across it.

Btw, hello everyone. :D

13 Feb 2007, 4:12 PM
#109
sunabac avatar

sunabac

Zen Follower

Join Date:
Dec 2006
Location:
Summer:Ontaio, Winter:Texas
Posts:
211
Plugin Contributions:
0

Post #109 by sunabac

DasUglyStick:

Maybe someone has done this already but I just did a mod that adds contact us to the current captcha mod. I haven't broken it out into an installable yet. Everything is in overrides and it works as expected. When I get a chance to break it down and zip it up I'll let you know.

Kinda forward for a first post but I just happened to stumble across it.

Btw, hello everyone. :D

That would be GREAT!
Danke!:smile:

15 Feb 2007, 3:39 PM
#110
woodymon avatar

woodymon

Totally Zenned

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

Post #110 by woodymon

funkey:

I've actually been looking into the addition of a 'contact us' version myself recently (simply because so many people have requested it).
l
Hi Paul,

If you have advanced on this project please do let us know. I'm getting bots using my contact form and would like to implement quality captcha on it (something the bots hopefully will not too quickly adapt to).

Woody

17 Feb 2007, 2:51 AM
#111
jewelrylady avatar

jewelrylady

Totally Zenned

Join Date:
Sep 2005
Location:
ny
Posts:
434
Plugin Contributions:
0

Post #111 by jewelrylady

Thank you works like a Charm!!!! Would love to see this added to the tell a friend nd newsletter mod!!

2 Mar 2007, 9:33 PM
#112
mgrunk avatar

mgrunk

New Zenner

Join Date:
Feb 2007
Posts:
53
Plugin Contributions:
0

Post #112 by mgrunk

Sorry - double posted

Michelle

2 Mar 2007, 9:33 PM
#113
mgrunk avatar

mgrunk

New Zenner

Join Date:
Feb 2007
Posts:
53
Plugin Contributions:
0

Post #113 by mgrunk

I'm at a loss - I installed the newest version on a pretty new zen-cart 1.3.7 - I applied the sql patch via phpmyadmin w/ no problems.

I enabled it via the configuration CAPTCHA w/ no problems.

So, I go to create a new account - fill out the details - see no captcha box, hit submit and it says that the you have entered an incorrect or incomplete...

So, I read through this thread - I copied the tpl_modules_create to /includes/templates/my_template/templates/ and no change.

I recopied everything over thinking maybe they ended up in the wrong directories - no change.

Any other suggestions? BTW, I don't have problems w/ the javascript - it gives me a big read error box if I don't fill in one of the required fields, and my form works if I deactivate CAPTCHA.

Thanks - it should be a great mod - my customer will appreciate it.

BTW, where should the verification box show up?

Michelle

3 Mar 2007, 11:06 AM
#114
woodymon avatar

woodymon

Totally Zenned

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

Post #114 by woodymon

mgrunk:

where should the verification box show up?
The "validation code" box should display at the bottom of create account form

/index.php?main_page=create_account

In admin under Configuration > CAPTCHA Validation, are you certain you have "Activate Validation on Create Account page" set to TRUE ?

Which version of CAPTCHA mod have you installed?

If employing the new Zen cart 1.37 split login option, be aware the CAPTCHA mod does NOT support the "Login" page. but still works on "Create Account" page.

Are you certain you have the below code block near the end of your tpl_modules_create_account.php ????

<?php
if (ACCOUNT_VALIDATION == 'true') {
?>

<?php
if (strstr($_SERVER['REQUEST_URI'],'create_account') && CREATE_ACCOUNT_VALIDATION == 'true' || strstr($_SERVER['REQUEST_URI'],'login') && LOGIN_VALIDATION == 'true') { 
?>

<?php
  if ($is_read_only == false || (strstr($_SERVER['REQUEST_URI'],'create_account')) || (strstr($_SERVER['REQUEST_URI'],'login'))) {
	$sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . zen_session_id() . "'";
	if( !$result = $db->Execute($sql) ) { die('Could not delete validation key'); }
	$reg_key = generate_captcha_code();
	$sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . zen_session_id() . "', '" . $reg_key . "', '" . time() . "')";
	if( !$result = $db->Execute($sql) ) { die('Could not check registration information'); }
?>

<fieldset>
<legend><?php echo CATEGORY_ANTIROBOTREG; ?></legend>
<label class="inputLabel" for="antirobotreg"><?php echo ENTRY_ANTIROBOTREG ?></label>

<?php
$validation_images = '';
for($i = 0; $i < ENTRY_VALIDATION_LENGTH; $i++)
    {
    $parse_image = 'validation/validation_' . $reg_key{$i} . '.gif';
    $parse_image_alt = $reg_key{$i};
    $validation_images .= zen_image(DIR_WS_IMAGES . $parse_image, $parse_image_alt);
    }
    echo '<div class="centered">';
    echo $validation_images . '<br />';
    echo '</div>';
?>

<?php echo zen_draw_input_field('antirobotreg','', 'id="antirobotreg"') . (zen_not_null(ENTRY_ANTIROBOTREG) ? '<span class="alert">' . ENTRY_ANTIROBOTREG_TEXT . '</span>': ''); ?>
<br class="clearBoth" />

Does the validation related HTML show up when you view the source for the create_account web page?

Woody

3 Mar 2007, 4:41 PM
#115
mgrunk avatar

mgrunk

New Zenner

Join Date:
Feb 2007
Posts:
53
Plugin Contributions:
0

Post #115 by mgrunk

mine says - mainpage=login - not create account

I do have activate validation on and activate validation on create account

And, no, I don't see the code on the login page source

So, how have I screwed this up :-) Why am I not seeing a create account page?

Oh, I found the split screen login in Cofiguration/Layout Settings and it' set to false.

Thanks,
Michelle

3 Mar 2007, 8:02 PM
#116
woodymon avatar

woodymon

Totally Zenned

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

Post #116 by woodymon

mgrunk:

mine says - mainpage=login - not create account
I do have activate validation on and activate validation on create account
And, no, I don't see the code on the login page source
So, how have I screwed this up :-) Why am I not seeing a create account page?
Oh, I found the split screen login in Cofiguration/Layout Settings and it' set to false.

Do you see the validation code in the create_accont page HTML source? If not then the code bock above is likely not in tpl_modules_create_account.php. If that is the case re-upload that file from the mod package (assuming you have not done any customization to your tpl_modules_create_account.php, otherwise merge in relevant code block above).

Woody

3 Mar 2007, 11:42 PM
#117
mgrunk avatar

mgrunk

New Zenner

Join Date:
Feb 2007
Posts:
53
Plugin Contributions:
0

Post #117 by mgrunk

Could the problem be that it's not going to the create_login page but to the mainpage=login - I don't have the split login turned on, but I'm not getting to a create_account page. I looked at the tp_modules_create_account and the code is there and there is no override file .

I did a standard install - when you come into the store - it says welcome guest would you like to login - if you click there - you get the login / create account info - but it is a vertical split page -

If I put something in the shopping cart and then check out - it does take me to the mainpage=create_account - but once again, I don't see the verification box nor do I see it in the code. But, it won't let me create the account - it errors off saying the code doesn't match.

I just recopied everything over - I can try and download the zip file again and reload.

but, I really don't understand what's happening.

5 Mar 2007, 12:48 AM
#118
boognish avatar

boognish

New Zenner

Join Date:
Feb 2007
Posts:
14
Plugin Contributions:
0

Post #118 by boognish

I just installed on zc 1.3.7 I get this code at the bottom of my registration page:

1146 Table 'hotrod_zc1.TABLE_ANTI_ROBOT_REGISTRATION' doesn't exist
in:
[DELETE FROM TABLE_ANTI_ROBOT_REGISTRATION WHERE timestamp < '1173051830' OR session_id = '6ee1140ffc6f8e53f4de896c83b68f08']

I did enter the tables in my sql database. Is the table it's looking for the one I have called zen_anti_robotreg?

Help?

5 Mar 2007, 4:54 AM
#119
boognish avatar

boognish

New Zenner

Join Date:
Feb 2007
Posts:
14
Plugin Contributions:
0

Post #119 by boognish

I have reinstalled sql several times and I'm still getting this at the bottom of the page:

[I]1146 Table 'hotrod_zc1.TABLE_ANTI_ROBOT_REGISTRATION' doesn't exist
in:
[DELETE FROM TABLE_ANTI_ROBOT_REGISTRATION WHERE timestamp < '1173066328' OR session_id = '6ee1140ffc6f8e53f4de896c83b68f08'][/I]
```Here is my SQL code

CAPTCHA Verification SQL Install

For Zen-Cart 1.3.6

Last Updated: 31/10/2006

SELECT @sortorder:=max(sort_order)
FROM zen_configuration_group;

INSERT INTO zen_configuration_group VALUES (NULL, 'CAPTCHA Validation', 'Anti-Robot Registration/Verification', @sortorder+1, 1);

SELECT @captchaid:=max(configuration_group_id)
FROM zen_configuration_group;

INSERT INTO zen_configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( '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.', @captchaid, 10, NULL, 'zen_cfg_select_option(array('true', 'false'),' );

INSERT INTO zen_configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Activate Validation on Create Account page', 'CREATE_ACCOUNT_VALIDATION', 'true', 'Enables verification on Create Account page. (Recommended)', @captchaid, 20, NULL, 'zen_cfg_select_option(array('true', 'false'),' );

INSERT INTO zen_configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Activate Validation on Login page', 'LOGIN_VALIDATION', 'true', 'Enables verification on Login page. (Optional)', @captchaid, 30, NULL, 'zen_cfg_select_option(array('true', 'false'),' );

INSERT INTO zen_configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function ) VALUES ( 'Length of Validation Code', 'ENTRY_VALIDATION_LENGTH', '5', 'Default Length = 5, Maximum Length = 32', @captchaid, 50, NULL, NULL );

DROP TABLE IF EXISTS zen_anti_robotreg;

CREATE TABLE zen_anti_robotreg (session_id char(32) DEFAULT '' NOT NULL, reg_key char(32) NOT NULL, timestamp int(11) unsigned NOT NULL, PRIMARY KEY (session_id));

6 Mar 2007, 3:34 AM
#120
funkey avatar

funkey

New Zenner

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

Post #120 by funkey

Do you have a URL where we can look at the code to see what is happening?

A couple of other questions:

  • Did you upload the images to the images/ directory (i've seen this in the past where people suggest the code is there, but there's no image?)

  • If you have a test/demo shop, if you tried uploading the templates to the templates_default directory (as the install is laid out in the download file) instead of into your custom template?

mgrunk:

Could the problem be that it's not going to the create_login page but to the mainpage=login - I don't have the split login turned on, but I'm not getting to a create_account page. I looked at the tp_modules_create_account and the code is there and there is no override file .

I did a standard install - when you come into the store - it says welcome guest would you like to login - if you click there - you get the login / create account info - but it is a vertical split page -

If I put something in the shopping cart and then check out - it does take me to the mainpage=create_account - but once again, I don't see the verification box nor do I see it in the code. But, it won't let me create the account - it errors off saying the code doesn't match.

I just recopied everything over - I can try and download the zip file again and reload.

but, I really don't understand what's happening.