By ahmd hoshan on Tuesday, 11 December 2018
Posted in Technical Issues
Replies 8
Likes 0
Views 576
Votes 0
I think it's a bug in the new version
As my colleague mentioned earlier, there is no way to achieve this out of the box but what you can do is to apply some hacks on the core file located in /administrator/components/com_easydiscuss/includes/post/post.php and at line 4394 locate the codes below:

[gist]
// Add system notifications for the thread starter
if ($this->post->published && $this->config->get('main_notifications_reply')) {

// Get all users that are subscribed to this post
$model = ED::model('Posts');
$participants = $model->getParticipants($this->post->parent_id);

$question = ED::post($this->post->parent_id);

// Add the thread starter into the list of participants.
$participants[] = $question->user_id;

// Notify all participants
foreach($participants as $participant) {
if ($participant != $this->my->id) {

$notification = ED::table('Notifications');

$notification->bind(array(
'title' => JText::sprintf('COM_EASYDISCUSS_REPLY_DISCUSSION_NOTIFICATION_TITLE', $question->title),
'cid' => $question->id,
'type' => DISCUSS_NOTIFICATIONS_REPLY,
'target' => $participant,
'author' => $this->post->user_id,
'permalink' => 'index.php?option=com_easydiscuss&' . $this->getReplyPermalink(),
'anonymous' => $this->post->anonymous
));
$notification->store();
}
}
}
[/gist]

You could replace it with,

[gist]
// Add system notifications for the thread starter
if ($this->post->published && $this->config->get('main_notifications_reply')) {

$question = ED::post($this->post->parent_id);
$participants = array($question->user_id);

// Notify all participants
foreach($participants as $participant) {
if ($participant != $this->my->id) {

$notification = ED::table('Notifications');

$notification->bind(array(
'title' => JText::sprintf('COM_EASYDISCUSS_REPLY_DISCUSSION_NOTIFICATION_TITLE', $question->title),
'cid' => $question->id,
'type' => DISCUSS_NOTIFICATIONS_REPLY,
'target' => $participant,
'author' => $this->post->user_id,
'permalink' => 'index.php?option=com_easydiscuss&' . $this->getReplyPermalink(),
'anonymous' => $this->post->anonymous
));
$notification->store();
}
}
}
[/gist]

The hack above will ensure that the system only notifies the creator of the main question.
·
Saturday, 15 December 2018 15:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi ahmd hoshan,
When user reply in any thread, he get notifications for every new users replies
Do you mean the user gets notified for every reply on the site? or just new replies in the thread that he replies in?

If its just in one thread, you can check this setting in Settings>Notifications>General>Notify topic's participants when replied http://take.ms/bc5KC

Basically when a user replies in a thread, he is considered a 'participant' in that thread. When that setting is enabled, notifications will be sent to all 'participants' in a particular thread.
·
Wednesday, 12 December 2018 15:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Just new replies in the thread that he replies in


I tried to turn of all this settings and the same problem, the user gets a live notification in the site not via email

https://monosnap.com/file/XIvs294XoQhzpaQM53bVEFPLLjOAwq

https://monosnap.com/file/7fLVVIIrKbQiyZwE4IoEyLJp1863ud

https://monosnap.com/file/XYWY82s1Jzac2men8i7As4Gyj8ezwJ
·
Wednesday, 12 December 2018 19:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi ahmd hoshan,
the user gets a live notification in the site not via email
Are you referring this this, which is system alerts(http://take.ms/GYf0j)? This can be disabled by disabling this option(http://take.ms/8uC4Q).
·
Thursday, 13 December 2018 13:24
·
0 Likes
·
0 Votes
·
0 Comments
·
That's resolve the problem, but the user stop getting notifications about the replies on his own posts and that's a problem.

Sorry for my bad english but i will try to explain the problem in other way:

member "a" ask a question, then member "b" reply in member "a" question, after that member "c" come and reply on the same member "a" question, now member "b" gets a system notification about replying of member "c" ! and the correct is that just member "a" gets that notification
·
Thursday, 13 December 2018 19:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey ahmd hoshan,

Unfortunately for system alerts, it is not possible to prevent the system from notifying discussion participants. The setting can either disable all reply system alerts, or enable to notify the owner and all topic participants.
·
Friday, 14 December 2018 13:09
·
0 Likes
·
0 Votes
·
0 Comments
·
That will kill my site idea,

There is no way to resolve that in the code ? to stop topic participants for users who replys for example
·
Friday, 14 December 2018 21:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post