UPDATES PayPlans 5.0.8 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Login for public group

Manuel · ·
5:01 PM Tuesday, 07 October 2014
None
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:


<?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.
The replies under this section are restricted to logged in users or users with an active subscription with us