By Vincent on Sunday, 09 March 2014
Posted in Technical Issues
Replies 1
Likes 0
Views 557
Votes 0
Dear Support,

Not sure how to hide accepted answer from guest or public

Vincent
Hello Vincent,

I am really sorry for the delay of this reply as it is a weekend for us here. Currently you can't but you can hack the theme file which is located in /components/com_easydiscuss/themes/simplistic/post.php and at line 57 locate the codes below:


<?php if( $answer ){ ?>
<div class="discuss-answer discussAnswer">
<a name="answer"></a>
<?php echo $this->loadTemplate( 'post.reply.item.php' , array( 'question' => $post, 'post' => $answer ) ); ?>
</div>
<?php } ?>


Replace it with,


<?php if( $answer && $system->my->id){ ?>
<div class="discuss-answer discussAnswer">
<a name="answer"></a>
<?php echo $this->loadTemplate( 'post.reply.item.php' , array( 'question' => $post, 'post' => $answer ) ); ?>
</div>
<?php } ?>
·
Sunday, 09 March 2014 02:36
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post