Official support hours: from 9 AM — 6 PM Monday to Friday (GMT +2).
The support staff may not reply on technical inquiries on weekends; all requests will be answered necessarily during working days. Reply time: depending on the complexity of your issue, the answer can be provided between a few hours up to 48 hours. In the particular instances we will notify you if extra time will be required to solve the issue.



The forum is in read only mode.

Problem with Recaptcha v2

5 years 2 days ago - 5 years 2 days ago #873 by Wiktor Kalita
Problem with Recaptcha v2 was created by Wiktor Kalita
1. Recaptcha v2 is invisible on the comments form.

2. How to change the color of the buttons from blue to burgundy?

3. Inserting the invisible Recaptcha (very desirable)

Thank you for your help! Kamil.
4 years 11 months ago #876 by Eugene S.
Replied by Eugene S. on topic Problem with Recaptcha v2
Hello Kamil,
1. As far as I know, the official JComments has no Google Captcha support.
We are using a fork of JComments that supports Google Captcha v.2 and is PHP7 compliant.

But it seems our templates should be updated for Google Captcha support.
Try to patch the following file:
Find lines 126-135:

		if ($this->getVar('comments-form-captcha', 0) == 1) {
			$html = $this->getVar('comments-form-captcha-html');
			if ($html != '') {
				echo $html;
			} else {
				$link = JCommentsFactory::getLink('captcha');

And replace them to:
		if ($this->getVar('comments-form-captcha', 0) == 1) {
			$html = $this->getVar('comments-form-captcha-html');
            if ($html == 'recaptcha') {
                    // Recaptcha
                $recaptcha = JCaptcha::getInstance('recaptcha', array('namespace' => 'anything'));
                echo $recaptcha->display('recaptcha', 'dynamic_recaptcha_1','g-recaptcha');
			elseif ($html != '') {

2. You need to customize CSS here:
Find colors:
#6493BD - button
#51789B - hover button
And replace these colors on yours.

3. Invisible Captcha is Google Captcha ver.3.0. I do not know such a fork of JComments.
Recently official JComments 3.0.7 was released, but its code is not refactored to meet PHP7 standards and I we do not use it.
Please contact a component developer and send him a feature request.

Like our extensions for Kunena?
Add your voice to the JED listing with a 100 score review:
Moderators: Eugene S.