Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
[SOLVED] New messages are sent to all users (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: [SOLVED] New messages are sent to all users
#47363
[SOLVED] New messages are sent to all users 5 Months, 1 Week ago  
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
schoenbi (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/03/19 15:42 By schoenbi.
 
The administrator has disabled public write access.  
      Topics Author Date
 
[SOLVED] New messages are sent to all users
schoenbi 2008/03/19 15:42
 
thread linkthread link Re:[SOLVED] New messages are sent to all users
tlombard 2008/03/24 23:42
 
thread linkthread linkthread link Re:[SOLVED] New messages are sent to all users
schoenbi 2008/03/25 01:34
Go to top
Powered by FireBoard - Creditsget the latest posts directly to your desktop