From 9c70ba0b6af8d4385cf7515ed5a1ad5dfb9b1833 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 6 Jan 2025 20:38:17 +0700 Subject: [PATCH] Updated --- library/attach_mod/displaying_torrent.php | 8 ++++++++ styles/templates/default/viewtopic_torrent.tpl | 13 +++++++++++++ 2 files changed, 21 insertions(+) diff --git a/library/attach_mod/displaying_torrent.php b/library/attach_mod/displaying_torrent.php index 2257a0954..b3bc13468 100644 --- a/library/attach_mod/displaying_torrent.php +++ b/library/attach_mod/displaying_torrent.php @@ -518,6 +518,14 @@ if ($tor_reged && $tor_info) { $template->assign_vars(['SEEDER_LAST_SEEN' => sprintf($lang['SEEDER_LAST_SEEN'], $last_seen_time)]); $template->assign_vars(['SEEDER_USERNAME' => $last_seeder_username]); } + + // Show external peers + if ($bb_cfg['tracker']['multitracker']['enabled']) { + $template->assign_vars([ + 'MULTI_SEED_COUNT' => (int)$tor_info['ext_seeders'], + 'MULTI_LEECH_COUNT' => (int)$tor_info['ext_leechers'], + ]); + } } $template->assign_block_vars('tor_title', ['U_DOWNLOAD_LINK' => $download_link]); diff --git a/styles/templates/default/viewtopic_torrent.tpl b/styles/templates/default/viewtopic_torrent.tpl index e7f8e8267..cbe7c12b6 100644 --- a/styles/templates/default/viewtopic_torrent.tpl +++ b/styles/templates/default/viewtopic_torrent.tpl @@ -71,6 +71,19 @@ ajax.callback.callseed = function (data) { + + + + +
+ {L_SEEDERS}:  {MULTI_SEED_COUNT}   + {L_LEECHERS}:  {MULTI_LEECH_COUNT}   +
+ + + + +