123 Flash Chat Server Software
User Manual
Home
  • Introduction
  • Installation and Upgrade
  • Admin Panel
  • Website Integration
  • Database Integration
  • Auth-URL Integration
  • Website Theme/ Interface Integration
  • Chat Data Integration
  • User Profile Integration
  • For Developers

Home HomePre page Chat Data Integration | For Developers Next page

User Profile Integration


You may show your user's profile that stored in your database in 123 Flash Chat's Chat User Profile Panel. The work can be accomplished by the following way:

Method 1: Adding parameters after 123flashchat.swf.

You only need to add the following parameters: init_birth, init_gender, init_location after 123flashchat.swf.

For example: http://yourdomin/123flashchat.swf?init_user=owen&init_gender=1&init_birth=19830702&init_location=USA&[email protected]&init_avatar=http://domain/icon.jpg

Method 2: Using Auth-URL .
In order to use this function, you must use the web URL to authenticate your users' login information, you can add a user's profile information next to the "login result" 0(login success) or 5 (login success as admin), and split the login result and user's profile parameter by "|".

You may define your own parameters to suit your needs, as the creator of this system, we predefined 3 default parameters: a,s,l to indicate a user's age, sex and location information after separator"|".

For example:
login_chat.php


<?php
$username=$_GET['username'];
$password=$_GET['password'];
if($username == "owen" && $password == "owen")
{
echo "0|a=25&s=1&l=usa&[email protected]&avt=http://domain/icon.jpg";
}
?>



Parameter introduction:

Init_birth or a:

If the value ranges from 0 to 99, then it represents age, if it is greater than 99, it represents birth year (1900~).
eg: init_birth=10 (it indicates that the user's age is 10, and the client end will automatically transfer 10 into the user's birth year. init_birth=19900202(represents the user's birth year)

init_gender or s:
0 -- Unknown
1 -- Male
2 -- Female

init_location or l: Location

If you need to use the both methods mentioned above, the value that brought in method 2 by client end should be superiorly processed.
The two group parameters share the same function, but have their own suitable environment, first group (init_birth, init_gender,init_location) should be used after swf, and the second group (a,s,l) in Auth-URLs page.

init_email or eml: Email

User email, it's not valid unless it follows the parameter init_user.

init_avatar or avt: avatar

Custom avatar URL, it's not valid unless together with the parameter init_user.

Related links:

Website Integration


Home HomePre page Chat Data Integration | For Developers Next page

Copyright @2001-2010 TopCMM Software Corp.