By tylr23 on Wednesday, 15 April 2020
Posted in Technical Issues
Replies 7
Likes 0
Views 658
Votes 0
Hi,

Komento is a dedicated comment system which lacks a comment feature that easydiscuss has :
--> the possibility for users to get notifications for their replies ONLY.

I was suggested to use easydiscuss instead of joomla articles to get this feature but it is not a possible solution and thus I would like to know which file I need to modify to get the same feature with komento.

I understand you may not provide support to develop this feature, but at least could you give me some hints on how to do this?

Kind regards,
Hello,

Hm, I am not sure if I understand you here. Do you mean you only want the user to receive notification of their own replies? If they are posting the comments, may I know why would they want to receive a notification about the comment they have posted?

Am I understanding what you are trying to achieve here correctly?
·
Wednesday, 15 April 2020 22:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Goal is : to get notifications for replies made to their comments/replies only.
Current situation : users do get notifications for any comment made in a thread.

Please check https://stackideas.com/forums/komento-error-with-easyblog#reply-384309 where a solution was found and integrated to easyblog.



Kind regards,
·
Thursday, 16 April 2020 01:36
·
0 Likes
·
0 Votes
·
0 Comments
·
I see, I get what you mean now. Basically in Komento, whenever a new comment is saved (including new comments and edited comments), it routes through the file /administrator/components/com_koment/includes/comment/comment.php

You want to look at the method @postSave which occurs after the comment is stored in the database. This is where we are sending the notifications as well.
·
Thursday, 16 April 2020 22:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark

I don't see how this method affect notifications.

On the other hand this does :


if ($this->config->get('notification_enable')) {

$isNew = !$this->saveOptions['isEdited'];

if ($this->isPublished() && $isNew && (($action == 'comment' && $this->config->get('notification_event_new_comment')) || ($action == 'reply' && $this->config->get('notification_event_new_reply')))) {
KT::notification()->push($action, 'author,usergroups,subscribers', array('commentId' => $this->table->id));
}


No offense, but can somebody related to the development of this extension give me the correct methods to modify? I don't ask custom code, just indications, but it needs to be more precise.

Kind regards,
·
Friday, 17 April 2020 03:07
·
0 Likes
·
0 Votes
·
0 Comments
·
When it call notification library push function, it will route through this file and do the notification process.

JoomlaFolder/administrator/components/com_komento/includes/notification/notification.php (Look at push function)
·
Friday, 17 April 2020 18:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, this seems more relevant, I will check than you.
·
Friday, 17 April 2020 18:55
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome.
·
Friday, 17 April 2020 22:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post