User Profile and Restrictions
These parameters allow you to pass additional information from a user profile, or membership, database to a client applet, thus integrating RealChat with your existing site membership system. There is an example in the Notes and Procedures section.
nick
Type: text
Default:not set
Specifies, if set, that the chat client will skip the login panel, and the user will automatically be logged in once the client applet has loaded.
[Top]
Example:<param name="nick" value="John">
pLabel
Type: text
Default:pLabel1 = Real name:, pLabel5 = Homepage: pLabel2 = Age:, pLabel6 = email: pLabel3 = Gender:, pLabel7 = Other 1: pLabel4 = Location:, pLabel8 = Other 2:Sets the labels used in the user profile tab. You can change any label:
[Top]
<param name="pLabel7" value="Favorite drink:">
pValue
Type: text
Default:not set
Specifies the corresponding values for the user profile labels.
[Top]
Example:<param name="pValue7" value="Beer">
textColor
Type: number [0..15]
Default:0
Indicates the default text color from the applet color palette.
[Top]
Example:<param name="textColor" value="2">
- will auto-select orange text color.
nickColor
Type: number [0..15]
Default:1
Enters the default nick color from the applet color palette.
[Top]
Example:<param name="nickColor" value="6">
- will auto-select green nick color.
avatarIcon
Type: number
Default:not set
Sets the default avatar icon.
[Top]
Example:<param name="avatarIcon" value="5">
.
canChangeProfile
Type: yes/no
Default:yes
Whether this user is allowed to change profiles. Use it in combination with pValue parameters to prohibit users from changing their profiles once logged in.
[Top]
canCreateRooms
Type: yes/no
Default:yes
Whether this user is allowed to create rooms.
[Top]
canSendPrivate
Type: yes/no
Default:yes
Whether this user is allowed to send private messages.
[Top]
externalProfileURL
Type: URL
Default:not set
Indicates the URL of a CGI script that will display additional information about the selected user. This option is accessible through the user list pop-up menu of the chat client, or the More info ... option when you right-click a user name, or through the standard Profile button. The chat client will automatically replace the first occurance of the token _USER_with the currently selected user name. For example, if you pass the following syntax:
[Top]
<param name="externalProfileURL" value="http://www.yoursite.com/cgi-bin/dbscript.cgi?user=_USER_&action=showprofile">
And the currently selected user name is 'John', the applet will transform the URL to the following syntax:
http://www.yoursite.com/cgi-bin/dbscript.cgi?user=John&action=showprofile
profileURLTarget
Type: text
Default:_blank
Enters the frame target in which to open
[Top]externalProfileURL
. The default value _blank will open the URL in a new browser window.