mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Minor improvements
This commit is contained in:
parent
9c39ab77d1
commit
a30191dc3a
1 changed files with 5 additions and 4 deletions
|
@ -180,6 +180,7 @@ $forum_name = $t_data['forum_name'];
|
||||||
$topic_title = $t_data['topic_title'];
|
$topic_title = $t_data['topic_title'];
|
||||||
$topic_id = $t_data['topic_id'];
|
$topic_id = $t_data['topic_id'];
|
||||||
$topic_time = $t_data['topic_time'];
|
$topic_time = $t_data['topic_time'];
|
||||||
|
$locked = ($t_data['forum_status'] == FORUM_LOCKED || $t_data['topic_status'] == TOPIC_LOCKED);
|
||||||
|
|
||||||
$moderation = (!empty($_REQUEST['mod']) && $is_auth['auth_mod']);
|
$moderation = (!empty($_REQUEST['mod']) && $is_auth['auth_mod']);
|
||||||
|
|
||||||
|
@ -371,8 +372,8 @@ $view_forum_url = FORUM_URL . $forum_id;
|
||||||
$view_prev_topic_url = TOPIC_URL . $topic_id . "&view=previous#newest";
|
$view_prev_topic_url = TOPIC_URL . $topic_id . "&view=previous#newest";
|
||||||
$view_next_topic_url = TOPIC_URL . $topic_id . "&view=next#newest";
|
$view_next_topic_url = TOPIC_URL . $topic_id . "&view=next#newest";
|
||||||
|
|
||||||
$reply_img = ($t_data['forum_status'] == FORUM_LOCKED || $t_data['topic_status'] == TOPIC_LOCKED) ? $images['reply_locked'] : $images['reply_new'];
|
$reply_img = $locked ? $images['reply_locked'] : $images['reply_new'];
|
||||||
$reply_alt = ($t_data['forum_status'] == FORUM_LOCKED || $t_data['topic_status'] == TOPIC_LOCKED) ? $lang['TOPIC_LOCKED_SHORT'] : $lang['REPLY_TO_TOPIC'];
|
$reply_alt = $locked ? $lang['TOPIC_LOCKED_SHORT'] : $lang['REPLY_TO_TOPIC'];
|
||||||
|
|
||||||
// Set 'body' template for attach_mod
|
// Set 'body' template for attach_mod
|
||||||
$template->set_filenames(['body' => 'viewtopic.tpl']);
|
$template->set_filenames(['body' => 'viewtopic.tpl']);
|
||||||
|
@ -600,7 +601,7 @@ for ($i = 0; $i < $total_posts; $i++) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$poster_bot) {
|
if (!$poster_bot) {
|
||||||
$quote_btn = ($is_auth['auth_reply'] && !($t_data['forum_status'] == FORUM_LOCKED || $t_data['topic_status'] == TOPIC_LOCKED));
|
$quote_btn = ($is_auth['auth_reply'] && !$locked);
|
||||||
$edit_btn = (($userdata['user_id'] == $poster_id && $is_auth['auth_edit']) || $is_auth['auth_mod']);
|
$edit_btn = (($userdata['user_id'] == $poster_id && $is_auth['auth_edit']) || $is_auth['auth_mod']);
|
||||||
$ip_btn = ($is_auth['auth_mod'] || IS_MOD);
|
$ip_btn = ($is_auth['auth_mod'] || IS_MOD);
|
||||||
}
|
}
|
||||||
|
@ -756,7 +757,7 @@ if (defined('SPLIT_FORM_START')) {
|
||||||
|
|
||||||
// Quick Reply
|
// Quick Reply
|
||||||
if ($bb_cfg['show_quick_reply']) {
|
if ($bb_cfg['show_quick_reply']) {
|
||||||
if ($is_auth['auth_reply'] && !($t_data['forum_status'] == FORUM_LOCKED || $t_data['topic_status'] == TOPIC_LOCKED)) {
|
if ($is_auth['auth_reply'] && !$locked) {
|
||||||
$template->assign_vars([
|
$template->assign_vars([
|
||||||
'QUICK_REPLY' => true,
|
'QUICK_REPLY' => true,
|
||||||
'QR_POST_ACTION' => POSTING_URL,
|
'QR_POST_ACTION' => POSTING_URL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue