User Profile and Restrictions
These parameters allow you to pass additional information from an user profile ( membership ) database to client applet, thus integrating RealChat with your existing site membership system. There is an example in the Notes and HOWTOs section.
nick
Type: text
Default:not set
If this parameter is set, 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:These are 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
These are the corresponding values for the user profile labels.
[ top ]
Example:<param name="pValue7" value="Beer">
textColor
Type: number
Default:0
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
Default:1
The default nick color ( from the applet color palette ).
[ top ]
Example:<param name="textColor" value="6">
- will auto-select Green nick color.
canChangeProfile
Type: yes/no
Default:yes
Whether this user is allowed to change profile. Use it in combination with pValue parameters, to prohibit user from changing his/her profile 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
URL of a cgi script which will display additional information about the selected user. This option is accessible through the user list pop-up menu of the chat client ( the "More info ..." option when you right-click on 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, e.g. if you pass:
[ 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:
http://www.yoursite.com/cgi-bin/dbscript.cgi?user=John&action=showprofile
profileURLTarget
Type: text
Default:_blank
The frame target to open
[ top ]externalProfileURL
in. The default value "_blank" will open the URL in a new browser window.