Moved $bb_cfg['show_board_start_date'] to admin panel (#745)

This commit is contained in:
Roman Kelesidis 2023-05-30 23:34:31 +07:00 committed by GitHub
commit 421c8b60f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 4 deletions

View file

@ -73,6 +73,7 @@ switch ($mode) {
'NETWORK_NEWS_FORUM_ID' => $new['network_news_forum_id'], 'NETWORK_NEWS_FORUM_ID' => $new['network_news_forum_id'],
'WHOIS_INFO' => $new['whois_info'], 'WHOIS_INFO' => $new['whois_info'],
'SHOW_MOD_INDEX' => $new['show_mod_index'], 'SHOW_MOD_INDEX' => $new['show_mod_index'],
'SHOW_BOARD_START_INDEX' => $new['show_board_start_index'],
'BIRTHDAY_ENABLED' => $new['birthday_enabled'], 'BIRTHDAY_ENABLED' => $new['birthday_enabled'],
'BIRTHDAY_MAX_AGE' => $new['birthday_max_age'], 'BIRTHDAY_MAX_AGE' => $new['birthday_max_age'],
'BIRTHDAY_MIN_AGE' => $new['birthday_min_age'], 'BIRTHDAY_MIN_AGE' => $new['birthday_min_age'],

View file

@ -303,7 +303,7 @@ $template->assign_vars(array(
'U_ATOM_FEED' => file_exists($bb_cfg['atom']['path'] . '/f/0.atom') ? make_url($bb_cfg['atom']['url'] . '/f/0.atom') : false, 'U_ATOM_FEED' => file_exists($bb_cfg['atom']['path'] . '/f/0.atom') ? make_url($bb_cfg['atom']['url'] . '/f/0.atom') : false,
'SHOW_LAST_TOPIC' => $show_last_topic, 'SHOW_LAST_TOPIC' => $show_last_topic,
'BOARD_START' => $bb_cfg['show_board_start_date'] ? ($lang['BOARD_STARTED'] . ':&nbsp;' . '<b>' . bb_date($bb_cfg['board_startdate']) . '</b>') : '', 'BOARD_START' => $bb_cfg['show_board_start_index'] ? ($lang['BOARD_STARTED'] . ':&nbsp;' . '<b>' . bb_date($bb_cfg['board_startdate']) . '</b>') : false,
)); ));
// Set tpl vars for bt_userdata // Set tpl vars for bt_userdata

View file

@ -577,7 +577,8 @@ VALUES ('allow_autologin', '1'),
('show_mod_index', '0'), ('show_mod_index', '0'),
('premod', '0'), ('premod', '0'),
('tor_comment', '1'), ('tor_comment', '1'),
('terms', ''); ('terms', ''),
('show_board_start_index', '1');
-- ---------------------------- -- ----------------------------
-- Table structure for `bb_cron` -- Table structure for `bb_cron`

View file

@ -57,3 +57,6 @@ ALTER TABLE `bb_users` CHANGE `username` `username` VARCHAR(255) NOT NULL DEFAUL
ALTER TABLE `bb_users` CHANGE `user_password` `user_password` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; ALTER TABLE `bb_users` CHANGE `user_password` `user_password` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '';
ALTER TABLE `bb_users` CHANGE `user_actkey` `user_actkey` VARCHAR(255) NOT NULL DEFAULT ''; ALTER TABLE `bb_users` CHANGE `user_actkey` `user_actkey` VARCHAR(255) NOT NULL DEFAULT '';
ALTER TABLE `bb_users` CHANGE `user_newpasswd` `user_newpasswd` VARCHAR(255) NOT NULL DEFAULT ''; ALTER TABLE `bb_users` CHANGE `user_newpasswd` `user_newpasswd` VARCHAR(255) NOT NULL DEFAULT '';
// 2.4.0-alpha3
INSERT INTO bb_config VALUES ('show_board_start_index', '1');

View file

@ -519,7 +519,6 @@ $bb_cfg['allow_change'] = [
'dateformat' => true, 'dateformat' => true,
]; ];
$bb_cfg['show_board_start_date'] = true;
$bb_cfg['show_jumpbox'] = true; $bb_cfg['show_jumpbox'] = true;
$bb_cfg['trash_forum_id'] = 0; // (int) 7 $bb_cfg['trash_forum_id'] = 0; // (int) 7

View file

@ -2065,6 +2065,7 @@ $lang['NOAVATAR'] = 'No avatar';
$lang['TRACKER_STATS'] = 'Statistics on the tracker'; $lang['TRACKER_STATS'] = 'Statistics on the tracker';
$lang['WHOIS_INFO'] = 'Information about IP address'; $lang['WHOIS_INFO'] = 'Information about IP address';
$lang['SHOW_MOD_HOME_PAGE'] = 'Show on moderators the index.php'; $lang['SHOW_MOD_HOME_PAGE'] = 'Show on moderators the index.php';
$lang['SHOW_BOARD_STARTED_INDEX'] = 'Show board start date on index.php';
$lang['PREMOD_HELP'] = '<h4><span class="tor-icon tor-dup">&#8719;</span> Pre-moderation</h4> <h6>If you do not have distributions to the status of v, #, or T in this section, including subsections, the distribution will automatically receive this status</h6>'; $lang['PREMOD_HELP'] = '<h4><span class="tor-icon tor-dup">&#8719;</span> Pre-moderation</h4> <h6>If you do not have distributions to the status of v, #, or T in this section, including subsections, the distribution will automatically receive this status</h6>';
$lang['TOR_COMMENT'] = '<h4>Comment on the status of a distribution</h4> <h6>The comment allows you to point out the errors made to the releaser. If the statuses are incomplete, a release response form is available to the release manager to correct the release</h6>'; $lang['TOR_COMMENT'] = '<h4>Comment on the status of a distribution</h4> <h6>The comment allows you to point out the errors made to the releaser. If the statuses are incomplete, a release response form is available to the release manager to correct the release</h6>';
$lang['SEED_BONUS_ADD'] = '<h4>Adding seed bonus </h4> <h6> Number of distributions are handed out by the user and the size of bonuses for them (charging times an hour) </h6>'; $lang['SEED_BONUS_ADD'] = '<h4>Adding seed bonus </h4> <h6> Number of distributions are handed out by the user and the size of bonuses for them (charging times an hour) </h6>';

View file

@ -203,6 +203,13 @@
<label><input type="radio" name="show_mod_index" value="0" <!-- IF not SHOW_MOD_INDEX -->checked="checked"<!-- ENDIF --> />{L_DISABLED}</label> <label><input type="radio" name="show_mod_index" value="0" <!-- IF not SHOW_MOD_INDEX -->checked="checked"<!-- ENDIF --> />{L_DISABLED}</label>
</td> </td>
</tr> </tr>
<tr>
<td><h4>{L_SHOW_BOARD_STARTED_INDEX}</h4></td>
<td>
<label><input type="radio" name="show_board_start_index" value="1" <!-- IF SHOW_BOARD_START_INDEX -->checked="checked"<!-- ENDIF --> />{L_ENABLED}</label>&nbsp;&nbsp;
<label><input type="radio" name="show_board_start_index" value="0" <!-- IF not SHOW_BOARD_START_INDEX -->checked="checked"<!-- ENDIF --> />{L_DISABLED}</label>
</td>
</tr>
<tr> <tr>
<td>{L_PREMOD_HELP}</td> <td>{L_PREMOD_HELP}</td>
<td> <td>

View file

@ -174,7 +174,7 @@
<p>{TOTAL_GENDER}</p> <p>{TOTAL_GENDER}</p>
<p>{NEWEST_USER}</p> <p>{NEWEST_USER}</p>
<!-- IF $bb_cfg['show_board_start_date'] --> <!-- IF BOARD_START -->
<p style="margin-top: 4px;">{BOARD_START}</p> <p style="margin-top: 4px;">{BOARD_START}</p>
<!-- ENDIF --> <!-- ENDIF -->