By Evgeniy on Wednesday, 16 April 2014
Posted in General Issues
Replies 5
Likes 0
Views 1K
Votes 0
Hello.
I need to not showing answers (and solved) for guests. How can I do this?
Thank you.
Mohd Yasser, i can't found this code!
Real hack code:
file: components\com_easydiscuss\themes\(your Easydiscuss theme)\post.php
search: discuss-answer discussAnswer
	
<?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 with:
	
<?php if( $category->canViewReplies() && $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 } ?>

and this hack work fine!

Please add flag to backend (admin panel) for toggle dislpay resolved reply.
Thanks!
·
Wednesday, 23 April 2014 22:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Evgeniy,

About how to not showing answer in discussion, you can configure it through category. Assign the discussion post to a category, then set the permission to the specific group of people only. To configure this: Backend > Components > Easydiscuss > Categories > Permission.

And about how to hidden the "resolve", there is no setting for it but you can hack the code.

Hope this will help.
Thanks.
·
Wednesday, 16 April 2014 18:33
·
0 Likes
·
0 Votes
·
0 Comments
·
And about how to hidden the "resolve", there is no setting for it but you can hack the code.

OK
You know how hack and what change in source code for it (and file-name(s))?
and how i can update next version EasyDiscuss with hacked code file(s) ?!
Thnx.
·
Wednesday, 23 April 2014 00:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Evgeniy,

I am sorry for the late reply.
You can commented this line of code out or you can remove this code:

<div class="discuss-resolvedbar">
<?php echo JText::_( 'COM_EASYDISCUSS_RESOLVED' ); ?>
</div>

You can find this code inside : components\com_easydiscuss\themes\(your Easydiscuss theme)\frontpage.post.php

Since this is a core code, this code will be replaced if you run updater on Easydiscuss. It is best for you to backup this file. After you run the update, you need to commented or remove this code back.

I am sorry for the inconvenience caused.
Hope this will help.
Thanks.
·
Wednesday, 23 April 2014 01:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing this Evgeniy
·
Thursday, 24 April 2014 02:20
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post