Added show board start date on index page (#725)

This commit is contained in:
Roman Kelesidis 2023-05-25 13:59:57 +07:00 committed by GitHub
commit 108fe39ade
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View file

@ -518,6 +518,8 @@ $bb_cfg['allow_change'] = [
'dateformat' => true,
];
$bb_cfg['show_board_start_date'] = true;
$bb_cfg['trash_forum_id'] = 0; // (int) 7
$bb_cfg['first_logon_redirect_url'] = 'index.php';

View file

@ -139,6 +139,7 @@ $template->assign_vars(array(
'CURRENT_TIME' => sprintf($lang['CURRENT_TIME'], bb_date(TIMENOW, $bb_cfg['last_visit_date_format'], false)),
'S_TIMEZONE' => preg_replace('/\(.*?\)/', '', sprintf($lang['ALL_TIMES'], $lang['TZ'][str_replace(',', '.', (float)$bb_cfg['board_timezone'])])),
'BOARD_TIMEZONE' => $bb_cfg['board_timezone'],
'BOARD_START' => $bb_cfg['show_board_start_date'] ? ($lang['BOARD_STARTED'] . ':&nbsp;' . '<b>' . bb_date($bb_cfg['board_startdate']) . '</b>') : '',
'PM_INFO' => $pm_info,
'PRIVMSG_IMG' => $icon_pm,

View file

@ -174,6 +174,10 @@
<p>{TOTAL_GENDER}</p>
<p>{NEWEST_USER}</p>
<!-- IF $bb_cfg['show_board_start_date'] -->
<p style="margin-top: 4px;">{BOARD_START}</p>
<!-- ENDIF -->
<!-- IF $bb_cfg['tor_stats'] -->
<div class="hr1" style="margin: 5px 0 4px;"></div>
<p>{TORRENTS_STAT}</p>