Roundcube Community Forum

 

Hiding/Deactivating globally certain user's preferences?

Started by climaxy, March 16, 2009, 07:12:02 AM

Previous topic - Next topic

climaxy

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

Julius Caesar

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.
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

JohnDoh

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();
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

climaxy

Thank you both!
=> That's what I was looking for! :-)