Log Moderator Actions

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
User avatar
EsrarliKapi
Registered User
Posts: 29
Joined: Thu Jul 03, 2008 12:16 pm
Location: Ankara
Contact:

Log Moderator Actions

Post 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?
[Ultimate Simplicity]
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53379
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Log Moderator Actions

Post by Brf »

The delete button in a post links to posting.php?mode=delete
User avatar
EsrarliKapi
Registered User
Posts: 29
Joined: Thu Jul 03, 2008 12:16 pm
Location: Ankara
Contact:

Re: Log Moderator Actions

Post 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;
[Ultimate Simplicity]
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53379
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Log Moderator Actions

Post by Brf »

That seems logical
User avatar
EsrarliKapi
Registered User
Posts: 29
Joined: Thu Jul 03, 2008 12:16 pm
Location: Ankara
Contact:

Re: Log Moderator Actions

Post 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.
[Ultimate Simplicity]
Post Reply

Return to “[2.0.x] MOD Writers Discussion”