Cheese
Use a web part that displays a custom message to the current logged-in user with their name.
Ingredients:
1 / The Hello User web part package CAB file1 / An existing WSS Site
Directions:
- Log on as an Administrator to the WSS server.
- Copy the CAB file to an easy-to-remember location on the server (e.g. c:\Inetium.HelloUser.cab).
- From a command prompt, change to the folder c:\program files\common files\microsoft shared\web server extensions\60\bin
- From the command prompt, run the STSAdm.exe tool to extract the CAB file and install the web part by typing this command:
For more information about the STSAdm tool, refer to - From the command prompt, run the IISReset command:
- Open the home page of an existing WSS site on the server.
- Click the Modify Shared Page link, then choose Add Web Parts, then Browse.
- In the tool pane that appears on the right, click Virtual Server Gallery
- Find the Hello User Web Part, then click and drag it into a web part zone on the page.
- Expand the Miscellaneous section of the web part properties tool pane, and set the custom text of the welcome message.
- The welcome message can contain any text that you want. Use these special wildcard values to display special text:
Wildcard / Description / Example
%Name% / The current user’s full name. / John Smith
%LoginName% / The current user’s login name. / MyDomain\jsmith
%Email% / The current user’s email. /
%Notes% / Notes about the current user. / My name is John and I work on Accounting.
%Date% / The current date. / 4/12/2005
%Time% / The current time. / 10:47 PM
Some example Text values:
Welcome %Name%!Hello %Name%. Welcome to XYZ Site.
Logged in as: %LoginName%. %Date% %Time%
%Date% %Time%
Optional – Create a WSS site template with the web part:
- Create a new WSS site
- Build out the site with the custom welcome web part to your liking. Add the web part to the home page and any custom web part pages.
- Save the site as a template.
- From the site’s home page, click Site Settings
- Click Go To Site Administration
- Click Save Site As Template
- Specify a filename, name, and description for the template and click OK.
- Create new sites from the template and enjoy the custom welcome message on the new sites.