Stoneware Support


Knowledge Base


TID624 ( s624 )
QuickLinkhttp://www.stone-ware.com/swql.jsp?kb=s624
CategoryProfile
SummaryModify webOSProfile
DetailsHow can I modify the background and the menu that displays its links on the users desktop.
ResolutionAll of this can be done in customizeDesktop.jsp in the profile directory.

/*****
* The settings below will allow you to disable the user's ability to customize their profile's background and menu's that display on StartPage.jsp. By default, customization is enabled.
* Change either setting to true to turn customization off.
* The default background can be set in StartPage.jsp
*****/
boolean disableCustomBackground = false;
boolean disableCustomMenu = false;


Now, that will only disable it. If they want to specify what menu the user should see, they can go to around line 234…

String currMenu = "Account";

So, ‘Account’ is the default menu, so they can change that to whatever menu they
want the user to see. If the user’s have already customized this, then they
will still get their chose menu, so the admin will also need to delete the
user’s ‘WebOSProfileMenu’ dcookie from the user object.

The default background wallpaper can also be set from StartPage.jsp. Here is the snipplet…

/*****
To disable a custom background, put in the path to the default background image
i.e. - background-image:url('/images/wallpapers/Puzzle_Large.jpg');

You can also set the position of the of image on the screen.
The format is - background-position: horizontalposition verticalposition;
i.e. - background-position: left middle;

In addition, it would be a good idea to turn off the customization interface in customizeDesktop.jsp
*****/
body{
background-image:url('<%= background %>');
background-repeat:no-repeat;
background-position:<%= hPos + " " + vPos %>;

cursor:default;
}

.ProfileIcons {
background-color: <%= textBGColor %>;
}