You are here: MessengerYouLike.IMSDK.IMServer > Integration > Integration into existing system
MessengerYouLike.IMSDK.IMServer
Integration into existing system

How to integrate IMServer into existing system.

IMServer Can be integrated into any existing system. the only Restriction is the IMSDK.IMServer.DatabaseProviders if the system uses any of the database as in IMSDK.IMServer.DatabaseProviders then the system can be integrated into IMServer , and all Users in existing system can login and use IMClient with out any modification to the existing system coding , follow these steps to integrate IMServer into any existing system. 

 

 

  1. Complete Adding IMSDK.IMServer As A Reference Within Visual Studio .NET 2005

 

  1. Set the property IMSDK.IMServer.Integrated to True

 

 

  1. Set the property IMSDK.IMServer.DatabaseType to your Existing system database

 

 

  1. Set the property IMSDK.IMServer.ConnectionString to your database Connection String

 

 

  1. Now in your existing database of your existing system select a table that holds all user information , like usernames and password

 

 

  1. Set the property IMSDK.IMServer.TableName_MessengerYouLike_Users to the name of that table like if the table name is Users_info then the property should set like
IMSDK.IMServer.TableName_MessengerYouLike_Users ="Users_info"

 

 

 

  1. Select a column that is unique , in most cases it is the primary key of that table , the name of that column primary key which is unique must be set to the property IMSDK.IMServer.ColName_MessengerYouLike_ID . if the Column name is ID then set the property like
 IMSDK.IMServer.ColName_MessengerYouLike_ID = "ID"

 

 

  1. Now set the username column name to the property IMSDK.IMServer.ColName_MessengerYouLike_Username, if the username column is Username then set the property like
IMSDK.IMServer.ColName_MessengerYouLike_Username ="Username"

 

 

  1. Do the same with password of user setting the property IMSDK.IMServer.ColName_MessengerYouLike_Password

 

 

  1. For First name of user set property IMSDK.IMServer.ColName_MessengerYouLike_Firstname

 

 

  1. For Last name of user set property IMSDK.IMServer.ColName_MessengerYouLike_Lastname

 

 

  1. For Nick of User Set property IMSDK.IMServer.ColName_MessengerYouLike_Nick

 

 

  1. For Email of user set property IMSDK.IMServer.ColName_MessengerYouLike_Email

 

 

  1. If any of the above property does not have any column in your database then add a dummy column in your table and set the name of that column to IMServer property , like if your table "Users_info" does not have any column to store the email address of the users then you need to add a dummy column in your table for emails like IM_Emails and set this column name to the property IMSDK.IMServer.ColName_MessengerYouLike_Email

 

 

  1. Rest of the tables and columns of IMServer should be added to your existing database without any changes.

 

 

  1. Now when user tries to login the username and password will be available to the function IMSDK.IMServer.VerifyLogin , you need to verify the username and password and return the ID as per set by the property IMSDK.IMServer.ColName_MessengerYouLike_ID if username and password are invalid return -1

 

 

  1. When User Wants to create a new Account from IMClient then the details will be available to the function IMSDK.IMServer.NewUserRegistration you need to register or insert the user details into the database and return true if successful and false if username already exists

 

 

  1. When User logs out then the event IMSDK.IMServer.OnLogOut is fired you can use this to mark user as log out from your system
You are here: MessengerYouLike.IMSDK.IMServer > Integration > Integration into existing system
Copyright (c) 2007. All rights reserved.