- Posts: 5
- Thank you received: 0
Ot testimonials not working captcha
- Stas Pavlov
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
6 years 3 months ago - 6 years 3 months ago #9500
by Stas Pavlov
Ot testimonials not working captcha was created 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
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: 6 years 3 months ago by Stas Pavlov.
Please Log in or Create an account to join the conversation.
- Stas Pavlov
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 5
- Thank you received: 0
6 years 3 months ago #9501
by Stas Pavlov
Replied by Stas Pavlov on topic Ot testimonials not working captcha
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.
- Stas Pavlov
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 5
- Thank you received: 0
6 years 3 months ago #9502
by Stas Pavlov
Replied by Stas Pavlov on topic Ot testimonials not working captcha
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.
- Stas Pavlov
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 5
- Thank you received: 0
6 years 2 months ago #9507
by Stas Pavlov
Replied by Stas Pavlov on topic Ot testimonials not working captcha
Judging by ignoring the topic, the problem is not solved.
Most likely you will have to install another component. :ohmy:

Please Log in or Create an account to join the conversation.
- Stas Pavlov
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 5
- Thank you received: 0
6 years 2 months ago #9510
by Stas Pavlov
Replied by Stas Pavlov on topic Ot testimonials not working captcha
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
I bring in /templates/lik-astana/html/com_testimonies/list/default_form.php
Connection
In the form template, captcha itself is displayed
tell me what's wrong.
Added a field as required required="true"
but the message is all sent smoothly without confirmation.
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"
/>
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');
}
?>
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>
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"
/>
Please Log in or Create an account to join the conversation.
Time to create page: 0.188 seconds