https://oxpedia.org/wiki/index.php?title=User_and_context_based_themes&feed=atom&action=historyUser and context based themes - Revision history2024-03-28T12:40:53ZRevision history for this page on the wikiMediaWiki 1.31.0https://oxpedia.org/wiki/index.php?title=User_and_context_based_themes&diff=5815&oldid=prevSgabler: /* Setup description */2010-03-12T14:56:08Z<p><span dir="auto"><span class="autocomment">Setup description</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 14:56, 12 March 2010</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l9" >Line 9:</td>
<td colspan="2" class="diff-lineno">Line 9:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  modules/disableUserThemeSelection/enabled=true</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  modules/disableUserThemeSelection/enabled=true</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>  $ vim /<del class="diffchange diffchange-inline">var/www</del>/ox6/plugins/disableUserThemeSelection/register.js</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>  $ vim /<ins class="diffchange diffchange-inline">path_to</ins>/ox6/plugins/disableUserThemeSelection/register.js</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>   </div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>   </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  /**</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  /**</div></td></tr>
</table>Sgablerhttps://oxpedia.org/wiki/index.php?title=User_and_context_based_themes&diff=4064&oldid=prevMheiland at 13:18, 27 June 20092009-06-27T13:18:54Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 13:18, 27 June 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l42" >Line 42:</td>
<td colspan="2" class="diff-lineno">Line 42:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Now you have to ensure that the server sets the correct theme on the user creation.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Now you have to ensure that the server sets the correct theme on the user creation.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category: OX6]]</ins></div></td></tr>
</table>Mheilandhttps://oxpedia.org/wiki/index.php?title=User_and_context_based_themes&diff=2279&oldid=prevSmstmart: /* Server set's theme for a user / context */2008-08-19T07:04:54Z<p><span dir="auto"><span class="autocomment">Server set's theme for a user / context</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 07:04, 19 August 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l39" >Line 39:</td>
<td colspan="2" class="diff-lineno">Line 39:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Server set's theme for a user / context =</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Server set's theme for a user / context =</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">A description of how the server can store settings </del>for a user is described in the <del class="diffchange diffchange-inline">following </del>article:</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Setting theGUI configuration </ins>for a user <ins class="diffchange diffchange-inline">via RMI </ins>is described in the article <ins class="diffchange diffchange-inline">[[Gui_path|Setting User/GUI Preferences via RMI]], an example how this can be done e.g. with a UWA widget through the HTTP API can be found here</ins>: <ins class="diffchange diffchange-inline"> </ins>[[Adding_a_pre_defined_UWA_widget_for_a_User|Adding a pre defined UWA widget for a User]]<ins class="diffchange diffchange-inline">.</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Adding_a_pre_defined_UWA_widget_for_a_User|Adding a pre defined UWA widget for a User]]</div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Now you have to ensure that the server sets the correct theme on the user creation.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Now you have to ensure that the server sets the correct theme on the user creation.</div></td></tr>
</table>Smstmarthttps://oxpedia.org/wiki/index.php?title=User_and_context_based_themes&diff=2278&oldid=prevSmstmart: /* Introduction */2008-08-19T07:04:02Z<p><span dir="auto"><span class="autocomment">Introduction</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 07:04, 19 August 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Introduction =</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>= Introduction =</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Currently you cannot define user or context based themes within the Open-Xchange Server. For this reason we created a UI plug in that will disable all selectable themes in the User front end, so that the user cannot change his current theme. With this plug in the server would be able to set a theme for a user, and that theme cannot be changed by the user. This functionality is at least a workaround as long the function isn't offered officially by the Open-Xchange Server, and is currently experimental. Setting <del class="diffchange diffchange-inline">a </del>configuration for a user is described in [[Adding_a_pre_defined_UWA_widget_for_a_User|Adding a pre defined UWA widget for a User]].</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Currently you cannot define user or context based themes within the Open-Xchange Server. For this reason we created a UI plug in that will disable all selectable themes in the User front end, so that the user cannot change his current theme. With this plug in the server would be able to set a theme for a user, and that theme cannot be changed by the user. This functionality is at least a workaround as long the function isn't offered officially by the Open-Xchange Server, and is currently experimental. Setting <ins class="diffchange diffchange-inline">theGUI </ins>configuration for a user <ins class="diffchange diffchange-inline">via RMI </ins>is described in <ins class="diffchange diffchange-inline">the article [[Gui_path|Setting User/GUI Preferences via RMI]], an example how this can be done e.g. with a UWA widget through the HTTP API can be found here:  </ins>[[Adding_a_pre_defined_UWA_widget_for_a_User|Adding a pre defined UWA widget for a User]].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=  Setup description =</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=  Setup description =</div></td></tr>
</table>Smstmarthttps://oxpedia.org/wiki/index.php?title=User_and_context_based_themes&diff=1972&oldid=prevBartl3by: New page: = Introduction = Currently you cannot define user or context based themes within the Open-Xchange Server. For this reason we created a UI plug in that will disable all selectable themes i...2008-07-01T12:09:24Z<p>New page: = Introduction = Currently you cannot define user or context based themes within the Open-Xchange Server. For this reason we created a UI plug in that will disable all selectable themes i...</p>
<p><b>New page</b></p><div>= Introduction =<br />
<br />
Currently you cannot define user or context based themes within the Open-Xchange Server. For this reason we created a UI plug in that will disable all selectable themes in the User front end, so that the user cannot change his current theme. With this plug in the server would be able to set a theme for a user, and that theme cannot be changed by the user. This functionality is at least a workaround as long the function isn't offered officially by the Open-Xchange Server, and is currently experimental. Setting a configuration for a user is described in [[Adding_a_pre_defined_UWA_widget_for_a_User|Adding a pre defined UWA widget for a User]].<br />
<br />
= Setup description =<br />
<br />
$ vim /opt/open-xchange/etc/groupware/settings/disableUserThemeSelection.properties<br />
<br />
modules/disableUserThemeSelection/enabled=true<br />
<br />
$ vim /var/www/ox6/plugins/disableUserThemeSelection/register.js<br />
<br />
/**<br />
*<br />
* This program is free software; you can redistribute it and/or modify it<br />
* under the terms of the GNU General Public License, Version 2 as published<br />
* by the Free Software Foundation.<br />
*<br />
* Copyright (C) 2004-2007 Open-Xchange, Inc.<br />
* Mail: info@open-xchange.com <br />
* <br />
* @author: Stefan Preuss <stefan.preuss@open-xchange.com><br />
*<br />
*/<br />
<br />
/*<br />
* NOTE: THE WORK IS PROVIDED "AS IS," AND COMES WITH ABSOLUTELY NO WARRANTY, <br />
* EXPRESS OR IMPLIED!<br />
*/<br />
<br />
var obj = {};<br />
obj[configGetKey("gui.theme.path")] = configGetKey("gui.theme.name");<br />
configSetKey("modules.themes", obj);<br />
<br />
$ /etc/init.d/open-xchange-groupware restart<br />
<br />
After you have setup the disableUserThemeSelection plug in has been enabled, the user cannot change his theme anymore. More he will only have the currently selected theme in his dropdownbox on the theme selection page.<br />
<br />
= Server set's theme for a user / context =<br />
<br />
A description of how the server can store settings for a user is described in the following article:<br />
<br />
[[Adding_a_pre_defined_UWA_widget_for_a_User|Adding a pre defined UWA widget for a User]]<br />
<br />
Now you have to ensure that the server sets the correct theme on the user creation.</div>Bartl3by