19 May 2013 
Support Center » Knowledgebase » Customizing FusionBB » Sidebars: Keeping Some Users from Toggling Sidebars On/Off (FBB ver. 1.0)
 Sidebars: Keeping Some Users from Toggling Sidebars On/Off (FBB ver. 1.0)
Article
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.




Article Details
Article ID: 77
Created On: 10 Nov 2008 7:31 PM

 This answer was helpful  This answer was not helpful

 Back
 Login  
Email Address:
Password:
Remember Me:
 
 Search
 Article Options
Home | Submit a Ticket | Knowledgebase | Downloads
Language:

Help Desk Software by Kayako eSupport v3.30.02