recaptcha2 is not loaded
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.
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
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 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:
- innerHTML snippet for comment entry form, and
- 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?