Firefox PHP

Module for logging moderator actions

Posted by Tiorthan 
Module for logging moderator actions
September 27, 2005 07:09AM
This is a module to track actions taken by moderators in a logfile.

The module is now developed to work with Phorum 5.1. Since this is called 'unstable' I'll continue to test my changes with the latest available stable version.

Current Version: 2.2

Last Changes
- Added compatibility code 5.1 <-> 5.0
- The contents of the logfile are now displayed on the settings page, if they are available.

(Sample Logfile)

Download: modaction_log_5_0_18a-2_2.zip



Edited 4 time(s). Last edit at 09/29/2005 09:51PM by Tiorthan.
Re: Module for logging moderator actions
September 27, 2005 07:56AM
Awsome, I'll have to give it a try. I've been beating my head over this with a couple of my moderators. Nothing I can prove but this should make it so I can get there permissions removed.

http://www.krang.org
Re: Module for logging moderator actions
September 27, 2005 09:16PM
New version, look in the first post.
Re: Module for logging moderator actions
September 27, 2005 09:32PM
Nice work there, Tiorthan! Maybe you should consider an option to include the
message body as well. At least for the deleted messages. For those it might be interesting to see why a moderator has deleted them.
Re: Module for logging moderator actions
September 28, 2005 04:29AM
Possiable a bug

I changed the path I wanted it to log to and when I tried to change it again it bugged out and refuse to let me change to anything else ..


It keep saying at the top

"/ is no valid directory."

No matter what I set it or if I use the full path of my website directory still says the same thing ..


Bill
Re: Module for logging moderator actions
September 28, 2005 06:30AM
That is a bug indeed. I'll fix this.
Re: Module for logging moderator actions
September 28, 2005 09:38AM
Bugfix and new version, see the first post.
Re: Module for logging moderator actions
September 29, 2005 06:33AM
I downloaded the next version and installed it

set it to {CACHE_DIR}/logfilename.log and it show the full correct path to where i want the log to be recorded at.

But when I went to delete a thread I get this error with this module enabled


Fatal error: Call to undefined function: strip_body() in /home/xxxx/xxxx/findmall.com/xxxx/xxxx/mods/modaction_log/modaction_log.php on line 90


(I xxxx'ed out my real path)




So I create a blank log file and chmodded giving it a write perrmison to make sure and still the same error as above.


So another bug? or something I missed?


Bill







Edited 1 time(s). Last edit at 09/29/2005 06:34AM by CBiLL.
Re: Module for logging moderator actions
September 29, 2005 06:39AM
Also I have a suggestion for this module .

You should consider adding a framed windows with scroll bar inside the modaction module "Setting" where adminstrator can view/read the log and a button underneath the view windows to clear or purge the log.


Bill


Re: Module for logging moderator actions
September 29, 2005 06:59AM
Quote

Fatal error: Call to undefined function: strip_body() in /home/xxxx/xxxx/findmall.com/xxxx/xxxx/mods/modaction_log/modaction_log.php on line 90
For phorum 5.0.18 strip_body is a function in include/format_functions.php there was probably a change in 5.1 that's causing this. I'll check it. For now you can change the lines:
90:    $msg_body = "    " . $message['body'];

123:   $tmp_body = "    " . $tmp_message['body'];

As for the window to view the logfile in the admin, this will definitly be in the next version, I'll appreciate this myself.
Sorry, only registered users may post in this forum.

Click here to login