Firefox PHP

Module for logging moderator actions

Posted by Tiorthan 
Re: Module for logging moderator actions
September 29, 2005 07:18AM
The function has been renamed to phorum_strip_bodys() in the 5.1 tree.

There is an updated download (first post). For 5.1 users there is a file modaction_log.php.5.1 that has to be renamed to modaction_log.php
Re: Module for logging moderator actions
September 29, 2005 07:49AM
If that is the only incompatibility, would it be an idea to do something like this at the start of your code?
if (! function_exists("strip_body")) {
    function strip_body($arg) {
        return phorum_strip_body($arg);    
    }
}
Not tested, but I think this might work for you. I don't know wheter PHP will complain about strip_body() already being defined when using this construction. If it does, you can also create a wrapper function for stripping the body and use that function instead of strip_body():
function my_strip_body($arg) {
    if (function_exists("phorum_strip_body")) {
        return phorum_strip_body($arg);
    } else {
        return strip_body($arg);
    }
}
Doing so will keep you from having to maintain two versions of your module.



Edited 1 time(s). Last edit at 09/29/2005 07:50AM by mmakaay.
Re: Module for logging moderator actions
September 29, 2005 11:08AM
Good point, as I'm about to switch my dev server to 5.1 this week I'll do the first version the other way round.
if (! function_exists("phorum_strip_body")) {
    function phorum_strip_body($arg) {
        return strip_body($arg);    
    }
}
Re: Module for logging moderator actions
September 29, 2005 02:32PM
CBiLL Wrote:
-------------------------------------------------------
> 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.

Just use a <div> with overflow: scroll; No messy frames that way.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Module for logging moderator actions
September 29, 2005 09:54PM
New version, see first post.

If you ever see me using <iframe> look out for the body snatchers ;)
Re: Module for logging moderator actions
September 30, 2005 10:26PM
Thanks .. all look good!

it's working good on my 5.1 using the correct 5.1 file.


Great job! Very useful module!

Thanks
Bill



Re: Module for logging moderator actions
June 23, 2007 01:59AM
The download link is no longer valid, does anyone have a copy of this module? I'd greatly appreciate it.
Re: Module for logging moderator actions
June 24, 2007 06:35PM
Me too, thanks.

Constantin.
Re: Module for logging moderator actions
June 26, 2007 07:07PM
Here is a copy of the module: [ftbe.be]
Re: Module for logging moderator actions
June 28, 2007 02:06AM
Thank you!
Sorry, only registered users may post in this forum.

Click here to login