Integrate Ajax-IM chat software in a site?? Please help.....
Moderator: General Moderators
Integrate Ajax-IM chat software in a site?? Please help.....
I have installed an Ajax-IM chat software in my site for the chatroom module. I need the user in my site to be logged in both in site and is directly logged to the chat room (without logging again in the chat room). Please can help me and suggest me how can I integrate it.
-
maneetpuri
- Forum Commoner
- Posts: 60
- Joined: Tue Oct 07, 2008 6:32 am
Re: Integrate Ajax-IM chat software in a site?? Please help.....
Hi,
You will have to play with the script a to do this, basically what you have to is: -
a) Synchronization in the table of users of your website and that of the chat users.
b) When a user logins to your website also create the session variables that are being used by this chat application.
Hope this helps,
Cheers,
You will have to play with the script a to do this, basically what you have to is: -
a) Synchronization in the table of users of your website and that of the chat users.
b) When a user logins to your website also create the session variables that are being used by this chat application.
Hope this helps,
Cheers,
Re: Integrate Ajax-IM chat software in a site?? Please help.....
maneetpuri wrote:Hi,
You will have to play with the script a to do this, basically what you have to is: -
a) Synchronization in the table of users of your website and that of the chat users.
b) When a user logins to your website also create the session variables that are being used by this chat application.
Hope this helps,
Cheers,
Thanks Maneetpuri for ur suggestion, but can you or anyone give an example on that???
- novice4eva
- Forum Contributor
- Posts: 327
- Joined: Thu Mar 29, 2007 3:48 am
- Location: Nepal
Re: Integrate Ajax-IM chat software in a site?? Please help.....
the less hustle thing would be to check if the session values for the user exists or not, if it doesn't then you would show the regular char login screen else you would replicate the login form that is used for the chat application, but this time you would make the text fields the hidden fields and then submit it using javascript(obviously using the session values for user name and password if required)... since it is ajax based chat app, i think a normal login would include inserting data in a xml file or database(storing user info into the active user lists and all) something you wouldn't want to skip!!