Author Topic: Hiding/Deactivating globally certain user's preferences?  (Read 3068 times)

Offline climaxy

  • Newbie
  • *
  • Posts: 9
Hiding/Deactivating globally certain user's preferences?
« 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

Offline Julius Caesar

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 498
    • http://www.de-keizer.net/
Hiding/Deactivating globally certain user's preferences?
« Reply #1 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

Code: [Select]
<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

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Hiding/Deactivating globally certain user's preferences?
« Reply #2 on: March 16, 2009, 07:33:07 AM »
you can also do this in the config, check the config file for:
Code: [Select]
// don't allow these settings to be overriden by the user
$rcmail_config['dont_override'] = array();
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline climaxy

  • Newbie
  • *
  • Posts: 9
Hiding/Deactivating globally certain user's preferences?
« Reply #3 on: March 16, 2009, 09:39:50 AM »
Thank you both!
=> That's what I was looking for! :-)