From be01844fa0a85b01303502ed3ca52d78540efe1c Mon Sep 17 00:00:00 2001
From: Antoine Le Gonidec
Date: Wed, 24 Jul 2024 15:05:31 +0200
Subject: [PATCH] Remove the information about the number of threads/posts
---
BoardIndex.template.php | 35 -----------------------------------
MessageIndex.template.php | 31 -------------------------------
Recent.template.php | 20 --------------------
css/index.css | 20 ++------------------
css/responsive.css | 8 +-------
5 files changed, 3 insertions(+), 111 deletions(-)
diff --git a/BoardIndex.template.php b/BoardIndex.template.php
index 46eb500..122d586 100644
--- a/BoardIndex.template.php
+++ b/BoardIndex.template.php
@@ -87,8 +87,6 @@ function template_main()
', !empty($category['description']) ? '
' . $category['description'] . '
' : '', '
-
-
', $txt['board_topics'], '
', $txt['posts'], '
', $txt['last_post'], '
';
@@ -108,12 +106,6 @@ function template_main()
', function_exists('template_bi_' . $board['type'] . '_info') ? call_user_func('template_bi_' . $board['type'] . '_info', $board) : template_bi_board_info($board), '
';
- // Show some basic information about the number of posts, etc.
- echo '
-
- ', function_exists('template_bi_' . $board['type'] . '_stats') ? call_user_func('template_bi_' . $board['type'] . '_stats', $board) : template_bi_board_stats($board), '
-
';
-
// Show the last post if there is one.
echo'
@@ -200,25 +192,6 @@ function template_bi_board_info($board)
', count($board['link_moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '
';
}
-/**
- * Outputs the board stats for a standard board.
- *
- * @param array $board Current board information.
- */
-function template_bi_board_stats($board)
-{
- global $txt;
-
- echo '
-
- ', comma_format($board['topics']), '
-
-
- ', comma_format($board['posts']), '
-
- ';
-}
-
/**
* Outputs the board stats for a redirect.
*
@@ -300,10 +273,6 @@ function template_bi_board_children($board)
' . $child['description'] . '
-
-
' . comma_format($child['topics']) . '
-
' . comma_format($child['posts']) . '
-
' : '
@@ -318,10 +287,6 @@ function template_bi_board_children($board)
' . $child['description'] . '
-
-
' . comma_format($child['topics']) . '
-
' . comma_format($child['posts']) . '
-
diff --git a/MessageIndex.template.php b/MessageIndex.template.php
index 08d1978..e23fcf5 100644
--- a/MessageIndex.template.php
+++ b/MessageIndex.template.php
@@ -66,8 +66,6 @@ function template_main()
', $txt['sub_boards'], '
-
-
', $txt['board_topics'], '
', $txt['posts'], '
', $txt['last_post'], '
';
@@ -83,12 +81,6 @@ function template_main()
', function_exists('template_bi_' . $board['type'] . '_info') ? call_user_func('template_bi_' . $board['type'] . '_info', $board) : template_bi_board_info($board), '
';
- // Show some basic information about the number of posts, etc.
- echo '
-
- ', function_exists('template_bi_' . $board['type'] . '_stats') ? call_user_func('template_bi_' . $board['type'] . '_stats', $board) : template_bi_board_stats($board), '
-
';
-
// Show the last post if there is one.
echo '
@@ -163,10 +155,6 @@ function template_main()
echo '
', $context['topics_headers']['subject'], ' / ', $context['topics_headers']['starter'], '
-
-
', $context['topics_headers']['replies'], '
-
', $context['topics_headers']['views'], '
-
', $context['topics_headers']['last_post'], '
';
// Show a "select all" box for quick moderation?
@@ -247,10 +235,6 @@ function template_main()
', !empty($topic['pages']) ? '
' . $topic['pages'] . '' : '', '
-
-
', $topic['replies'], '
-
', $topic['views'], '
-
', sprintf($txt['last_post_topic'], '' . $topic['last_post']['time'] . '', $topic['last_post']['member']['link']), '
';
@@ -474,21 +458,6 @@ function template_bi_board_info($board)
', count($board['link_moderators']) === 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '
';
}
-/**
- * Outputs the board stats for a standard board.
- *
- * @param array $board Current board information.
- */
-function template_bi_board_stats($board)
-{
- global $txt;
-
- echo '
- ', comma_format($board['topics']), '
- ', comma_format($board['posts']), '
- ';
-}
-
/**
* Outputs the board stats for a redirect.
*
diff --git a/Recent.template.php b/Recent.template.php
index c62ec58..bcd849a 100644
--- a/Recent.template.php
+++ b/Recent.template.php
@@ -131,9 +131,6 @@ function template_unread()
' : '', '
-
';
@@ -188,13 +185,6 @@ function template_unread()
', !empty($topic['pages']) ? '' . $topic['pages'] . '' : '', '
-
-
- ', $topic['replies'], ' ', $txt['replies'], '
-
- ', $topic['views'], ' ', $txt['views'], '
-
-
', sprintf($txt['last_post_topic'], '
' . $topic['last_post']['time'] . '', $topic['last_post']['member']['link']), '
';
@@ -319,9 +309,6 @@ function template_replies()
-
';
@@ -376,13 +363,6 @@ function template_replies()
', !empty($topic['pages']) ? '' . $topic['pages'] . '' : '', '
-
-
- ', $topic['replies'], ' ', $txt['replies'], '
-
- ', $topic['views'], ' ', $txt['views'], '
-
-
', sprintf($txt['last_post_topic'], '
' . $topic['last_post']['time'] . '', $topic['last_post']['member']['link']), '
';
diff --git a/css/index.css b/css/index.css
index f4b5f4f..6527c97 100644
--- a/css/index.css
+++ b/css/index.css
@@ -3347,14 +3347,6 @@ h2 .collapse {
.cat_bar .info > span {
margin-left: 1em;
}
-.boardindex_table .board_stats, .cat_bar .board_stats {
- /*padding: 13px 10px 10px;*/
-}
-
-.boardindex_table .board_stats p {
- border-left: 1px solid var(--neutral-color);
- border-right: 1px solid var(--neutral-color);
-}
.info {
overflow: hidden;
overflow-wrap: break-word;
@@ -3364,14 +3356,6 @@ h2 .collapse {
.info .subject {
font-size: 1.1em;
}
-.board_stats {
- width: 15%;
- font-size: 0.9em;
- margin: 0 0 0 auto;
- text-align: center;
- display: flex !important ;
- justify-content: space-around;
-}
.lastpost {
width: 30%;
@@ -3390,7 +3374,7 @@ h2 .collapse {
display: inherit;
}
-.board_icon, .info, .board_stats, .lastpost {
+.board_icon, .info, .lastpost {
display: inline-block;
}
.main_container {
@@ -3543,7 +3527,7 @@ span.postby {
#topic_container .lastpost, #topic_header .lastpost {
width: 20%;
}
-#topic_container .lastpost, #topic_container .board_stats {
+#topic_container .lastpost {
flex-shrink: 0;
}
.icon img, .moderation input {
diff --git a/css/responsive.css b/css/responsive.css
index e9502e5..5de1b08 100644
--- a/css/responsive.css
+++ b/css/responsive.css
@@ -80,7 +80,7 @@
display: none !important;
}
/* Board */
- .board_stats, .cat_bar .lastpost {
+ .cat_bar .lastpost {
display: none !important;
}
.khbb_children {
@@ -128,9 +128,6 @@
.lastpost {
margin: 0 0 0 20px;
}
- .board_stats {
- display: none;
- }
#alerts .alert_time {
display: none;
}
@@ -315,9 +312,6 @@
}
/* BoardIndex */
- .board_stats {
- display: none;
- }
.info {
width: calc(100% - 65px);
}