SMF 2.0.13 Users can't edit post

Started by Fico62, June 24, 2017, 06:05:19 AM

Previous topic - Next topic

Fico62

Hi,

i have problem my users can't edit post after they post it:


DisplayTemplate:
echo '
<div class="post">';

if (!$message['approved'] && $message['member']['id'] != 0 && $message['member']['id'] == $context['user']['id'])
echo '
<div class="approve_post">
', $txt['post_awaiting_approval'], '
</div>';
echo '
<div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
</div>';

// Can the user modify the contents of this post?  Show the modify inline image.
if ($message['can_modify'])
echo '
<img src="', $settings['images_url'], '/icons/modify_inline.gif" alt="', $txt['modify_msg'], '" title="', $txt['modify_msg'], '" class="modifybutton" id="modify_button_', $message['id'], '" style="cursor: ', ($context['browser']['is_ie5'] || $context['browser']['is_ie5.5'] ? 'hand' : 'pointer'), '; display: none;" onclick="oQuickModify.modifyMsg(\'', $message['id'], '\')" />';


Admin can see quick modify button but user that posted post can't

Illori

how long after posting are they trying to edit?

Fico62

Quote from: Illori on June 24, 2017, 06:25:37 AM
how long after posting are they trying to edit?
Instant after post can't edit

Illori

do you have the modify posts, own post permission checked for the correct groups?

Advertisement: