This commit is contained in:
Roman Kelesidis 2024-11-22 00:33:34 +07:00
commit a5d0f28683
3 changed files with 3 additions and 2 deletions

View file

@ -1879,6 +1879,7 @@ $lang['POST_PIN'] = 'Pin first post';
$lang['POST_UNPIN'] = 'Unpin first post';
$lang['POST_PINNED'] = 'First post pinned';
$lang['POST_UNPINNED'] = 'First post unpinned';
$lang['PIN_MESSAGE'] = 'Pin post';
// Management of my messages
$lang['GOTO_MY_MESSAGE'] = 'Close and return to the list "My Messages"';

View file

@ -134,7 +134,7 @@ if (!empty($page_cfg['load_tpl_vars']) and $vars = array_flip($page_cfg['load_tp
$template->assign_vars([
'CODE_IMG' => $bb_cfg['text_buttons'] ? $lang['CODE_TOPIC_TXTB'] : '<img src="' . $images['icon_code'] . '" alt="' . $lang['CODE_TOPIC_TXTB'] . '" title="' . $lang['CODE'] . '" />',
'QUOTE_IMG' => $bb_cfg['text_buttons'] ? $lang['REPLY_WITH_QUOTE_TXTB'] : '<img src="' . $images['icon_quote'] . '" alt="' . $lang['REPLY_WITH_QUOTE_TXTB'] . '" title="' . $lang['REPLY_WITH_QUOTE'] . '" />',
'PIN_IMG' => $bb_cfg['text_buttons'] ? $lang['PIN_POST_TXTB'] : '<img src="' . $images['icon_pin_post'] . '" alt="' . $lang['PIN_POST_TXTB'] . '" title="' . $lang['PIN_POST'] . '" />',
'PIN_IMG' => $bb_cfg['text_buttons'] ? $lang['PIN_POST_TXTB'] : '<img src="' . $images['icon_pin_post'] . '" alt="' . $lang['PIN_POST_TXTB'] . '" title="' . $lang['PIN_MESSAGE'] . '" />',
'EDIT_POST_IMG' => $bb_cfg['text_buttons'] ? $lang['EDIT_DELETE_POST_TXTB'] : '<img src="' . $images['icon_edit'] . '" alt="' . $lang['EDIT_DELETE_POST_TXTB'] . '" title="' . $lang['EDIT_POST'] . '" />',
'DELETE_POST_IMG' => $bb_cfg['text_buttons'] ? $lang['DELETE_POST_TXTB'] : '<img src="' . $images['icon_delpost'] . '" alt="' . $lang['DELETE_POST_TXTB'] . '" title="' . $lang['DELETE_POST'] . '" />',
'IP_POST_IMG' => $bb_cfg['text_buttons'] ? $lang['VIEW_IP_TXTB'] : '<img src="' . $images['icon_ip'] . '" alt="' . $lang['VIEW_IP_TXTB'] . '" title="' . $lang['VIEW_IP'] . '" />',

View file

@ -604,7 +604,7 @@ for ($i = 0; $i < $total_posts; $i++) {
if (!$poster_bot) {
$quote_btn = ($is_auth['auth_reply'] && !$locked);
$edit_btn = (($userdata['user_id'] == $poster_id && $is_auth['auth_edit']) || $is_auth['auth_mod']);
$pin_btn = (($userdata['user_id'] == $poster_id) || $is_auth['auth_mod']);
$pin_btn = ($post_id != $t_data['topic_first_post_id']) && (($userdata['user_id'] == $poster_id) || $is_auth['auth_mod']);
$ip_btn = ($is_auth['auth_mod'] || IS_MOD);
}
$delpost_btn = ($post_id != $t_data['topic_first_post_id'] && ($is_auth['auth_mod'] || ($userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $t_data['topic_last_post_id'] == $post_id && $postrow[$i]['post_time'] + 3600 * 3 > TIMENOW)));