From 39d069016c59b650ffc8e87d69fafbf812f71028 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 22 Feb 2024 17:51:09 +0700 Subject: [PATCH] Minor improvements (#1409) * Minor improvements * Update CHANGELOG.md * Update viewforum.tpl * Update viewforum.php * Update search.php * Update globals.css * Update modcp.php * Update modcp.php * Revert "Update modcp.php" This reverts commit decd1d58da0e978ce6db780653782e7135bcd645. * Revert "Update modcp.php" This reverts commit 866ce37218b807d78e1ed206a5268cc1bf2947ff. * Update modcp.php --- CHANGELOG.md | 2 +- modcp.php | 2 +- search.php | 2 +- styles/templates/default/css/globals.css | 2 +- styles/templates/default/posting_editor.tpl | 4 ++-- styles/templates/default/viewforum.tpl | 2 +- viewforum.php | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0111223df..5580fb432 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ - Fixed Undefined variable $wordCensor [\#1400](https://github.com/torrentpier/torrentpier/pull/1400) ([belomaxorka](https://github.com/belomaxorka)) - Improved word censor 🤐 [\#1393](https://github.com/torrentpier/torrentpier/pull/1393) ([belomaxorka](https://github.com/belomaxorka)) - Used hashing for filenames generation [\#1385](https://github.com/torrentpier/torrentpier/pull/1385) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1382](https://github.com/torrentpier/torrentpier/pull/1382), [\#1383](https://github.com/torrentpier/torrentpier/pull/1383), [\#1391](https://github.com/torrentpier/torrentpier/pull/1391), [\#1398](https://github.com/torrentpier/torrentpier/pull/1398), [\#1405](https://github.com/torrentpier/torrentpier/pull/1405), [\#1406](https://github.com/torrentpier/torrentpier/pull/1406), [\#1408](https://github.com/torrentpier/torrentpier/pull/1408) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#1382](https://github.com/torrentpier/torrentpier/pull/1382), [\#1383](https://github.com/torrentpier/torrentpier/pull/1383), [\#1391](https://github.com/torrentpier/torrentpier/pull/1391), [\#1398](https://github.com/torrentpier/torrentpier/pull/1398), [\#1405](https://github.com/torrentpier/torrentpier/pull/1405), [\#1406](https://github.com/torrentpier/torrentpier/pull/1406), [\#1408](https://github.com/torrentpier/torrentpier/pull/1408), [\#1409](https://github.com/torrentpier/torrentpier/pull/1409) ([belomaxorka](https://github.com/belomaxorka)) - Some bugfixes [\#1380](https://github.com/torrentpier/torrentpier/pull/1380) ([belomaxorka](https://github.com/belomaxorka)) - New Crowdin updates [\#1384](https://github.com/torrentpier/torrentpier/pull/1384), [\#1389](https://github.com/torrentpier/torrentpier/pull/1389), [\#1392](https://github.com/torrentpier/torrentpier/pull/1392), [\#1402](https://github.com/torrentpier/torrentpier/pull/1402), [\#1403](https://github.com/torrentpier/torrentpier/pull/1403) ([Exileum](https://github.com/Exileum)) diff --git a/modcp.php b/modcp.php index 8532b624e..1886b1626 100644 --- a/modcp.php +++ b/modcp.php @@ -110,7 +110,7 @@ if ($topic_id) { "; if (!$topic_row = DB()->fetch_row($sql)) { - bb_die('Topic post not exist'); + bb_die($lang['INVALID_TOPIC_ID_DB']); } $forum_id = $topic_row['forum_id']; diff --git a/search.php b/search.php index aae65fdf5..f374d5726 100644 --- a/search.php +++ b/search.php @@ -791,7 +791,7 @@ else { 'IS_UNREAD' => $is_unread, 'TOPIC_ICON' => get_topic_icon($topic, $is_unread), 'PAGINATION' => $moved ? '' : build_topic_pagination(TOPIC_URL . $topic_id, $topic['topic_replies'], $bb_cfg['posts_per_page']), - 'REPLIES' => $topic['topic_replies'], + 'REPLIES' => $moved ? '' : $topic['topic_replies'], 'ATTACH' => $topic['topic_attachment'], 'STATUS' => $topic['topic_status'], 'TYPE' => $topic['topic_type'], diff --git a/styles/templates/default/css/globals.css b/styles/templates/default/css/globals.css index 249844a68..23c80be63 100644 --- a/styles/templates/default/css/globals.css +++ b/styles/templates/default/css/globals.css @@ -830,7 +830,7 @@ table.forumline { color: #D5E4EC; font-size: 11px; font-weight: bold; - background: #4E5E6F; + background: #1C508C; } /* "lte IE 6" in page_header.tpl */ diff --git a/styles/templates/default/posting_editor.tpl b/styles/templates/default/posting_editor.tpl index 446fd6c3f..97dab7090 100644 --- a/styles/templates/default/posting_editor.tpl +++ b/styles/templates/default/posting_editor.tpl @@ -60,7 +60,7 @@ ajax.callback.posts = function(data) { -  + -  +   diff --git a/styles/templates/default/viewforum.tpl b/styles/templates/default/viewforum.tpl index 5e5e2462f..08a7ca024 100644 --- a/styles/templates/default/viewforum.tpl +++ b/styles/templates/default/viewforum.tpl @@ -473,7 +473,7 @@ td.topic_id { cursor: pointer; }

{t.REPLIES} - | + | {t.VIEWS}

diff --git a/viewforum.php b/viewforum.php index 497634e96..0841a8ccf 100644 --- a/viewforum.php +++ b/viewforum.php @@ -445,8 +445,8 @@ foreach ($topic_rowset as $topic) { 'IS_UNREAD' => $is_unread, 'TOPIC_ICON' => get_topic_icon($topic, $is_unread), 'PAGINATION' => $moved ? '' : build_topic_pagination(TOPIC_URL . $topic_id, $replies, $bb_cfg['posts_per_page']), - 'REPLIES' => $replies, - 'VIEWS' => $topic['topic_views'], + 'REPLIES' => $moved ? '' : $replies, + 'VIEWS' => $moved ? '' : $topic['topic_views'], 'TOR_STALED' => ($forum_data['allow_reg_tracker'] && !($t_type == POST_ANNOUNCE || $t_type == POST_STICKY || $topic['tor_size'])), 'TOR_FROZEN' => isset($topic['tor_status']) ? ((!IS_AM) ? isset($bb_cfg['tor_frozen'][$topic['tor_status']]) : '') : '', 'TOR_TYPE' => isset($topic['tor_type']) ? is_gold($topic['tor_type']) : '',