Welcome, Guest
Username: Password: Remember me

TOPIC: Ot testimonials not working captcha

Ot testimonials not working captcha 2 months 2 weeks ago #9500

  • stasweb
  • stasweb's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
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: 2 months 2 weeks ago by stasweb.
The administrator has disabled public write access.

Ot testimonials not working captcha 2 months 2 weeks ago #9501

  • stasweb
  • stasweb's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
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
The administrator has disabled public write access.

Ot testimonials not working captcha 2 months 2 weeks ago #9502

  • stasweb
  • stasweb's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
can someone tell me how to fight spam in this component. But still I wanted to connect captcha
The administrator has disabled public write access.

Ot testimonials not working captcha 1 month 3 weeks ago #9507

  • stasweb
  • stasweb's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Judging by ignoring the topic, the problem is not solved. :unsure: Most likely you will have to install another component. :ohmy:
The administrator has disabled public write access.

Ot testimonials not working captcha 1 month 3 weeks ago #9510

  • stasweb
  • stasweb's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
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
<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
<?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
<?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"
<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.
The administrator has disabled public write access.
Time to create page: 0.165 seconds