mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Last seeder display improvements (#1052)
This commit is contained in:
parent
d7ce42f6be
commit
6c2a94952a
6 changed files with 6 additions and 7 deletions
|
@ -501,7 +501,7 @@ if ($tor_reged && $tor_info) {
|
||||||
// Show "seeder last seen info"
|
// Show "seeder last seen info"
|
||||||
if (($s_mode == 'count' && !$seed_count) || (!$seeders && !defined('SEEDER_EXIST'))) {
|
if (($s_mode == 'count' && !$seed_count) || (!$seeders && !defined('SEEDER_EXIST'))) {
|
||||||
$last_seen_time = ($tor_info['seeder_last_seen']) ? delta_time($tor_info['seeder_last_seen']) : $lang['NEVER'];
|
$last_seen_time = ($tor_info['seeder_last_seen']) ? delta_time($tor_info['seeder_last_seen']) : $lang['NEVER'];
|
||||||
$last_seeder_username = !empty($tor_info['last_seeder_id']) ? '(' .get_userdata($tor_info['last_seeder_id'])['username']. ')' : '';
|
$last_seeder_username = (!empty($tor_info['last_seeder_id']) && $last_seeder = get_userdata($tor_info['last_seeder_id'])) ? ' -> <b>' . profile_url(['username' => $last_seeder['username'], 'user_id' => $last_seeder['user_id'], 'user_rank' => $last_seeder['user_rank']]) . '</b>' : '';
|
||||||
|
|
||||||
$template->assign_vars(['SEEDER_LAST_SEEN' => sprintf($lang['SEEDER_LAST_SEEN'], $last_seen_time)]);
|
$template->assign_vars(['SEEDER_LAST_SEEN' => sprintf($lang['SEEDER_LAST_SEEN'], $last_seen_time)]);
|
||||||
$template->assign_vars(['SEEDER_USERNAME' => $last_seeder_username]);
|
$template->assign_vars(['SEEDER_USERNAME' => $last_seeder_username]);
|
||||||
|
|
|
@ -454,7 +454,6 @@ $bb_cfg['show_poster_posts'] = true; // показывать количеств
|
||||||
$bb_cfg['show_poster_from'] = true; // показывать страну пользователя
|
$bb_cfg['show_poster_from'] = true; // показывать страну пользователя
|
||||||
$bb_cfg['show_bot_nick'] = false; // показывать ник бота
|
$bb_cfg['show_bot_nick'] = false; // показывать ник бота
|
||||||
$bb_cfg['text_buttons'] = false; // replace EDIT, QUOTE... images with text links
|
$bb_cfg['text_buttons'] = false; // replace EDIT, QUOTE... images with text links
|
||||||
$bb_cfg['parse_ed2k_links'] = true; // make ed2k links clickable
|
|
||||||
$bb_cfg['post_date_format'] = 'd-M-Y H:i'; // формат даты публикации в топиках
|
$bb_cfg['post_date_format'] = 'd-M-Y H:i'; // формат даты публикации в топиках
|
||||||
$bb_cfg['ext_link_new_win'] = true; // open external links in new window
|
$bb_cfg['ext_link_new_win'] = true; // open external links in new window
|
||||||
|
|
||||||
|
|
|
@ -2531,7 +2531,7 @@ $lang['BOT_TOPIC_MOVED_FROM_TO'] = 'Topic has been moved from forum [b]%s[/b] to
|
||||||
$lang['BOT_MESS_SPLITS'] = 'Topic has been split. New topic - [b]%s[/b][br][br]%s';
|
$lang['BOT_MESS_SPLITS'] = 'Topic has been split. New topic - [b]%s[/b][br][br]%s';
|
||||||
$lang['BOT_TOPIC_SPLITS'] = 'Topic has been split from [b]%s[/b][br][br]%s';
|
$lang['BOT_TOPIC_SPLITS'] = 'Topic has been split from [b]%s[/b][br][br]%s';
|
||||||
|
|
||||||
$lang['CALLSEED'] = 'Downloaded the call';
|
$lang['CALLSEED'] = 'Call seeds';
|
||||||
$lang['CALLSEED_EXPLAIN'] = 'Take notice with a request to return to the distribution';
|
$lang['CALLSEED_EXPLAIN'] = 'Take notice with a request to return to the distribution';
|
||||||
$lang['CALLSEED_SUBJECT'] = 'Download help %s';
|
$lang['CALLSEED_SUBJECT'] = 'Download help %s';
|
||||||
$lang['CALLSEED_TEXT'] = 'Hello![br]Your help is needed in the release [url=%s]%s[/url][br]If you decide to help, but already deleted the torrent file, you can download it [url=%s]this[/url][br][br]I hope for your help!';
|
$lang['CALLSEED_TEXT'] = 'Hello![br]Your help is needed in the release [url=%s]%s[/url][br]If you decide to help, but already deleted the torrent file, you can download it [url=%s]this[/url][br][br]I hope for your help!';
|
||||||
|
|
|
@ -2531,7 +2531,7 @@ $lang['BOT_TOPIC_MOVED_FROM_TO'] = 'Topic has been moved from forum [b]%s[/b] to
|
||||||
$lang['BOT_MESS_SPLITS'] = 'Topic has been split. New topic - [b]%s[/b][br][br]%s';
|
$lang['BOT_MESS_SPLITS'] = 'Topic has been split. New topic - [b]%s[/b][br][br]%s';
|
||||||
$lang['BOT_TOPIC_SPLITS'] = 'Topic has been split from [b]%s[/b][br][br]%s';
|
$lang['BOT_TOPIC_SPLITS'] = 'Topic has been split from [b]%s[/b][br][br]%s';
|
||||||
|
|
||||||
$lang['CALLSEED'] = 'Downloaded the call';
|
$lang['CALLSEED'] = 'Call seeds';
|
||||||
$lang['CALLSEED_EXPLAIN'] = 'Take notice with a request to return to the distribution';
|
$lang['CALLSEED_EXPLAIN'] = 'Take notice with a request to return to the distribution';
|
||||||
$lang['CALLSEED_SUBJECT'] = 'Download help %s';
|
$lang['CALLSEED_SUBJECT'] = 'Download help %s';
|
||||||
$lang['CALLSEED_TEXT'] = 'Hello![br]Your help is needed in the release [url=%s]%s[/url][br]If you decide to help, but already deleted the torrent file, you can download it [url=%s]this[/url][br][br]I hope for your help!';
|
$lang['CALLSEED_TEXT'] = 'Hello![br]Your help is needed in the release [url=%s]%s[/url][br]If you decide to help, but already deleted the torrent file, you can download it [url=%s]this[/url][br][br]I hope for your help!';
|
||||||
|
|
|
@ -213,8 +213,8 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="row1">
|
<tr class="row1">
|
||||||
<td>{L_COMPLETED}:</td>
|
<td>{L_DOWNLOADED}:</td>
|
||||||
<td><span title="Полных скачиваний: {postrow.attach.tor_reged.COMPLETED}">{postrow.attach.tor_reged.DOWNLOAD_COUNT}</span></td>
|
<td><span title="{L_COMPLETED}: {postrow.attach.tor_reged.COMPLETED}">{postrow.attach.tor_reged.DOWNLOAD_COUNT}</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="row1">
|
<tr class="row1">
|
||||||
<td>{L_SIZE}:</td>
|
<td>{L_SIZE}:</td>
|
||||||
|
|
|
@ -57,7 +57,7 @@ ajax.callback.callseed = function (data) {
|
||||||
<td colspan="2" class="borderless bCenter pad_8">
|
<td colspan="2" class="borderless bCenter pad_8">
|
||||||
{L_SIZE}: <b>{TOR_SIZE}</b> |
|
{L_SIZE}: <b>{TOR_SIZE}</b> |
|
||||||
{L_IS_REGISTERED}: <b>{TOR_LONGEVITY}</b> |
|
{L_IS_REGISTERED}: <b>{TOR_LONGEVITY}</b> |
|
||||||
{L_COMPLETED}: <b title="Полных скачиваний: {TOR_COMPLETED}">{TOR_DOWNLOAD_COUNT}</b>
|
{L_DOWNLOADED}: <b title="{L_COMPLETED}: {TOR_COMPLETED}">{TOR_DOWNLOAD_COUNT}</b>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF / SHOW_DL_LIST_TOR_INFO -->
|
<!-- ENDIF / SHOW_DL_LIST_TOR_INFO -->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue