If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / non-CAPTCHA and Honey-pots

non-CAPTCHA and Honey-pots

Started by davewest on 15 Jun 2018, 3:53 AM · Views: 51,806

Results 21 to 40 of 135
13 Feb 2019, 3:08 AM
#21
kcb410 avatar

kcb410

Zen Follower

Join Date:
Dec 2008
Location:
Toronto
Posts:
348
Plugin Contributions:
0

non-CAPTCHA and Honey-pots

Hello All,

I've installed this mod on Zen 154. When a new customer enters their info and clicks "Submit the Information" register they get a white screen with "var-type undefined: stringIgnoreNull(TheirName)" in the upper right.

Have I missed something in the install or should I not be using this on 154?

Any help is appreciated. Thank you.

13 Feb 2019, 3:49 AM
#22
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: non-CAPTCHA and Honey-pots

kcb410:

Hello All,

I've installed this mod on Zen 154. When a new customer enters their info and clicks "Submit the Information" register they get a white screen with "var-type undefined: stringIgnoreNull(TheirName)" in the upper right.

Have I missed something in the install or should I not be using this on 154?

Any help is appreciated. Thank you.

If you dragged and dropped on a vanilla ZC 155f, you would be OK, but any other ZC or modified 155f, you would need to do a compare and just do the edits for the spam test.

Dave
Always forward thinking... Lost my mind!

13 Feb 2019, 2:25 PM
#23
kcb410 avatar

kcb410

Zen Follower

Join Date:
Dec 2008
Location:
Toronto
Posts:
348
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

davewest:

If you dragged and dropped on a vanilla ZC 155f, you would be OK, but any other ZC or modified 155f, you would need to do a compare and just do the edits for the spam test.

Thanks Dave. I'll try the compare and merge.

13 Feb 2019, 3:42 PM
#24
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

I decided to look at it in my seldom used IE and find a problem with the display, but not the function. "Value: 25" always shows no matter what number is chosen as the key or on the slider. The ball is missing as well, although there is a ghost of it moving with the pointer. Has anyone come across this? It works fine in FireFox and Chrome. Many of our customers still use IE.

13 Feb 2019, 4:01 PM
#25
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

This must be a css issue but i'm so rusty on that. Not sure if the constant "Value 25" is a css thing. Insights appreciated.

13 Feb 2019, 7:35 PM
#26
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: non-CAPTCHA and Honey-pots

athena:

This must be a css issue but i'm so rusty on that. Not sure if the constant "Value 25" is a css thing. Insights appreciated.

You didn't say what IE version... if its less then 9, the slider may show as an input field.. The value field is done with JS, if missing, no value is displayed. I'm unable to find anything that's older then IE9 to test with! Browsers capable of HTML5 would display the slider, older ones need JS to do sliders.

Dave
Always forward thinking... Lost my mind!

13 Feb 2019, 8:26 PM
#27
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

I looked at it in a very old ie where, you are right, there is an input field. My Windows 7, IE 11 is the one I'm working on where the slider ignores the word "human" and does not show the selection in the "value:" I can play with the css to show the ball instead of a ghost, but the js to move the "value:" & the word "human" as the slider moves may be beyond me.

13 Feb 2019, 8:58 PM
#28
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Thank you. So take a look at this in IE 11. I made a few changes to the css that show the slider with a contrasting color rather than a ball without compromising the look of it in FireFox. Still need the Human word to show. Since I know the number I can move the slider in IE 11 and it will send an email but there is no way for the customer to know they found "Human". see w h b e e . com/index.php?main_page=contact_us

14 Feb 2019, 4:41 AM
#29
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: non-CAPTCHA and Honey-pots

athena:

Thank you. So take a look at this in IE 11. I made a few changes to the css that show the slider with a contrasting color rather than a ball without compromising the look of it in FireFox. Still need the Human word to show. Since I know the number I can move the slider in IE 11 and it will send an email but there is no way for the customer to know they found "Human". see w h b e e . com/index.php?main_page=contact_us

Link was no help, lead me to a bee site with many issues, but no contact form or any others I could find.. The word is for human to read, it matters not to the test which is based on the number you selected in the admin layout settings.

I used some basic css styling for the slider. I have a different style for my own page where the ball is an icon.. You can use cross browser css for catching IE bugs.

After many years of fighting windoze I gave it up and moved on to Linux.. I have the slider in use on my site.

Dave
Always forward thinking... Lost my mind!

14 Feb 2019, 7:59 AM
#30
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

zc156a the slider works well in Chrome and Firefox.

I decided to test in IE and Edge and the result is zilch. The slider line displays in IE and Edge but the ball does not. This is on a vanilla install.

WAMP 3.1.6, Apache 2.4.33, PHP 7.3.1, MySql 5.7.21, Windows 10

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

14 Feb 2019, 2:42 PM
#31
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

I understand not wanting to style for IE but 18% of our users on our main site, (not the link I gave you-that is a test site)... 18% still use ms IE.. more than use FireFox. I can't go live with the slider until it works. What is happening is the count that changes with the slider is not showing the word "Human" but if you land on the number set in Admin the form works. In the "Value:25" displayed to the customer, the number 25 never changes with the slider like it does in FireFox. For anyone working on this here is the change I made to the css to get it to at least show up in IE

/* The slider itself */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;  
    background: #C90;  
    outline: 3px;
    opacity: .7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}
14 Feb 2019, 3:49 PM
#32
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: non-CAPTCHA and Honey-pots

athena:

I understand not wanting to style for IE but 18% of our users on our main site, (not the link I gave you-that is a test site)... 18% still use ms IE.. more than use FireFox. I can't go live with the slider until it works. What is happening is the count that changes with the slider is not showing the word "Human" but if you land on the number set in Admin the form works. In the "Value:25" displayed to the customer, the number 25 never changes with the slider like it does in FireFox. For anyone working on this here is the change I made to the css to get it to at least show up in IE

/* The slider itself */
.slider {
-webkit-appearance: none;
width: 100%;
height: 5px;
border-radius: 5px;
background: #C90;
outline: 3px;
opacity: .7;
-webkit-transition: .2s;
transition: opacity .2s;
}


Its not an issues designing for IE, I don't have access to MS products outside of VM.  With any browser that supports HTML5, the slider should appear without any added css!  

The value display is done with a jQuery script!  if scripting is turned off or jQuery base not installed, then the word human or numbers would not get displayed or updated... The slider is just one of many styles of easy testing.  You could use a simple question and answer input field for all as 2+2=  Or not use any tests... the two hidden fields work grate without  testing...  One really don't need the slider!!  I would be interested to see if your IE11 can see the slider on my site!  I don't use the same css as what was sent in...  We also have ways of working with IE bugs...

For info, -webkit-appearance: none;  and  -moz-appearance: none;  is turning off the default browser css which means you need to design it yourself.  Comment out the css and the default browser css takes over.  For some good reading <https://developer.mozilla.org/en-US/docs/Web/CSS/appearance>

Dave
Always forward thinking... Lost my mind!

14 Feb 2019, 4:34 PM
#33
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Thank you for the link... I'll work on understanding this... sorry for not getting that about the hidden fields. The spam has certainly stopped! Yes, your Contact Us form does look and act the same as in my IE 11 browser. Thank you for all your work on this and for sharing.

14 Feb 2019, 7:10 PM
#34
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: non-CAPTCHA and Honey-pots

athena:

Thank you for the link... I'll work on understanding this... sorry for not getting that about the hidden fields. The spam has certainly stopped! Yes, your Contact Us form does look and act the same as in my IE 11 browser. Thank you for all your work on this and for sharing.

No problem... here's a fix for IE issues... others are reporting the same with other jQuery slider code.. Around IE 7 to current IE auto goes into compatibility (quirk) mode with just the <!DOCTYPE html>

The fix was found that adding the following meta tag resolved there issues... I just added to my own html_header.php file.

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

Give it a try and let me know...

Dave
Always forward thinking... Lost my mind!

14 Feb 2019, 8:28 PM
#35
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Darn... nope. I added "IE=11" and put it right under the head tag and tried again at the top of my meta tag list in my html_header.php with no change.

14 Feb 2019, 8:32 PM
#36
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

On another note... will the hidden forms work if the slider is turned off in the admin?

14 Feb 2019, 11:09 PM
#37
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: non-CAPTCHA and Honey-pots

athena:

On another note... will the hidden forms work if the slider is turned off in the admin?

The hidden fields always work, the slider can be turned off or commented out...

Investigating more, the styling of the slider in IE is possible, but the the way the slider fires in IE11 is different from the others and was listed as a bug in IE11. However, MS has changed everything around so hunting for more info is a pain...

Which explains why the script is not working as expected in IE11...

The numbers displayed at the slider button is IE idea of tool tips, which we can exploit simply by changing the text to 'please slide to the number 11!' By changing the human in admin to match the test number... I chanced mine to that.

Dave
Always forward thinking... Lost my mind!

15 Feb 2019, 5:17 PM
#38
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

Well, played with that awhile but so happy no more Contact Us spam!! Love the hidden fields! Thank you again!

16 Feb 2019, 5:04 AM
#39
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

V156a and non-CAPTCHA and Honey Pots and getting Internet Explorer to play nicely.

This what I have found:

IE defaults to compatibility (quirks) mode on local intranets. The way to overcome this is to add ```
<meta http-equiv=”x-ua-compatible” content=”IE=edge” />


IE and Edge both hide the slider ball (thumb) by placing it behind the slider bar.
[Attachment no longer available]

IE does not execute js script that it does not like. There are no warnings and no errors.
IE seems to prefer onchange to oninput for detecting the movement of the slider.

I modified the non-CAPTCHA and Honey Pots js file  for the contact_us page as this is the only one I use.
<script type="text/javascript"> $(document).ready(function () { var slideCol = document.getElementById("id1"); var y = document.getElementById("f"); y.innerHTML = slideCol.value; // Display the default slider value slideCol.onchange = displayCol; // IE prefers onchange so call the named function // Update the current slider value (each time you drag the slider handle) slideCol.oninput = displayCol; // call the named function function displayCol() { // name the function y.innerHTML = this.value; if (this.value == "<?php echo SPAM_TEST; ?>") { y.innerHTML = "<?php echo SPAM_ANSWER; ?>"; } } }); </script>
The other browsers and Edge still will work with this.

I use the ZCA_Bootsrap template you style sheet will be different.
I created another definition for thumb for IE

.slider::-ms-thumb {
-webkit-appearance: none;
width: 25px;
height: 25px;
border-radius: 50%;
background: red;
cursor: pointer;
z-index: 900;
}


It is ugly as the bars in the slider are still visible but it works.

Thanks Dave for a great plugin.

environment Dev: WAMP 3.1.6; Zen Cart 156a; Apache 2.4.33; PHP 7.3.1; MySQL 5.7.21; Windows 10 
environment Test: Zen Cart 156a; Apache 2.4.29; PHP 7.2.4; MySQL 5.7.24; Linux 4.15.0

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

16 Feb 2019, 5:19 AM
#40
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

Re: non-CAPTCHA and Honey-pots

V156a and non-CAPTCHA and Honey Pots and getting Internet Explorer to play nicely.

This what I have found:

IE defaults to compatibility (quirks) mode on local intranets. The way to overcome this is to add ```
<meta http-equiv=”x-ua-compatible” content=”IE=edge” />


IE and Edge both hide the slider ball (thumb) by placing it behind the slider bar.
[Attachment no longer available]

IE does not execute js script that it does not like. There are no warnings and no errors.
IE seems to prefer onchange to oninput for detecting the movement of the slider.

I modified the non-CAPTCHA and Honey Pots js file  for the contact_us page as this is the only one I use.
<script type="text/javascript"> $(document).ready(function () { var slideCol = document.getElementById("id1"); var y = document.getElementById("f"); y.innerHTML = slideCol.value; // Display the default slider value slideCol.onchange = displayCol; // IE prefers onchange so call the named function // Update the current slider value (each time you drag the slider handle) slideCol.oninput = displayCol; // call the named function function displayCol() { // name the function y.innerHTML = this.value; if (this.value == "<?php echo SPAM_TEST; ?>") { y.innerHTML = "<?php echo SPAM_ANSWER; ?>"; } } }); </script>
The other browsers and Edge still will work with this.

I use the ZCA_Bootsrap template your style sheet will be different.

I deleted the slider height of 1px.

I created another definition for thumb for IE

.slider::-ms-thumb {
-webkit-appearance: none;
width: 25px;
height: 25px;
border-radius: 50%;
background: red;
cursor: pointer;
z-index: 900;
}


It is ugly as the bars in the slider are still visible but it works.

Thanks Dave for a great plugin.

environment Dev: WAMP 3.1.6; Zen Cart 156a; Apache 2.4.33; PHP 7.3.1; MySQL 5.7.21; Windows 10 
environment Test: Zen Cart 156a; Apache 2.4.29; PHP 7.2.4; MySQL 5.7.24; Linux 4.15.0

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB