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?
FireBoard Manual Latest release discussions Download FireBoard
Re:"Report to moderator" mails annoy non-forum admins (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:"Report to moderator" mails annoy non-forum admins
#39201
"Report to moderator" mails annoy non-forum admins 10 Months, 3 Weeks ago  
Currently "Report to moderator" messages are being sent to ALL Joomla's administrator & super administrators. I can't turn off the moderator status from these users in Fireboard's user manager: (not changeable, this user is an site (super)administrator)
It'd be better if there would be option for turning this feature off. Workaround could also be that admins with "Receive System E-mails" turned off in Joomla's user manager wouldn't receive these messages.

I find this as a problem because the site im running has 15 admins, and most of them don't actively use forums. Anyways, keep up the exellent work
toni (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#39409
Re:"Report to moderator" mails annoy non-forum admins 10 Months, 3 Weeks ago  
Hi...

I had a related issue: I inserted additional usergroups and set the group-ids for these to the next free ids. My #__core_acl_aro_groups-table now has this content:
[code:1]
gid pid name lft rgt
---------------------
17 0 ROOT 1 26
28 17 USERS 2 25
29 28 Public Frontend 3 16
18 29 Registered 4 15
31 18 Group1 5 14
19 18 Author 6 13
20 19 Editor 7 12
32 20 Group2 8 11
21 32 Publisher 9 10
30 28 Public Backend 17 24
23 30 Manager 18 23
24 23 Administrator 19 22
25 24 Super Administrator 20 21

(additional groups are called "Group1" and "Group2" in this snippet)
[/code:1]
The most of my users are members of these two groups.
Because the query for admins in function ReportMessage in the file report.php is
[code:1]
SELECT id FROM #__users
WHERE gid >= 24;
[/code:1] quite all users get the report-message.

Too be continued...
Goodbyte (User)
Junior Boarder
Posts: 85
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/01/17 03:25 By Goodbyte.
 
The administrator has disabled public write access.  
#39410
Re:"Report to moderator" mails annoy non-forum admins 10 Months, 3 Weeks ago  
... here comes the continuation:

To solve this, I changed it to
[code:1]
SELECT u.id FROM #__core_acl_aro_groups AS g1,
#__core_acl_aro_groups AS g2,
#__users AS u
WHERE g1.group_id=24 AND
g2.lft>=g1.lft AND
g2.rgtable messages send to your admins.

Bye
Goodbyte [/code:1]
Goodbyte (User)
Junior Boarder
Posts: 85
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/01/17 03:34 By Goodbyte.
 
The administrator has disabled public write access.  
#39412
Re:"Report to moderator" mails annoy non-forum admins 10 Months, 3 Weeks ago  
Sorry, I can't get this post not to screw up! I try to send the full response to trorram and toni by private message...
Goodbyte (User)
Junior Boarder
Posts: 85
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#39428
Re:"Report to moderator" mails annoy non 10 Months, 3 Weeks ago  
Thank you so much for pointing me to the right place.
Your query change didn't quite help me, it basicly retreived all my users as admins.
So this is what I came up with:

Change this, (*joomla_install*/components/com_fireboard/template/default/plugin/report/report.php row 97):
[code:1]
SELECT id FROM #__users WHERE gid >= 24
[/code:1]

... to this:
[code:1]
SELECT id FROM #__users WHERE (gid = 24 OR gid = 25) AND sendEmail = 1
[/code:1]

This sends reports only to admins & super admins with enabled "Receive System E-mails".
toni (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/01/17 12:15 By toni.
 
The administrator has disabled public write access.  
#39448
Re:"Report to moderator" mails annoy non 10 Months, 3 Weeks ago  
Yes, it's right, that the query, as you can see it in this forum, doesn't work correctly. Looks like the forum don't like "smaller or equal"-signs. I try to repeat the WHERE-clause:

WHERE g1.group_id "EQUALS" 24 AND g2.lft "GREATER_OR_EQUALS" g1.lft AND
g2.rgt "SMALLER_OR_EQUALS" g1.rgt AND
u.gid "EQUALS" g2.group_id

You have to replace "EQUALS", "GREATER_OR_EQUALS" and "SMALLER_OR_EQUALS" by the appropriate characters.
This query isn't meant to solve your issue. It's a suggestion to the admin to fix their query. It does quite the same like the original one, but has (quite) no problems with additional usergroups. Additionally it should be a pointer for you where to find the right place to customize the behaviour in the way you like it.

Bye
Goodbyte
Goodbyte (User)
Junior Boarder
Posts: 85
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#39793
Re:"Report to moderator" mails annoy non-forum adm 10 Months, 2 Weeks ago  
Hi,

Im having a similar problem with the report to moderator. Basically I have install JACLplus, and created a private group which has around 60 members. In this group, the group ID is 31 - Members are getting these report to moderator emails from the system. Is it because of the group ID is higher then the admin and super admin ID?

Thanks

Scott
j0ly (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#39927
Re:"Report to moderator" mails annoy non-forum adm 10 Months, 2 Weeks ago  
Yes, that's exactly the same problem I had and you can use the suggested fix if the administrator-account still has the ID 24. In this case the administrator-group with ID 24 and every group below in the tree-view of the groups (by default only the super-administrator) will get the messages.

The query uses the "nesting-set"-structure of the groups-table to find the children of a node.

Bye
Goodbyte
Goodbyte (User)
Junior Boarder
Posts: 85
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#39932
Re:"Report to moderator" mails annoy non-forum adm 10 Months, 2 Weeks ago  
so it would then look like this?

[code:1]WHERE g1.group_id = 24 AND g2.lft > or = g1.lft AND
g2.rgt [/code:1]
j0ly (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#39939
Re:"Report to moderator" mails annoy non-forum adm 10 Months, 2 Weeks ago  
where am i putting this line in to?

try to wrap your example with the code line.

-Scott
j0ly (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top