123 Web Messenger Server Software
User Manual
Home
  • Introduction
  • Installation and Upgrade
  • Admin Panel
  • Website Integration
  • Publish Client on Your Website
  • Database Integration
  • Auth-URL Integration
  • User Profile Integration
  • FriendList Integration
  • 3rd Party Instant Messenging Module

Home HomePre page Auth-URL Integration | FriendList Integration Next page

User Profile Integration



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

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 an administrator), 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, eml, avt and psnmsg to indicate a user's age, sex, location information, email address, avatar and signature after the delimiter "|".

For example:
login_chat.php

<?
$username=$_GET['username'];
$password=$_GET['password'];
if($username=="roland" && $password=="roland")
{
echo "5|eml=roland@topcmm.com&psnmsg=I'm roland&avt=http://domain/roland.jpg"
}
else
{
echo "0|eml=roland@topcmm.com&psnmsg=I'm roland&avt=http://domain/roland.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:

"0" is the return value from the server when a user login successfully. And other return values include ''1", "3", "4", "5", "6", "7". You can refer to the Auth-URL Integration part in this manual for getting to know the meaning of each number.

Related links:

Website Integration


Home HomePre page Auth-URL Integration | FriendList Integration Next page

Copyright @2001-2010 TopCMM Software Corp.