Hot answers tagged

8

Answer for Joomla! users Well, that is not a very simple one to answer, and others have already tried to explain.Namely: GitHub Issue #9544 Similar post in Joomla.StackExchange.com Joomla Forum Related Post What actually happened is that some details of the default captcha included in Joomla changed, and custom form developers that do not use a certain ...


4

I got the same issue and suddenly also v1 stopped working before March 31st. I wrote a fix for Joomla 2.5 v1 ReCaptcha Plugin, that seems to work... Download the fix: http://altersoftware.it/recaptcha.php.zip Expand it, and use its content to replace content of original file your-site-root/plugin/captcha/recaptcha/recaptcha.php According to big G's ...


3

Answer for Joomla Users An update of the Captcha - ReCaptcha plugin changed the existing functionality and many of the extension developers need to update the way their extensions handled Captcha responses. So, a first step is to be 100% sure that you are using the latest version available! If you are sure about that, please contact the extension ...


2

Fist of all, PHP is case sensitive. This means that CheckAnswer and checkAnswer is not the same (note the capital c). The correct usage is $captcha->checkAnswer('your_captcha_id'). What's the problem with your approach: You are passing the captcha's post result as the ID of your captcha. Since you have used captcha as the $field_id when you included the ...


2

I cannot see how the accepted answer answers the question. So, since you are quoting from my answer on the other question, I will explain what I meant. The JCaptcha::display() function accepts three arguments: Name, ID and Class. Since Joomla 3.5, the first two arguments were rendered useless. That's why I wrote your_old_and_useless_id as the $field_id. ...


2

This won't work. View does not and cannot handle data validation. It's a task for controller/model. Login forms in Joomla! do not support plugins at the moment. There are several ways to achieve what you want: 1) Create a custom component for login functionality and a plugin to redirect com_users traffic to this component. 2) Create a plugin that alters ...


2

As of Joomla 3.7, the arguments for JHtml were updated whilst keeping backward compatibility. So rather than passing , true, true, you need to pass an array of options, then an array of attributes, like so: JHtml::_('script', $file, array('version' => 'auto'), array('data-cfasync' => false)); You can have a look at the source code here: https://...


1

The form which displays the captcha will have a label field which will be set to a Joomla language constant. You need to find the form xml definition, and then find the label for the captcha to get the name of the language constant. Then change the text associated with that language constant in the appropriate language .ini file. If for some reason you can'...


1

Never got it to work with Joomla's $captcha->checkAnswer(). So instead, I've omitted Joomla's checking solution and went straight with Google's checking API. Here's the code I'm successfully using for the checking part: $secretKey = "my_secret_key"; $ip = $_SERVER['REMOTE_ADDR']; $response=file_get_contents("https://www.google.com/recaptcha/api/...


1

Ok, problem solved. In file /plugins/captcha/recaptcha/recaptcha.php replace these lines (62 - 68): $document = JFactory::getDocument(); $theme = $this->params->get('theme', 'clean'); $document->addScriptDeclaration('jQuery(document).ready(function($){$(window).load(function() {' . 'grecaptcha.render("' . $id . '", {sitekey: "' . $pubkey . '", ...


1

For those who are with the same problem, I resolved mine using an extension called 'EXT Simple Contact Form'. I download it on: http://www.ext-joom.com/en/extensions/ext-simple-contact-form-module.html


1

If you still have the old keys you've generated for reCAPTCHA v1 - it should still work. If you generate new keys - they won't.


1

If you are using Google's reCaptcha that is the default plugin for Joomla!, the validation is done off site and a pass or fail "flag" is returned to your form...no further action needed from you.


Only top voted, non community-wiki answers of a minimum length are eligible