How To Disable The Themes Feature
Note: This Applies to DocuShare 6.5.x or DocuShare 6.6.x
Option 1 - This will disable the Themes feature for all users including the admin user (User-2):
1. Open Windows Explorer and navigate into the <dshome>\amber\templates\system directory.
2. Make a copy of the uilib.vdf file.
3. Browse to the <dshome>\amber\templates\local directory.
Where <dshome> is the installation directory for DocuShare. The default installation path for DocuShare is C:\Xerox\Docushare. Depending on your installation environment this path may vary.
Note: If the <dshome>\amber\templates\local directory does not exist then one will need to be created. All customized vdf files should be placed in the local directory.
4. Paste a copy of the uilib.vdf into the <dshome>\amber\templates\local\uilib.vdf
Note: DocuShare will look for the local directory for customized VDFs before going to the (default) system folder.
5. Open the uilib.vdf in a text editor such as NotePad.
6. Search for the word themes until you find the following entry in the file.
<if cond="${request:object:is_type_of( classname='Space' )} or ${request:object:is_type_of( classname='User' )}">
<if cond="$request:object:is_managable">
<insert ref="local:DrawTab(type='Themes',label='${viewdef:uilibMessages:themes}')"/>
</if>
</if>
7. Comment out the <insert ref="local:DrawTab(type='Themes',label='${viewdef:uilibMessages:themes}')"/> by adding, <!-- at the beginning of the entry and --> at the end of the entry.
Example of an edited entry:
<if cond="${request:object:is_type_of( classname='Space' )} or ${request:object:is_type_of( classname='User' )}">
<if cond="$request:object:is_managable">
<!-- <insert ref="local:DrawTab(type='Themes',label='${viewdef:uilibMessages:themes}')"/> -->
</if>
</if>
8. Save the uilib.vdf file.
Note: DocuShare will need to be restarted if the Enable Dynamic VDF Update option is set to No in the Admin Home Page | Site Management | Site Configuration. Otherwise, simply refresh the browser for the change to reflect.
Option 2 - This will disable the Themes feature for all users excluding users that are member of the Account Administrators Group as well as the admin user (User-2):
1. Open Windows Explorer and navigate into the <dshome>\amber\templates\system directory.
2. Make a copy of the uilib.vdf file.
3. Browse to the <dshome>\amber\templates\local directory.
Where <dshome> is the installation directory for DocuShare. The default installation path for DocuShare is C:\Xerox\Docushare. Depending on your installation environment this path may vary.
Note: If the <dshome>\amber\templates\local directory does not exist then one will need to be created. All customized vdf files should be placed in the local directory.
4. Paste a copy of the uilib.vdf into the <dshome>\amber\templates\local\uilib.vdf
Note: DocuShare will look for the local directory for customized VDFs before going to the (default) system folder.
5. Open the uilib.vdf in a text editor such as NotePad.
6. Search for the word themes until you find the following entry in the file.
<if cond="${request:object:is_type_of( classname='Space' )} or ${request:object:is_type_of( classname='User' )}">
<if cond="$request:object:is_managable">
<insert ref="local:DrawTab(type='Themes',label='${viewdef:uilibMessages:themes}')"/>
</if>
</if>
7. Change the entry to look like the example below. (Changes are highlighted in red).
Example of an edited entry:
<if cond="${request:object:is_type_of( classname='Space' )} or ${request:directory:is_admin(account_admin='true')}">
<if cond="$request:object:is_managable">
<insert ref="local:DrawTab(type='Themes',label='${viewdef:uilibMessages:themes}')"/>
</if>
</if>
8. Save the uilib.vdf file
Note: DocuShare will need to be restarted if the Enable Dynamic VDF Update option is set to No in the Admin Home Page | Site Management | Site Configuration. Otherwise, simply refresh the browser for the change to reflect.
Option 3 - This will disable the Themes feature for all users excluding the admin account (User-2) only:
1. Open Windows Explorer and navigate into the <dshome>\amber\templates\system directory.
2. Make a copy of the uilib.vdf file.
3. Browse to the <dshome>\amber\templates\local directory.
Where <dshome> is the installation directory for DocuShare. The default installation path for DocuShare is C:\Xerox\Docushare. Depending on your installation environment this path may vary.
Note: If the <dshome>\amber\templates\local directory does not exist then one will need to be created. All customized vdf files should be placed in the local directory.
4. Paste a copy of the uilib.vdf into the <dshome>\amber\templates\local\uilib.vdf
Note: DocuShare will look for the local directory for customized VDFs before going to the (default) system folder.
5. Open the uilib.vdf in a text editor such as NotePad.
6. Search for the word themes until you find the following entry in the file.
<if cond="${request:object:is_type_of( classname='Space' )} or ${request:object:is_type_of( classname='User' )}">
<if cond="$request:object:is_managable">
<insert ref="local:DrawTab(type='Themes',label='${viewdef:uilibMessages:themes}')"/>
</if>
</if>
7. Change the entry to look like the example below. (Changes are highlighted in red).
Example of an edited entry:
<if cond="${request:object:is_type_of( classname='Space' )} or ${request:directory:is_admin_user}">
<if cond="$request:object:is_managable">
<insert ref="local:DrawTab(type='Themes',label='${viewdef:uilibMessages:themes}')"/>
</if>
</if>
8. Save the uilib.vdf file.
Note: DocuShare will need to be restarted if the Enable Dynamic VDF Update option is set to No in the Admin Home Page | Site Management | Site Configuration. Otherwise, simply refresh the browser for the change to reflect.
Solution Published: October 23rd, 2012
Solution ID: 1210
Keywords: theme
themes
restrict
prevent
disable
|