Remove the information about the number of threads/posts

This commit is contained in:
Antoine Le Gonidec 2024-07-24 15:05:31 +02:00
parent daf4df359e
commit be01844fa0
Signed by: vv221
GPG key ID: 636B78F91CEB80D8
5 changed files with 3 additions and 111 deletions

View file

@ -87,8 +87,6 @@ function template_main()
</h2>', !empty($category['description']) ? '
<div class="desc">' . $category['description'] . '</div>' : '', '
</div><!--fin class info-->
<div class="board_stats">
<div>', $txt['board_topics'], '</div><div>', $txt['posts'], '</div></div>
<div class="lastpost">', $txt['last_post'], '</div>
</div>
<div id="category_', $category['id'], '_boards" ', (!empty($category['css_class']) ? ('class="' . $category['css_class'] . '"') : ''), $category['is_collapsed'] ? ' style="display: none;"' : '', '>';
@ -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), '
</div><!-- .info -->';
// Show some basic information about the number of posts, etc.
echo '
<div class="board_stats">
', function_exists('template_bi_' . $board['type'] . '_stats') ? call_user_func('template_bi_' . $board['type'] . '_stats', $board) : template_bi_board_stats($board), '
</div>';
// Show the last post if there is one.
echo'
<div class="lastpost">
@ -200,25 +192,6 @@ function template_bi_board_info($board)
<p class="moderators">', count($board['link_moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';
}
/**
* Outputs the board stats for a standard board.
*
* @param array $board Current board information.
*/
function template_bi_board_stats($board)
{
global $txt;
echo '
<div>
', comma_format($board['topics']), '
</div>
<div>
', comma_format($board['posts']), '
</div>
';
}
/**
* Outputs the board stats for a redirect.
*
@ -300,10 +273,6 @@ function template_bi_board_children($board)
<div class="desc">' . $child['description'] . '
</div>
</div>
<div class="board_stats">
<div>' . comma_format($child['topics']) . '</div>
<div>' . comma_format($child['posts']) . '</div>
</div>
<div class="lastpost"><!--'. $board['last_post']['last_post_message']. '--></div>
</div>' : '
@ -318,10 +287,6 @@ function template_bi_board_children($board)
<div class="desc">' . $child['description'] . '
</div>
</div>
<div class="board_stats">
<div>' . comma_format($child['topics']) . '</div>
<div>' . comma_format($child['posts']) . '</div>
</div>
<div class="lastpost"><!--Todo Erreur !!
'. $board['last_post']['last_post_message']. '-->
</div>

View file

@ -66,8 +66,6 @@ function template_main()
<h2 class="catbg">', $txt['sub_boards'], '</h2>
</div><!--fin class info-->
<div class="board_stats">
<div>', $txt['board_topics'], '</div><div>', $txt['posts'], '</div></div>
<div class="lastpost">', $txt['last_post'], '</div>
</div>';
@ -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), '
</div><!-- .info -->';
// Show some basic information about the number of posts, etc.
echo '
<div class="board_stats">
', function_exists('template_bi_' . $board['type'] . '_stats') ? call_user_func('template_bi_' . $board['type'] . '_stats', $board) : template_bi_board_stats($board), '
</div>';
// Show the last post if there is one.
echo '
<div class="lastpost">
@ -163,10 +155,6 @@ function template_main()
echo '
<div class="board_icon"></div>
<div class="info">', $context['topics_headers']['subject'], ' / ', $context['topics_headers']['starter'], '</div>
<div class="board_stats centertext">
<div>', $context['topics_headers']['replies'], ' </div>
<div> ', $context['topics_headers']['views'], ' </div>
</div>
<div class="lastpost">', $context['topics_headers']['last_post'], '</div>';
// Show a "select all" box for quick moderation?
@ -247,10 +235,6 @@ function template_main()
', !empty($topic['pages']) ? '<span id="pages' . $topic['first_post']['id'] . '" class="topic_pages">' . $topic['pages'] . '</span>' : '', '
</div><!-- #topic_[first_post][id] -->
</div><!-- .info -->
<div class="board_stats centertext">
<div> ', $topic['replies'], ' </div>
<div> ', $topic['views'], ' </div>
</div>
<div class="lastpost">
<p>', sprintf($txt['last_post_topic'], '<a href="' . $topic['last_post']['href'] . '">' . $topic['last_post']['time'] . '</a>', $topic['last_post']['member']['link']), '</p>
</div>';
@ -474,21 +458,6 @@ function template_bi_board_info($board)
<p class="moderators">', count($board['link_moderators']) === 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';
}
/**
* Outputs the board stats for a standard board.
*
* @param array $board Current board information.
*/
function template_bi_board_stats($board)
{
global $txt;
echo '
<div> ', comma_format($board['topics']), ' </div>
<div> ', comma_format($board['posts']), ' </div>
';
}
/**
* Outputs the board stats for a redirect.
*

View file

@ -131,9 +131,6 @@ function template_unread()
<span class="main_icons sort_' . $context['sort_direction'] . '"></span>
' : '', '</a>
</div>
<div class="board_stats centertext">
<a href="', $scripturl, '?action=unread', $context['showing_all_topics'] ? ';all' : '', $context['querystring_board_limits'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] == 'replies' ? ' <span class="main_icons sort_' . $context['sort_direction'] . '"></span>' : '', '</a>
</div>
<div class="lastpost">
<a href="', $scripturl, '?action=unread', $context['showing_all_topics'] ? ';all' : '', $context['querystring_board_limits'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['last_post'], $context['sort_by'] == 'last_post' ? ' <span class="main_icons sort_' . $context['sort_direction'] . '"></span>' : '', '</a>
</div>';
@ -188,13 +185,6 @@ function template_unread()
</p>
', !empty($topic['pages']) ? '<span id="pages' . $topic['first_post']['id'] . '" class="topic_pages">' . $topic['pages'] . '</span>' : '', '
</div><!-- .info -->
<div class="board_stats centertext">
<p>
', $topic['replies'], ' ', $txt['replies'], '
<br>
', $topic['views'], ' ', $txt['views'], '
</p>
</div>
<div class="lastpost">
', sprintf($txt['last_post_topic'], '<a href="' . $topic['last_post']['href'] . '">' . $topic['last_post']['time'] . '</a>', $topic['last_post']['member']['link']), '
</div>';
@ -319,9 +309,6 @@ function template_replies()
<div class="info">
<a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=subject', $context['sort_by'] === 'subject' && $context['sort_direction'] === 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] === 'subject' ? ' <span class="main_icons sort_' . $context['sort_direction'] . '"></span>' : '', '</a>
</div>
<div class="board_stats centertext">
<a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=replies', $context['sort_by'] === 'replies' && $context['sort_direction'] === 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] === 'replies' ? ' <span class="main_icons sort_' . $context['sort_direction'] . '"></span>' : '', '</a>
</div>
<div class="lastpost">
<a href="', $scripturl, '?action=unreadreplies', $context['querystring_board_limits'], ';sort=last_post', $context['sort_by'] === 'last_post' && $context['sort_direction'] === 'up' ? ';desc' : '', '">', $txt['last_post'], $context['sort_by'] === 'last_post' ? ' <span class="main_icons sort_' . $context['sort_direction'] . '"></span>' : '', '</a>
</div>';
@ -376,13 +363,6 @@ function template_replies()
</p>
', !empty($topic['pages']) ? '<span id="pages' . $topic['first_post']['id'] . '" class="topic_pages">' . $topic['pages'] . '</span>' : '', '
</div><!-- .info -->
<div class="board_stats centertext">
<p>
', $topic['replies'], ' ', $txt['replies'], '
<br>
', $topic['views'], ' ', $txt['views'], '
</p>
</div>
<div class="lastpost">
', sprintf($txt['last_post_topic'], '<a href="' . $topic['last_post']['href'] . '">' . $topic['last_post']['time'] . '</a>', $topic['last_post']['member']['link']), '
</div>';

View file

@ -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 {

View file

@ -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);
}