Hello.
I have a small problem. I have configured easydiscuss so guests can not see the answers. If I ask a question without logging in, then I will read the question and although I can not see the answer, I get the form to register or log in at the bottom of the page.
If a guest want to read a question that has performed a registered user. He can read the question and not the answer, this is correct but it does not show the form to login.
I have this code in the file post.reply.form.php:
I tried changing the last "if" that if a guest shows the form but only appears when the question has made an unregistered user. I want to appear for all users who have not logged regardless of who asked the question.
Thanks in advance.
Regards.
I have a small problem. I have configured easydiscuss so guests can not see the answers. If I ask a question without logging in, then I will read the question and although I can not see the answer, I get the form to register or log in at the bottom of the page.
If a guest want to read a question that has performed a registered user. He can read the question and not the answer, this is correct but it does not show the form to login.
I have this code in the file post.reply.form.php:
<?php if( (!$post->islock || DiscussHelper::isModerator( $post->category_id )) && $guests && ($post->user_id == $my->id || DiscussHelper::isSiteAdmin() || DiscussHelper::isModerator( $post->category_id, $my->id ))){ ?>
<div class="discuss-user-reply">
<div class="fd-cf">
<a name="respond" id="respond"></a>
<legend class="discuss-component-title"><?php echo JText::_('COM_EASYDISCUSS_ENTRY_YOUR_RESPONSE'); ?></legend>
<hr class="mv-5" style="margin-bottom: 20px;">
<?php /*
<!-- Note: please update form user_type = twitter | facebook | linkedin -->
<!-- div class="control-group">
<a href="javascript:void(0);" class="btn btn-mini btn-facebook"><i class="icon-facebook"></i> Reply with Facebook</a>
<a href="javascript:void(0);" class="btn btn-mini btn-twitter"><i class="icon-twitter"></i> Reply with Twitter</a>
</div -->
*/ ?>
<?php if( $access->canReply() && $post->user_id == $my->id || DiscussHelper::isSiteAdmin() || DiscussHelper::isModerator( $post->category_id, $my->id )){ ?>
<?php echo $composer->getComposer(); ?>
<?php } else { ?>
<?php if( $system->my->id ){ ?>
<div class="alert alert-notice"><?php echo JText::_( 'COM_EASYDISCUSS_NOT_ALLOWED_TO_REPLY' );?></div>
<?php /* } else { */?>
<?php echo $this->loadTemplate( 'form.reply.login.php' ); ?>
<?php } ?>
<?php } ?>
</div>
</div>
<?php } ?>
I tried changing the last "if" that if a guest shows the form but only appears when the question has made an unregistered user. I want to appear for all users who have not logged regardless of who asked the question.
Thanks in advance.
Regards.