Hi again,
Really not sure how to include the email into the code so it will make an exception and not to send the email notification to them.
example, if I have 2 emails that I do not want them to get any notifications from the easyblog: support@domain.com and support2@domain.com
How I can add them:
// @rule: Get all email addresses for the whole site.
if ($config->get( 'notification_allmembers' )) {
// all superadmins user id
$saUsersIds = EB::getSAUsersIds();
$collation = EB::getUsersTableCollation('joomla');
$query = 'select a.`email` ' . $collation . ' AS `email` from `#__users` as a';
$query .= ' where a.`block` = 0';
$query .= ' and a.`id` NOT IN (' . implode(',', $saUsersIds) . ')';
// Privacy check
if ($post->access > 0) {
$query .= ' AND ';
if (!EB::easysocial()->exists()) {
$query .= $db->qn('a.id') . ' != ' . $db->Quote('0');
} else {
$query .= EB::easysocial()->getSubscriberAccessQuery($post->access, 'a.id', $post->created_by);
}
}
// guest subscribers
$collation = EB::getUsersTableCollation('eb');
$query .= ' UNION ';
$query .= ' select a1.`email` ' . $collation . ' AS `email` FROM `#__easyblog_subscriptions` as a1';
$query .= ' WHERE ';
// Privacy check
if ($post->access > 0) {
if (!EB::easysocial()->exists()) {
$query .= $db->qn('a1.user_id') . ' != ' . $db->Quote('0');
} else {
$query .= EB::easysocial()->getSubscriberAccessQuery($post->access, 'a1.user_id', $post->created_by);
}
} else {
$query .= $db->qn('a1.user_id') . ' = ' . $db->Quote('0');
}
} else {