Author Topic: wxcontact.php with Google reCAPTCHA V2.0 now available  (Read 945 times)

0 Members and 1 Guest are viewing this topic.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
wxcontact.php with Google reCAPTCHA V2.0 now available
« on: April 07, 2018, 07:12:04 PM »
I've completed updating a Mike Challis contact script to use Google reCAPTCHA V2.0 for standalone or Saratoga template websites.

See:  https://saratoga-weather.org/scripts-contact.php#contact

for details/download.  It works in both Saratoga templates and as a standalone.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 724
    • Lake Huron Weather
Re: wxcontact.php with Google reCAPTCHA V2.0 now available
« Reply #1 on: April 07, 2018, 07:47:54 PM »
Nice job - as always - Ken, Thanks!

CW3699

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2295
    • CNYWeather
Re: wxcontact.php with Google reCAPTCHA V2.0 now available
« Reply #2 on: April 08, 2018, 06:11:10 AM »
You're the best Ken. Thanks for all you do for everyone!!
Tony




Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • Indian Trail Weather
Re: wxcontact.php with Google reCAPTCHA V2.0 now available
« Reply #3 on: April 08, 2018, 09:23:11 AM »
Ken,

Great job! Thanks for the updated script. Your continued support for all of us weather junkies is much appreciated ...  =D>

One question. I've never seen this before. I'm trying to edit the notation in "contact-inc.php" but after editing and saving the edited file it does not
refresh with the new text on my page. I've cleared the browser cache (FF) but no go. Ideas?
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 724
    • Lake Huron Weather
Re: wxcontact.php with Google reCAPTCHA V2.0 now available
« Reply #4 on: April 08, 2018, 09:38:16 AM »
If I understand what your after - try editing the wxcontact-en.html file to change the message displayed.

CW3699

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • Indian Trail Weather
Re: wxcontact.php with Google reCAPTCHA V2.0 now available
« Reply #5 on: April 08, 2018, 09:51:54 AM »
Right on! That's it. I had a feeling that it was a simple fix. My "lesson for the day" ... Much appreciated!  \:D/

Ken, you may go back to sleep ... Issue resolved.
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 724
    • Lake Huron Weather
Re: wxcontact.php with Google reCAPTCHA V2.0 now available
« Reply #6 on: April 08, 2018, 09:56:39 AM »
Great Jeff, glad that is what you were after and I could help.
Always nice to try and give back when there are so many here that help us (me)  :lol:

CW3699

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: wxcontact.php with Google reCAPTCHA V2.0 now available
« Reply #7 on: April 08, 2018, 03:54:15 PM »
This is no big thing but I can't get the script to validate.  I am using

 
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
This is the error kicked out by the validator:

Quote
Line 314, Column 39: there is no attribute "data-sitekey"
<div class="g-recaptcha" data-sitekey="6Le82VEUAAAAAGTscGo_sRcxn7kqXHu2fgd0a86U…

  If this can't be helped I'll just remove the link to the validator and move on!

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wxcontact.php with Google reCAPTCHA V2.0 now available
« Reply #8 on: April 08, 2018, 04:00:26 PM »
Can't be helped... the data-sitekey is used by Google reCAPTCHA.

You can change that one page to HTML5 (if using the Saratoga template with up-to-date top.php V3.04 - 05-Feb-2013)
by adding
Code: [Select]
$useHTML5 = true; before the include_once("top.php") and that will change that page to be HTML5.
Likewise a
Code: [Select]
$useUTF8 = true; will force using UTF-8 instead of ISO-8859-n for the character set.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline tmabell

  • Forecaster
  • *****
  • Posts: 394
    • Mishawaka Weather
Re: wxcontact.php with Google reCAPTCHA V2.0 now available
« Reply #9 on: April 08, 2018, 04:58:33 PM »
Ken, Thank you.  I was afraid of that.  I am using the stand-alone version so I'll live with it.  Thanks very much for the script!

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: wxcontact.php with Google reCAPTCHA V2.0 now available
« Reply #10 on: April 08, 2018, 05:07:05 PM »
For the standalone contact.php script, you can change it to HTML5 by changing
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- standalone contact.php V2.00 - 07-Apr-2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Contact</title>
to
Code: [Select]
<!DOCTYPE html>
<html lang="en">
<head>
<!-- standalone contact.php V2.00 - 07-Apr-2018 -->
<title>Contact</title>
and that should do it.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

 

anything