Kentico CMS 7.0 Developer's Guide

Chat rooms

Chat rooms

Previous topic Next topic Mail us feedback on this topic!  

Chat rooms

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

This topic describes functions that relate to chat rooms.

 

Creating a room

 

Chat rooms can only be created by registered users who have the appropriate module permission - Create room from live site or Manage. Anonymous users cannot create new rooms.

 

A new room can be created using the Create new room button in the bottom of the list of rooms.

 

devguide_clip1865

 

After clicking the button, the user is presented with a dialog offering the same set of properties as in the room management UI. The only difference is that she cannot create support chat rooms.

 

devguide_clip1866

 

The room will be created after clicking OK.

 

Joining a room

 

The list of rooms displays rooms that the current user is allowed to join. For example, if the current user is anonymous, she can only see chat rooms that have the Allow anonymous property set to true.

 

Special types of rooms are marked with icons:

 

lock_thread - password protected room

PrivateRoom - private room

 

Clicking a room will make the user join the room. If a room is password protected, the user will first be asked to enter the password via a dialog.

 

devguide_clip1867

 

 

Managing a room

 

Room creators and administrators have the right to edit parameters of the room, add and remove other administrators and kick users. These actions are provided by action buttons in the list of rooms and the list of users in the room. The buttons appear when moving the mouse over the particular room or user and only in case the current user has permission to perform the actions.

 

Room actions

 

devguide_clip1869

 

Edit Edit - displays a dialog allowing to change the properties of the room.

 

devguide_clip1868

 

DisableRoom Disable - removes all users and makes the room unavailable for other users.

AbandonRoom Abandon - removes the current user from the room and discards her invitation. Available only for private rooms.

 

User actions

 

devguide_clip1892

 

AddRoomAdmin Add room admin - gives the user room administrator permissions.

DeleteRoomAdmin Delete room admin - takes administrator permissions away from the user.

KickUser Kick - prevents the user from accessing the room for a certain period of time, specified by the Kick lasting time setting.

RevokeAccess Revoke access - kicks the user and removes their invitation, thus preventing them from accessing the room further.

 

Inviting a user

 

The list of room users offers a button to invite users to the room. In a public room, the button is visible to all users in the room. In a private room, only administrators can see the button and invite users.

 

devguide_clip1871

 

Clicking this button will bring up a dialog allowing to select the user to be invited. The dialog lists only users who are on-line in the chat but not present in the room.

 

devguide_clip1872

 

When a user is selected, they will receive a notification about the invitation and will be offered the option to accept and join the room or decline the invitation.

 

devguide_clip1873

 

Leaving a room

 

To leave a room, users need to click the Leave room button, by default located in the upper right corner of the Chat web part layout.

 

devguide_clip1874

 

Starting private conversation

 

When a chat user clicks another user's name either in the list of on-line chat users or in the list of room users, a private conversation window pops up. At the same time, a new private room is automatically created and the clicked user is invited to join the room. Since the room is private, other users cannot see it in the list of rooms.

 

After the invited user accepts the invitation, they automatically join the private room, which is then displayed in the private conversation window.

 

devguide_clip1875