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 Spread FireBoard!
"Report to moderator" mails annoy non-forum admins (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: "Report to moderator" mails annoy non-forum admins
#39951
Re:"Report to moderator" mails annoy non-forum adm 8 Months, 3 Weeks ago  
By default you have to change the file *joomla_install*/components/com_fireboard/template/default/plugin/report/report.php in line 97. If you're using a template which provide its own report.php, then you have to search the right position.

The old query is

SELECT id FROM #__users WHERE gid>=24;

The new query should be

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 "GREATER_OR_EQUALS" g1.lft AND g2.rgt "SMALLER_OR_EQUALS" g1.rgt AND u.gid=g2.group_id

You have to replace "GREATER_OR_EQUALS" and "SMALLER_OR_EQUALS" by the appropriate characters. It seems to trigger a bug in this template if I try to post it.

Bye,
Goodbyte
Goodbyte (User)
Junior Boarder
Posts: 83
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/01/20 07:14 By Goodbyte.
 
The administrator has disabled public write access.  
#44729
Re:"Report to moderator" mails annoy non-forum admins 7 Months, 3 Weeks ago  
This worked great Goodbyte, however i am getting one more error message after they person submits the report to moderator.

Warning: Invalid argument supplied for foreach() in /joomladirectory/components/com_fireboard/template/default/plugin/report/report.php on line 142



Any ideas?

Thank You
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.  
#44775
Re:"Report to moderator" mails annoy non-forum admins 7 Months, 3 Weeks ago  
Please send me the context of line 142 or your report.php. I can't check the error at my local file, because it contains some custom modifications. So I don't know which line is the right one.
Goodbyte (User)
Junior Boarder
Posts: 83
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#44901
Re:"Report to moderator" mails annoy non-forum admins 7 Months, 3 Weeks ago  
[code:1] //send report to site admins
foreach ($admins as $admin) {
$database->setQuery("SELECT email FROM #__users WHERE id={$admin->id}"«»);
$email = $database->loadResult();

mosMail($fbConfig['email'], $fbConfig['board_title'], $email, $subject, $message);
}
}
[/code:1]


Line 142 is the line that starts with [code:1]foreash ($admins as $admin) {[/code:1]


thank you for your help!
j0ly (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/02/22 07:28 By j0ly.
 
The administrator has disabled public write access.  
#44939
Re:"Report to moderator" mails annoy non-forum admins 7 Months, 3 Weeks ago  
Could you please send me your report.php? I can't reproduce this error with my local file.
Goodbyte (User)
Junior Boarder
Posts: 83
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#44942
Re:"Report to moderator" mails annoy non-forum admins 7 Months, 3 Weeks ago  
Here it is attached.

Thanks!
File Attachment:
File Name: report-35f80bb223b95a6cdaa4b2a1576b9a04.zip
File Size: 2832
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.  
#44966
Re:"Report to moderator" mails annoy non-forum admins 7 Months, 3 Weeks ago  
Your substitution was wrong. I attached the same file with the corrected substitution.
File Attachment:
File Name: report-6ea880fdd699a2fb657376be4ea137c4.zip
File Size: 2809
Goodbyte (User)
Junior Boarder
Posts: 83
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#45488
Re:"Report to moderator" mails annoy non-forum admins 7 Months, 2 Weeks ago  
Thanks for your posts Goodbyte - this fixed my problem.

To recap, I downloaded the zip file from above and compared with my original. I pasted the code from above and now my admins are the only ones to receive the report emails.

Thanks again, I appreciate it.
Nate
nater77 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top