Using ASP to build a chat room based on www

Source: Internet
Author: User
Tags expression iis interface return version zip client access
Program | chat Room | Chat room on the internet in a variety of real-time contact, based on the WWW chat room is probably the most convenient: it is only a one-time installation on the server side of the success of the client to use Windows with its own IE browser can freely access, and no longer add Third-party software.


ASP Program Chat room V2.5 is such an ASP program developed by the WWW chat room server Software, the author is Jiang Jun of Dongtai, Jiangsu Province, for the Chinese version of the Sharing software (registration fee is to send a card or 5 yuan to the author), full-featured, support user registration, data modification, User level (in total users online time to cent), private chat, message, the history of speeches, new message prompts, prohibit the same content, and so on, the corresponding level of users can have a choice of expression, choose patterns, choose the interesting language, the choice of maps, kicking and other permissions.

Download: Http://www.DTLBM.com/images/2237/aspchat/aspchat.zip (266K)

First, the installation of software

This chat room program can be run on any ASP-enabled Web server, such as WIN98+PWS, winnt+iis4.0, win2000+iis5.0, and so on. This paper takes win2000+iis5.0 as an example.

1. Set Up IIS

Suppose the IP address of this Win2000 computer is "192.168.221.48", make sure that the IIS service is added and point the "Default Web site" to this IP address in IIS Manager (Internet Service), and that the home page name of the chat room is added to the default document. Index.asp "(or" index.htm ").

2. Add Virtual directory

Extract all content from the downloaded compressed package file "Aspchat.zip" into any directory (for example, "D:")., the system automatically creates a new subdirectory named "Aspchat" (The full path is "D:spchat"), and then right click on the new subdirectory to select Properties, specify a virtual directory name (for example, "chat"), and make sure that the "shared point is in" is the default Web site.

3. Visit the chat room

If you enter the "192.168.221.48/chat" (where "192.168.221.48" is the IP address of the chat room server, "chat" for the virtual directory name) in the IE browser address bar of the server or any client, return to the Chat room home page, It means the installation is successful!

Second, the use of software

After the successful installation of the chat room system with two users: one is the "Supreme Administrator", username and password are "admin"; one is the ordinary user, username and password are "guest".

1. Ordinary User Registration

Click the "Registration" button in the main window, and then fill in the appropriate information according to the prompts, you can register successfully! It should be noted that, at the time of registration, the name, password and mailbox (that is, e-mail address) three are required content;

In addition, in this chat room program, all users are divided into nine levels according to the corresponding points, the new registered user points for 0 points, each later in the chat room to stay a minute, points will increase 1 points. Different levels of users will have different rights, specifically divided into the following table:

Level required points have rights

1 level 0-300 Private chat, choose color, choose the expression, choose the interesting language, automatic removal, dating messages, find chat friends, modify information, save points

2-level 300-600 points on the 1-level increase on-demand midi and send pattern function

3 level 600-1200 points on the 2 level to increase the ability to send the map, increase the view user level function

4 level 1200-2400 points on the 3 level to increase the function of the action list

5-level 2400-3600 points to increase the function of the word effect on the basis of level 4

6 level 3600-6000 points on the 5 level to increase the access to see User IP

7-level 6000-10000 points on the 6-level basis to increase the kick, HTML permissions, fast HTML box, modify title

8 level 10000 points above 7 level to increase user management, clear information area, clear, lock title, message management (to apply)

9-level inactive chat room's top administrator. Increased "senior management" on the basis of Level 8 (application required)

2. Chat with ordinary users

When you are successfully logged in with any user name on the home page of the chat room, you can enter the chat interface. For unregistered version, there will be "ASP chat room, unregistered version, if satisfied, please register" prompts, press the "OK" button to continue.

In the chat interface, according to the permissions, users can complete private chat, change color, do action, choose Expression, choose the interesting language, online song and other operations.

3. Top Admin Login

The "top administrator" level is 9, and the username and password are "admin". Log in with it, not only can have all the other levels of users have the application functions, but also has the management function, can complete add administrator, delete users, delete messages, change user level operations (some features only registered version to support).

Third, the software flaw

Symptom: When the author tries this chat room, select the "Leave Chat" button in the Chat interface, the system prompts "cannot find page". Later, after careful examination, it was found that all the returned home directories in the original source program are set to "... /index.asp "relative path, if the root of your Web site (direct input such as" 192.168.221.48 "format of the page) does not have" index.asp "This file, there will be this" page not found "error hint! Perhaps the author's intention is good, let people leave the chat room can return directly to the homepage of this site, but in many cases, it will backfire.

Solution: Either on the homepage of your site to devolve a "index.asp" file, or the source file "Left.asp". /index.asp "Replace All index.asp", "index.asp". /index.htm is replaced with "index.htm" so that they all return directly to the home page of the chat room.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.