Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recaptcha2 is not loaded #6

Open
twister65 opened this issue Aug 21, 2018 · 3 comments
Open

recaptcha2 is not loaded #6

twister65 opened this issue Aug 21, 2018 · 3 comments

Comments

@twister65
Copy link

twister65 commented Aug 21, 2018

In the administration panel, click on :
Components->JComments->Settings->Layout
Select :
Comment form -> Default -> Hide

See the site, click on the link "Add comment" in an article.
The comment form is displayed without reCaptcha.

@exstreme
Copy link
Owner

Hello!
This is known issue and I can't fix this bug. If you select 'Hide" value in properties, comment form will loading with ajax and Recaptcha scripts will not initializing

@nikiedev
Copy link

I also tried to solve the problem, but I didn't find the solution yet. I will try later again when I have more free time. If anyone has an idea where to fix - let's discuss.

@ohuseyinoglu
Copy link

I also tried to solve the problem, but I didn't find the solution yet. I will try later again when I have more free time. If anyone has an idea where to fix - let's discuss.

I'm not familiar with either Joomla/JComments execution flow, or recaptcha initialization scripts, so I may be off-base here (sorry if that's the case), but, since "ideas" were requested let me provide one: :)

When the "Add Comment" link is clicked, the AJAX POST request is answered with a JSON that includes 2 elements:

  1. innerHTML snippet for comment entry form, and
  2. a javascript that contains a definition, and timed-call for JCommentsInitializeForm

Would it be possible (depending on the selected captcha method) to (selectively) stick calls to reCaptcha initialization functions in the code for this JCommentsInitializeForm function? Would that solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants