Requested by TheMarauder in [url=http://www.phpbb.com/community/viewtopic.php?f=72&t=1514055]this topic[/url], the snippet forces moderators to enter an edit reason when editing a post. The post will not be submitted until their is at least 1 character in the edit reason box.
OPEN: posting.php
FIND:
Code: Select all
$error[] = sprintf($user->lang['IP_BLACKLISTED'], $user->ip, $dnsbl[1]);
}
}
AFTER ADD:
Code: Select all
if (empty($post_data['post_edit_reason']) && $mode == 'edit' && $auth->acl_get('m_edit', $forum_id))
{
$error[] = $user->lang['EDIT_REASON_EMPTY'];
}
OPEN: language/en/posting.php
FIND:
Code: Select all
'EDIT_REASON' => 'Reason for editing this post',
AFTER ADD:
Code: Select all
'EDIT_REASON_EMPTY' => 'You are required to enter an edit reason before submitting',
Or what ever you like:
Code: Select all
'EDIT_REASON_EMPTY' => 'The edit reason can not be empty',