From c676636b0413619266afa0ad06261ff0cb490a87 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 23 Jan 2024 23:17:06 +0700 Subject: [PATCH] Updated --- library/attach_mod/displaying_torrent.php | 5 +++-- styles/templates/default/viewtopic_attach.tpl | 2 +- styles/templates/default/viewtopic_torrent.tpl | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/library/attach_mod/displaying_torrent.php b/library/attach_mod/displaying_torrent.php index ecb9cfd6..64cbb100 100644 --- a/library/attach_mod/displaying_torrent.php +++ b/library/attach_mod/displaying_torrent.php @@ -4,6 +4,7 @@ if (!defined('IN_FORUM')) die(basename(__FILE__)); global $bb_cfg, $t_data, $poster_id, $is_auth, $dl_link_css, $dl_status_css, $lang, $images; +$show_completed_count = false; $tor_status_by_for_all = true; $change_peers_bgr_over = true; $bgr_class_1 = 'row1'; @@ -236,7 +237,7 @@ if ($tor_reged && $tor_info) 'REGED_TIME' => bb_date($tor_info['reg_time']), 'REGED_DELTA' => delta_time($tor_info['reg_time']), 'TORRENT_SIZE' => humn_size($tor_size), - 'COMPLETED' => declension((int)$tor_info['complete_count'], 'times'), + 'COMPLETED' => $show_completed_count ? declension((int)$tor_info['complete_count'], 'times') : false, )); if ($comment) @@ -253,7 +254,7 @@ if ($tor_reged && $tor_info) 'TOR_SIZE' => humn_size($tor_size), 'TOR_LONGEVITY' => delta_time($tor_info['reg_time']), - 'TOR_COMPLETED' => declension((int)$tor_info['complete_count'], 'times'), + 'TOR_COMPLETED' => $show_completed_count ? declension((int)$tor_info['complete_count'], 'times') : false, 'TOR_DOWNLOAD_COUNT' => declension((int)$download_count, 'times'), )); } diff --git a/styles/templates/default/viewtopic_attach.tpl b/styles/templates/default/viewtopic_attach.tpl index 93dc44d8..3522ee0a 100644 --- a/styles/templates/default/viewtopic_attach.tpl +++ b/styles/templates/default/viewtopic_attach.tpl @@ -221,7 +221,7 @@ {L_DOWNLOADED}: - {postrow.attach.tor_reged.DOWNLOAD_COUNT} ({L_COMPLETED}: {postrow.attach.tor_reged.COMPLETED}) + {postrow.attach.tor_reged.DOWNLOAD_COUNT} ({L_COMPLETED}: {postrow.attach.tor_reged.COMPLETED}) {L_SIZE}: diff --git a/styles/templates/default/viewtopic_torrent.tpl b/styles/templates/default/viewtopic_torrent.tpl index e4f03f25..bb15fa7c 100644 --- a/styles/templates/default/viewtopic_torrent.tpl +++ b/styles/templates/default/viewtopic_torrent.tpl @@ -46,8 +46,8 @@ $(document).ready(function(){ {L_SIZE}: {TOR_SIZE}  |  {L_IS_REGISTERED}: {TOR_LONGEVITY}  |  - {L_DOWNLOADED}: {TOR_DOWNLOAD_COUNT}  |  - {L_COMPLETED}: {TOR_COMPLETED} + {L_DOWNLOADED}: {TOR_DOWNLOAD_COUNT}  |  + {L_COMPLETED}: {TOR_COMPLETED}