Jcomments-Recaptcha2 icon indicating copy to clipboard operation
Jcomments-Recaptcha2 copied to clipboard

recaptcha2 is not loaded

Open twister65 opened this issue 7 years ago • 3 comments

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.

twister65 avatar Aug 21 '18 20:08 twister65

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

exstreme avatar Aug 22 '18 08:08 exstreme

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.

nikiedev avatar Jan 21 '19 17:01 nikiedev

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?

ohuseyinoglu avatar Nov 03 '20 23:11 ohuseyinoglu