RealChat Software 2.0

3.1. Integration with an existing user profiles system



RealChat can be easily integrated with any user profile ( membership ) system. There is a set of parameters which allow you to pass additional information from an user profile database to client applet. You pass these parameters by using dynamically generated HTML code. You can use any server-parsed HTML tools such as ASP, PHP, Perl, or whatever you like.

Tip: The easiest way is to do this is to use any of your existing site login scripts as a template, and modify it so after a successful login the script dynamically generates the applet page.

In the example below parameters have been added to pass the user's nickname, real name, age, and favorite drink. The user is also prohibited from changing his/her profile once logged in.

There is detaied explanation for what each parameter does in the Configuration directives reference section.



<applet 
  codebase = "."
  archive  = "RealChat.jar"
  code     = "rcs.client.RealChatClient.class"
  name     = "ChatClient"
  width    = "300"
  height   = "100"
  MAYSCRIPT>

  <param name="nick" value="BadJohn">

  <param name="pValue1" value="John Doe">
  <param name="pValue2" value="35">

  <param name="pLabel3" value="Favorite drink:">
  <param name="pValue3" value="beer">

  <param name="canChangeProfile" value="no">

</applet>



Contents | JTAN Members Area