Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: climaxy on March 16, 2009, 07:12:02 AM

Title: Hiding/Deactivating globally certain user's preferences?
Post by: climaxy on March 16, 2009, 07:12:02 AM
Hello,

I wonder if it is easily possible to hide globally certain options for all the users within their settings section?

E.g. I'd like to set the server settings (clear trash on logout, compact inbox on logout, etc.) globally, which is possible within the main.inc.php but in the same time I wanna avoid that these settings can be changed back afterwards by each user within their own settings section by changing the states via the checkboxes.

thanx
climaxy
Title: Hiding/Deactivating globally certain user's preferences?
Post by: Julius Caesar on March 16, 2009, 07:15:12 AM
If these settings are in one block, you can remove the block from the skin

./skins/default/templates/settings.html

<div class=&quot;userprefs-block&quot;>
  <roundcube:object name=&quot;userprefs&quot; form=&quot;form&quot; parts=&quot;general,mailbox,mailview&quot; />
</div>
<div class=&quot;userprefs-block&quot;>
  <roundcube:object name=&quot;userprefs&quot; form=&quot;form&quot; parts=&quot;compose,folders,server&quot; />
</div>

Just remove the parts you do not wish to use.
Title: Hiding/Deactivating globally certain user's preferences?
Post by: JohnDoh on March 16, 2009, 07:33:07 AM
you can also do this in the config, check the config file for:
// don't allow these settings to be overriden by the user
$rcmail_config['dont_override'] = array();
Title: Hiding/Deactivating globally certain user's preferences?
Post by: climaxy on March 16, 2009, 09:39:50 AM
Thank you both!
=> That's what I was looking for! :-)