Hi,
Yes i did. Actually it was easier than i expected. So, here is what you need to do to enable reCaptcha2.0
To fix it on "modal popup"
- Open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/askquestion/form.php
- Look for these lines:
<?php // captcha addition
if(VmConfig::get ('ask_captcha')){
JHTML::_('behavior.framework');
JPluginHelper::importPlugin('captcha');
$dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onInit','dynamic_recaptcha_1');
?>
<div id="dynamic_recaptcha_1"></div>
<?php
}
// end of captcha addition
?>
- replace them with these:
<?php // captcha addition
echo $this->captcha;
// end of captcha addition
?>
To fix it on "TAB" on product details page
Open these PHP files:
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/flexv2.php
- In both files, look for these lines:
<?php // captcha addition
if(VmConfig::get ('ask_captcha')){
JHTML::_('behavior.framework');
JPluginHelper::importPlugin('captcha');
$dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onInit','dynamic_recaptcha_1');
?>
<div id="dynamic_recaptcha_1"></div>
<?php
}
// end of captcha addition
?>
- replace them with these:
<?php // captcha addition
echo shopFunctionsF::renderCaptcha('ask_captcha');
// end of captcha addition
?>
and you will be good to go.
Regards.