Author Topic: Invisible reCAPTCHA [SOLVED]  (Read 312 times)

guardiano78

  • Jr. Member
  • **
  • Posts: 277
    • C.S.S. Informatica
Invisible reCAPTCHA [SOLVED]
« on: October 29, 2019, 12:57:44 pm »
Hello,
I can't get the plugin to work with the badge.
I followed the simple instructions on this page:
https://www.joomla.it/blog/8982-attivare-invisible-recaptcha-su-joomla-3-9.html

but without success.
I forget something? or the plugin does not work?

Thanks.

Joomla 3.9.9

guardiano78

  • Jr. Member
  • **
  • Posts: 277
    • C.S.S. Informatica
Re: Invisible reCAPTCHA
« Reply #1 on: October 29, 2019, 13:23:33 pm »
ok, i discovered that it works only for joomla contact form.
If i check "Use Recaptcha for registration" in virtuemart, Recaptcha v3  doesn't works.

Anyone knows if is it possible to make it work wherever are displayed form module? for example registration/edit virtuemart profile page and checkout page?

thanks.

guardiano78

  • Jr. Member
  • **
  • Posts: 277
    • C.S.S. Informatica
Re: Invisible reCAPTCHA [SOLVED]
« Reply #2 on: October 30, 2019, 21:13:18 pm »
Hello,
for fix the issue, i imported the plugin in virtuemart registration view page.

Thank you.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Invisible reCAPTCHA [SOLVED]
« Reply #3 on: October 31, 2019, 08:07:16 am »
Please share your knowledge with the project and post how you solved it.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

guardiano78

  • Jr. Member
  • **
  • Posts: 277
    • C.S.S. Informatica
Re: Invisible reCAPTCHA [SOLVED]
« Reply #4 on: October 31, 2019, 09:50:51 am »
Hello Milbo,
i added the following code:
Code: [Select]
<?php
JPluginHelper::importPlugin('captcha''recaptcha_invisible'); 
$dispatcher JDispatcher::getInstance();
$dispatcher->trigger('onInit','jform_captcha'); 

$plugin JPluginHelper::getPlugin('captcha''recaptcha_invisible');
$params = new JRegistry($plugin->params);
?>

<div id="jform_captcha" class=" required g-recaptcha" data-sitekey="<?php echo $params->get('public_key''default_value'?>" data-badge="<?php echo $params->get('badge''default_value'?>" data-size="invisible" data-tabindex="0" data-callback="" data-expired-callback="" data-error-callback="" data-recaptcha-widget-id="0"></div>
I'm not sure this is the right way, anyway it works … waiting for native implementation :-)
maybe someone can try and give me feedback.

bye