iiiiiiChapter 5 Using the Templates
When the ILS components are installed, a c:\Inetpub\ILS\Templates folder is created. This folder contains a Default.htm page that introduces the two templates, one template for searching for everyone online, and one Sample Home Page template that automatically registers users as online.
Comments in each template file make it easy to find sections to use in other places. The templates use minimal formatting, so that the ILS-specific code will be easy to use at your site.
To view these templates, use the path http://your_server/ils/templates/default.htm.
This template provides two basic options for users: finding everyone online using any application, and finding people by the first part of their e-mail address. If you have the Personalization System installed, this template also provides a "Find Friends" feature, where you can specify up to ten people, and then every time you go to the search page, you can see if these people are available online.
No Web author setup is required. However, all users must connect to the Web site using either Microsoft NetMeeting or Intel Internet Phone.
If you want your users to use the Find Friends feature before using this template, Personalization System must be installed on the Web server. Follow the instructions in the Personalization System Operations Guide.
The following files are used in the ILS template.
|
File |
Description |
|
Ilsfind.asp |
Form for searching for online users. |
|
Ilslist.asp |
Page for displaying search results. |
|
Ilsbud.asp |
Collects e-mail names of people to check to see if they are online. |
|
Ilsmps.asp |
Contains the Personalization System code to implement the Find Friends feature. |
The user has a choice of doing a search for everyone, or a search for specific users.
If a person is online, the results page shows their name, and provides a button to connect to the user. If not, a message is displayed saying that no other users are online.
If the Personalization System is installed, the user will be prompted to set up a list of online friends, and then each time the user returns to the search page, a list of who is and isn't online will be displayed. The code for this section is localized in the Ilsmps.asp file, so that it is easy to remove if you do not plan to use the Personalization System.
The sample home page template uses a combination of the Personalization System and the Internet Locator Server to automatically register a user as online whenever they connect to the sample Web site. After their first visit to the site, the home page for the sample site shows the user a list of others online who share the same interests.
Before using this template, Personalization System must be installed on the Web server. Follow the instructions in the Personalization System Operations Guide.
The templates set ORG to DefaultOrg. If you are using database partitioning at your site, you should change this to the value you use at your organization.
In order for users to connect with other people they find using ILS, they must have a real-time communications application such as Microsoft NetMeeting or Intel Internet Phone on their client computer.
The following files are used for the combined template.
|
File |
Description |
|
Shp.asp |
Home page for the sample site. For first time users, collects information about the user. For repeat visits, displays lists of other people who share the user's interests who are currently online. |
|
Shptop.asp |
Code that is included on every page in the site to set up objects and page headings consistently. |
|
Shpupd.asp |
Code that is included on every page to update the ILS listing based on information in the Personalization System User Property Database. |
|
Shpcon.asp |
When an online user is found, displays more information about the user, including which applications the user has available for connecting. |
|
Shpempty.asp |
Empty page for sample links to jump to. Shows the code that is required on every page in order to make this sample site work. |
|
Shpabs.asp |
Displays the Address Book listing of online users. |
The initial Web page, Shp.asp, is set up for one user experience the first time a user goes to the site, and a different one when the user returns. On the first visit, information is gathered to create an online listing. On return visits, the information gathered is used to create lists of others online who share the users interests.
If the user clicks one of the users listed, the Shpcon.asp page is displayed that shows additional information about the user, including a list of communication applications they have, and provides links to send e-mail.