This commit is contained in:
Roman Kelesidis 2024-10-04 22:54:41 +07:00
commit 927e085cc0
3 changed files with 10 additions and 0 deletions

View file

@ -536,6 +536,9 @@ $bb_cfg['prevent_multiposting'] = true; // TODO: replace "reply" with "edit last
$bb_cfg['max_smilies'] = 25; //Max number of smilies in a post (0 - unlimited)
$bb_cfg['max_symbols_post'] = 5000; // TODO: Max number of symbols in a post (0 - unlimited)
// Announcements
$bb_cfg['show_announcements_on_every_page'] = false;
// PM
$bb_cfg['privmsg_disable'] = false; // Disable private messages
$bb_cfg['max_outgoing_pm_cnt'] = 10; // TODO: Max number of messages in a short period of time to fight spam
@ -684,6 +687,10 @@ $bb_cfg['page'] = [
'show_sidebar2' => [
#BB_SCRIPT => true
'index' => true,
],
'show_announcements' => [
#BB_SCRIPT => true
'index' => true,
]
];

View file

@ -169,6 +169,7 @@ $template->assign_vars([
'U_TERMS' => $bb_cfg['terms_and_conditions_url'],
'U_TRACKER' => 'tracker.php',
'SHOW_ANNOUNCEMENTS' => !empty($bb_cfg['page']['show_announcements'][BB_SCRIPT]) || $bb_cfg['show_announcements_on_every_page'],
'SHOW_SIDEBAR1' => !empty($bb_cfg['page']['show_sidebar1'][BB_SCRIPT]) || $bb_cfg['show_sidebar1_on_every_page'],
'SHOW_SIDEBAR2' => !empty($bb_cfg['page']['show_sidebar2'][BB_SCRIPT]) || $bb_cfg['show_sidebar2_on_every_page'],

View file

@ -414,6 +414,8 @@ function go_to_page ()
<!--main_content-->
<td id="main_content">
<div id="main_content_wrap">
<!-- IF SHOW_ANNOUNCEMENTS -->
<!-- ENDIF -->
<div id="latest_news">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>