By Ningning Niumai on Monday, 02 February 2015
Posted in Technical Issues
Likes 0
Views 643
Votes 0
I'm trying to show replies to "assigned" moderators in the categories.

I did not add the user group here: "who can view replies in this category" because if i add here, every other users in the moderator group will be able to see the replies. I want to make an exception and show replies to the "assigned moderators".

Also, "who can moderate this category", i added the moderator group to be able to assigned moderators by the admin. However, i want to hide replies from non-assigned moderators.

How should I do this? Please help.
Hello Ningning,

Unfortunately that was not possible to configure this in current system.

But you can try this following code and see how it goes?
Open this file -> JoomlaFolder\components\com_easydiscuss\themes\simplistic\post.php

//LINE 14
$my = JFactory::getUser();

//LINE 75
<?php if($category->canViewReplies()){ ?>
//Replace with
<?php if( $category->canViewReplies() && $post->assignment->assignee_id == $my->id){ ?>
·
Monday, 02 February 2015 18:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank You

However, I'm unable to assign the discussion to more than 1 user!!! How can we remove this restriction and be allowed to assign to multiple moderators?
·
Tuesday, 03 February 2015 04:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ningning Niumai,

You're welcome.

I am really sorry for the delay of this reply as it is a public holiday for us here and unfortunately our support policy does not cover customizations

If you need customizations, please contact our billing department for a quote at https://crm.stackideas.com
·
Tuesday, 03 February 2015 13:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Since there's only "one" moderator possible, I tried changing the code to allow Super Users to view the replies irrespective of whether they are assigned or not using the code below:

<?php if( $category->canViewReplies() && DiscussHelper::isSiteAdmin( $post->category_id ) && $post->assignment->assignee_id == $my->id) { ?>


Sadly, this isn't working. I want the Super Users to be able to see the replies and not restrict only to the assigned moderators. Could you kindly help again?
·
Friday, 06 February 2015 18:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Try this,

·
Saturday, 07 February 2015 02:48
·
0 Likes
·
0 Votes
·
0 Comments
·
I tried that too but didn't think of the extra bracket.

Thank you guys so much
·
Saturday, 07 February 2015 15:25
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Saturday, 07 February 2015 15:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post