commenting

Permalink
Hey,
I did add the commenting block to my website.
Mostly it will be the gasts who can leave a message.
but there are two input fields that I don't want to appear on my commenting block.
First the "website" input field an secondly the CAPTCHA.
My question is how I can disable these input fields on my commenting block.

best regards,

Stefaan De Reu

stedereu
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi stedereu,

I think you can remove the Website and captcha fields by overriding 2 files and commenting out code blocks:
concrete\elements\conversation\message\author.php
<div class="form-group">
    <label class="control-label" for="cnvMessageAuthorWebsite"><?=t('Website')?></label>
    <input type="text" class="form-control" name="cnvMessageAuthorWebsite" />
</div>
<?php
$captcha = Core::make('captcha');
?>
<div class="form-group">
   <?php $captcha->label()?>
   <?php $captcha->showInput(); ?>
   <?php $captcha->display(); ?>
</div>

concrete\tools\conversations\add_message.php
$captcha = Core::make('captcha');
if (!$captcha->check()) {
    $ve->add(t("Incorrect image validation code. Please check the image and re-enter the letters or numbers as necessary."));
}

https://documentation.concrete5.org/tutorials/override-almost-any-co...