Note: these instructions apply to FusionBB version 1.0. Later versions of the software include this as an Administrator Configurable feature.
Doing the following will allow you to configure FusionBB so that some users don't have the ability to toggle the sidebars on/off. (Remember to back up the /includes/common.php file before making any changes.)
- In the /includes/common.php file, find the following code:
if ($session->user_prefs[ 'info_sidebar'] > 0 && !$this->meta_refresh &&
!defined('NO_SIDEBAR')) { $this ->
createNavTabSub('myfusion ',$lang_str['TOGGLE_SIDEB AR'],'toggleside');
}
- And replace it with:
if ($session->user_prefs[ 'info_sidebar'] > 0 && !$this->meta_refresh && !defined('NO_SIDEBAR') &&
isset($session->site_a uth['CAN_SET_SIDEBARS'])) {
$this ->
createNavTabSub('myfusion ',$lang_str['TOGGLE_SIDEB AR'],'toggleside');
}
- Save your changes.