I am running Fireboard 1.04 with Community Builder. I recently changed the configuration of Fireboard (security):
- Email Moderators: No
- Email Administrators: Yes
With this configuration new posts were sent to
every user which opted to receive moderator emails (field sendEmail=1 in table jos_users) and not only the administrators!
I quickly turned off the Email Administrator option and analyzed the code.
The following code change is needed to fix this issue:
Filename: post.php (components/com_fireboard/template/default)
Lines: 350 ff
Old code:
| Code: |
if($fbConfig['mailadmin']==1) {
if(strlen($sql2)) { $sql2 .= "\n OR "; }
$sql2 .= " u.sendEmail=1";
}
|
New code:
| Code: |
if($fbConfig['mailadmin']==1) {
if(strlen($sql2)) { $sql2 .= "\n OR "; }
$sql2 .= " u.gid >= 24 AND u.sendEmail=1";
}
|
This solved my issue
Stephan