User Manual
|
|||||||||||||||||||||||||||||||||||||||||
Friend List IntegrationFriend List integration The whole scenario is that the chat server will integrate the friendlist from an external database through dynamic application, like PHP, ASP, ASP.net or JSP if Friendlist module is enabled in chat server. The script will be used to add, remove, and query database. Parameters List: The following parameters and values should not be changed.
The Application Return: The application will return an xml-formatted string to chat server for further processing
Sample configuration: In <123flashchat installed directory>/server/etc/groups/default/server.xml <integrated-user-data url="http://yoursite/userdata.php?action=%action%&username=%username%& Sample Code: You can download sample code from here: The sample Friendlist database can be generated from friendlist.sql. The sample code could be used directly if you have imported the sample database and configure the user-data-url in server.xml You could modify the value of following parameter integrate chat server with Friendlist table in your user databas. $addFriendSql: The SQL sentence will add a friend. $removeFriendSql: The SQL sentence will remove a friend. $queryFriendSql: The SQL sentence will get "username" friendlist. $opQueryFriendSql: The SQL sentence will get list that whose friend included "username" if the one who is not on "username" friend list. $checkRowSql: The SQL sentence will check the existence of the username and destusername record in friend table. $userNameRowField:The user name field in your user table. $user->setDb($db): $db will be your database link. Related links:
|
|||||||||||||||||||||||||||||||||||||||||