normal Ot testimonials not working captcha

More
5 years 2 months ago - 5 years 2 months ago #9500 by Stas Pavlov
Hello, my site is not working captcha on the form.
In the settings of the component is enabled but in the form it is not. Help solve the problem, a lot of spam comes in comments.
_https://lik-astana.kz/posmotret-vse-otzyvy.html
Last edit: 5 years 2 months ago by Stas Pavlov.

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #9501 by Stas Pavlov
Really no one asked the problem to address this issue. After all, it is very important in protecting the site. Knowledgeable people help me solve this problem

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #9502 by Stas Pavlov
can someone tell me how to fight spam in this component. But still I wanted to connect captcha

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #9507 by Stas Pavlov
Judging by ignoring the topic, the problem is not solved. :unsure: Most likely you will have to install another component. :ohmy:

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #9510 by Stas Pavlov
The problem is that the captcha is displayed but is flawed (sends comments without confirming it) the page with the form _https://lik-astana.kz/posmotret-vse-otzyvy.html
Captcha spelled /components/com_testimonies/models/forms/item.xml
Code:
<field name="captcha" type="captcha" label="COM_TESTIMONIES_FIELD_CAPTCHA_LABEL" description="COM_TESTIMONIES_FIELD_CAPTCHA_DESC" validate="captcha" />
I bring in /templates/lik-astana/html/com_testimonies/list/default_form.php
Connection
Code:
<?php defined('_JEXEC') or die; $params = JComponentHelper::getParams('com_testimonies'); if($params->get('captcha')!= '' || $params->get('captcha')!= 0) { JPluginHelper::importPlugin('captcha'); $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onInit','dynamic_recaptcha_1'); } ?>
In the form template, captcha itself is displayed
Code:
<?php if($params->get('captcha')!= '' || $params->get('captcha')!= 0): ?> <div class="control-group form-group"> <div class="control-label col-sm-4"> <?php echo $this->form->getLabel('captcha'); ?> </div> <div class="controls col-sm-8"> <div id="dynamic_recaptcha_1"> <?php echo $this->form->getInput('captcha'); ?> </div> </div> </div>
tell me what's wrong.
Added a field as required required="true"
Code:
<field name="captcha" type="captcha" required="true" label="COM_TESTIMONIES_FIELD_CAPTCHA_LABEL" description="COM_TESTIMONIES_FIELD_CAPTCHA_DESC" validate="captcha" />
but the message is all sent smoothly without confirmation.

Please Log in or Create an account to join the conversation.

Time to create page: 0.281 seconds

About Growth

Innovative tech for eCommerce growth

Contact Info

Head: No. 3, 175/55 Lane, Lac Long Quan St., Nghia Do Ward, Cau Giay District, Hanoi City, Vietnam