Page 1 of 1

Log Moderator Actions

Posted: Thu Jul 03, 2008 3:24 pm
by EsrarliKapi
First of all I'm a real newbie about the phpBB. I coded mods for other bulletin boards but it first time I'm trying to look deep into the codes of phpBB.

I'm trying to log the moderator actions.

As I see, all the moderator actions are handled with the modcp.php file.

When I checked the 'delete' mode, it doesn't check whether there is a topic or not. It is just used for deleting topics as I understand. So where is the codes that removes a single post?

Re: Log Moderator Actions

Posted: Thu Jul 03, 2008 3:29 pm
by Brf
The delete button in a post links to posting.php?mode=delete

Re: Log Moderator Actions

Posted: Thu Jul 03, 2008 3:35 pm
by EsrarliKapi
So is it deleted with this code?

Code: Select all

                case 'delete':
                case 'poll_delete':
                        delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id);
                        break;

Re: Log Moderator Actions

Posted: Thu Jul 03, 2008 3:37 pm
by Brf
That seems logical

Re: Log Moderator Actions

Posted: Thu Jul 03, 2008 3:41 pm
by EsrarliKapi
I was able to log delete topics for now. Will look at the delete posts now. I'll be here if I'm stuck.

Thanks for the quick help.