By Sandi Beach on Wednesday, 28 June 2017
Posted in Technical Issues
Replies 5
Likes 0
Views 652
Votes 0
Is it possible to exempt a user from the "Notify Every Site User On New Posts" setting?

Is there some "opt out" flag to exempt one or more users from the setting that generally applies to all, so we can have that setting on but deliberately leave a few users out from the notifications?
Unfortunately that was not possible to configure this from backend, but you can modify on this file :

JoomlaFolder/administrator/components/com_easyblog/includes/post/post.php


// LINE 6660
$ignored = array($author->user->email);

// replace with for example i want to exclude : example@gmail.com, example1@gmail.com
$ignored = array($author->user->email, 'example@gmail.com', 'example1@gmail.com');



You can refer on my attached screenshot below if that LINE i provided is not match with your current file code.
·
Wednesday, 28 June 2017 11:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you, that makes sense!

Can you help similarly for comments? How to opt out a user from getting notified for all comments?
·
Friday, 30 June 2017 03:21
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.

Do you mean if someone comment on one of your existing blog post, the system will send out this new comment email notification to your existing site member?

If yes, you can disable this from backend > Easyblog > setting > notification > comments > Notify all users on new comments - NO
·
Friday, 30 June 2017 10:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, but similar to the previous question we don't want to disable the setting, we just want to exempt a couple of users.

Where could we use similar code to do that?
·
Friday, 30 June 2017 21:36
·
0 Likes
·
0 Votes
·
0 Comments
·
You can modify on this file -> JoomlaFolder/administrator/components/com_easyblog/tables/comment.php
·
Friday, 30 June 2017 23:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post