Moderatoren und Administratoren können jedoch weiterhin alle Beiträge bearbeiten.
- Code: Alles auswählen
#
#-----[ OPEN ]----------------------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]----------------------------------------------------------------
#
$edit_allowed = ($user->data['is_registered'] && ($auth->acl_get('m_edit', $forum_id) || (
$user->data['user_id'] == $poster_id &&
$auth->acl_get('f_edit', $forum_id) &&
!$row['post_edit_locked'] &&
($row['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time'])
)));
#
#-----[ REPLACE WITH ]--------------------------------------------------------
#
$edit_allowed = ($user->data['is_registered'] && ($auth->acl_get('m_edit', $forum_id) || (
$user->data['user_id'] == $poster_id &&
$auth->acl_get('f_edit', $forum_id) &&
!$row['post_edit_locked'] &&
$topic_data['topic_last_post_id'] == $row['post_id'] && // only edit last post by AmigaLink
($row['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time'])
)));
#
#-----[ OPEN ]----------------------------------------------------------------
#
posting.php
#
#-----[ FIND ]----------------------------------------------------------------
#
if ($post_data['post_edit_locked'])
{
trigger_error('CANNOT_EDIT_POST_LOCKED');
}
#
#-----[ AFTER, ADD ]----------------------------------------------------------
#
// only edit last post by AmigaLink
if ($post_data['post_id'] != $post_data['topic_last_post_id'])
{
trigger_error('CANNOT_EDIT_ANSWERED');
}
// only edit last post by AmigaLink
#
#-----[ OPEN ]----------------------------------------------------------------
#
language/de/posting.php
#
#-----[ FIND ]----------------------------------------------------------------
#
'CANNOT_EDIT_POST_LOCKED' => 'Dieser Beitrag wurde gesperrt, daher kannst du ihn nicht mehr bearbeiten.',
#
#-----[ AFTER, ADD ]----------------------------------------------------------
#
'CANNOT_EDIT_ANSWERED' => 'Du kannst diesen Beitrag nicht mehr ändern, da bereits auf ihn geantwortet wurde.',
#
#-----[ OPEN ]----------------------------------------------------------------
#
language/en/posting.php
#
#-----[ FIND ]----------------------------------------------------------------
#
'CANNOT_EDIT_POST_LOCKED' => 'This post has been locked. You can no longer edit that post.',
#
#-----[ AFTER, ADD ]----------------------------------------------------------
#
'CANNOT_EDIT_ANSWERED' => 'This post has been answered. You can no longer edit that post.',
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------------
#
# EoM