Form Help

TOPIC:

Re: Recaptcha in Classic Form? 9 years 2 months ago #66397

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
can you try putting this in the after form piece? (just this, not the js inclusion)
echo '<script type="text/javascript">
           Recaptcha.create("6LeGAMwSAAAAAFdTnJ821YjJMJGTBg3V68TYjpgu", "recaptcha_div", {
             theme: "clean",
             callback: Recaptcha.focus_response_field});
      </script>';

Please Log in or Create an account to join the conversation.

Re: Recaptcha in Classic Form? 9 years 2 months ago #66399

  • jpresult
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 49
  • Thanks: 0
That was it. Thanks!

Please Log in or Create an account to join the conversation.

Re: Recaptcha in Classic Form? 9 years 2 months ago #66437

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
ok, are you now at the point to verify the captcha result? (validation)

Please Log in or Create an account to join the conversation.

Re: Recaptcha in Classic Form? 9 years 2 months ago #66445

  • Topic Author
  • Ingrid
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 30
  • Thanks: 0
I'm at the point to verify the captcha result.

Regards

Ingrid

Please Log in or Create an account to join the conversation.

Re: Recaptcha in Classic Form? 9 years 2 months ago #66461

  • jpresult
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 49
  • Thanks: 0

TheMuffinMan wrote: ok, are you now at the point to verify the captcha result? (validation)


Yes

Please Log in or Create an account to join the conversation.

Re: Recaptcha in Classic Form? 9 years 2 months ago #66465

  • jpresult
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 49
  • Thanks: 0
I have tried the following but no luck yet.
require_once(JPATH_SITE.'/administrator/components/com_breezingforms/libraries/recaptcha/recaptchalib.php');
$privatekey = "XXXxxxxXXxXXXx";

if ($_POST["recaptcha_response_field"]) {
    $resp = recaptcha_check_answer (
        $privatekey,
        $_SERVER["REMOTE_ADDR"],
        $_POST["recaptcha_challenge_field"],
        $_POST["recaptcha_response_field"]
    );

    if (!$resp->is_valid) {
        echo    '<script type="text/javascript">
                    location.go(-1);
                    exit;
                </script>';
    }
}

And BTW, I noticed that your recaptchalib.php is an older version. Not sure what changed with the newer version but it does use "google.com/recaptcha/api" instead of "api.recaptcha.net"

Please Log in or Create an account to join the conversation.

Last edit: Post by jpresult.
Moderators: ForumSupport
Time to create page: 0.052 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!