Add User To Buddy List and Launch IM Session From Application

Last post 08-10-2006, 3:24 AM by indiankarma.com. 18 replies.
Sort Posts: Previous Next
  •  06-25-2006, 7:22 AM 20448

    Add User To Buddy List and Launch IM Session From Application

    Hello All!

    I have integrated Chat, Chat Admin and Messenger in to my current application. (Custom C#) Now what I need to do is one of the these two options: From my users profile page I need to 1. be able to launch a chat session or 2. Add the user to the messenger buddy list.

    I have a dating site and each member has a profile. If I "Admin" am looking at "CuteSofts" profile and I like what I see, I need there to be a link on that profile that either says “chat” and will open a IM session with user CuteSoft or a link that can add CuteSoft to my Buddy list.

    Please let me know if this is possible and how I would go about doing it!

    Thanks in advance


    Paul
    Post Hope
  •  07-04-2006, 8:09 PM 20708 in reply to 20448

    Re: Add User To Buddy List and Launch IM Session From Application

    Can anyone answer this question?
  •  07-05-2006, 2:26 AM 20716 in reply to 20448

    Re: Add User To Buddy List and Launch IM Session From Application

    Here are an example:
     
    <%@ Page Language="C#" %>
    <HTML>
     <HEAD runat="server">
     <title>Date Website</title>
     </HEAD>
     <body>
     <script src="CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx"></script>
     Please make sure the user does exist!
     
     <hr />
     <a href="#" onclick="Chat_OpenContact('IE')"><img src="CuteSoft_Client/CuteChat/Images/avatar.gif">UniqueName=IE</a>
     <br>
     <br>
     <a href="#" onclick="Chat_OpenContact('Netscape')"><img src="CuteSoft_Client/CuteChat/Images/avatar.gif">UniqueName=Netscape</a>
     </body>
    </HTML>
     
    Keepme posted
     

     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  07-05-2006, 2:41 AM 20723 in reply to 20716

    Re: Add User To Buddy List and Launch IM Session From Application

    I will try this, thanks! I will also to be sure to create a session that will only show the link to paid members. This should ensure the user is in the CuteChatUser table.
     
    Thanks again for your help!

    Paul
    Post Hope
  •  07-05-2006, 5:41 PM 20758 in reply to 20716

    Re: Add User To Buddy List and Launch IM Session From Application

    I have added the code above, however when you click the link to open the chat window, it always open a chat window to username Admin. This script is going to be used in search results and on profile pages so I need it to open a chat window to the user in the search results and the profile pages.

    Where does the script call for the uniquename? Why would it just continue to open the chat session for Admin username?

    Please Help!!!! 

     


    Paul
    Post Hope
  •  07-05-2006, 6:14 PM 20759 in reply to 20758

    Re: Add User To Buddy List and Launch IM Session From Application

    I have made some changes to work with our application and the script works perfectly now.
     
    Thanks again Adam!

    Paul
    Post Hope
  •  07-11-2006, 12:06 AM 20882 in reply to 20448

    Re: Add User To Buddy List and Launch IM Session From Application

    I'm having the same problem. How did you resolved this issue?
     
    Thanks.
     
    Nick
  •  07-11-2006, 3:25 PM 20901 in reply to 20882

    Re: Add User To Buddy List and Launch IM Session From Application

    Nick,
     
    Please make sure the current user has login. And the target user does exist in your application.
     
    The CuteChat framework will automatically find out who initiates the communication session.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  07-11-2006, 5:43 PM 20908 in reply to 20901

    Re: Add User To Buddy List and Launch IM Session From Application

    How do I pass the information of the target user to the buddy list and to IM when I launch IM Session from user's profile? It kept defaulting to the current logon user, which is me; which means I'm communicating with myself. The target user does exist in my application. Also, when I try to add the target user to contact list, it shows me the same user all the time, which is the current logon user. Finally, I'm getting a failed to validate license when I try to launch it from another computer in my local network.
     
    Will the target username be the UniqueName between the hyperlink tags as shown below?
    <a href="#" onclick="Chat_OpenContact('IE')"><img src="CuteSoft_Client/CuteChat/Images/avatar.gif">UniqueName=IE</a>
     
    Help,
     
    thanks...Nick
  •  07-11-2006, 9:02 PM 20911 in reply to 20908

    Re: Add User To Buddy List and Launch IM Session From Application

    >>Will the target username be the UniqueName between the hyperlink tags as shown below?

    <a href="#" onclick="Chat_OpenContact('IE')"><img src="CuteSoft_Client/CuteChat/Images/avatar.gif">UniqueName=IE</a>

    Yes. 

    >> Finally, I'm getting a failed to validate license when I try to launch it from another computer in my local network.

    Please download the new temp license file from: 

     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  07-11-2006, 11:48 PM 20912 in reply to 20908

    Re: Add User To Buddy List and Launch IM Session From Application

     nick2006 wrote:
    How do I pass the information of the target user to the buddy list and to IM when I launch IM Session from user's profile? It kept defaulting to the current logon user, which is me; which means I'm communicating with myself. The target user does exist in my application. Also, when I try to add the target user to contact list, it shows me the same user all the time, which is the current logon user. Finally, I'm getting a failed to validate license when I try to launch it from another computer in my local network.
     
    Will the target username be the UniqueName between the hyperlink tags as shown below?
    <a href="#" onclick="Chat_OpenContact('IE')"><img src="CuteSoft_Client/CuteChat/Images/avatar.gif">UniqueName=IE</a>
     
    Help,
     
    thanks...Nick
     
     
    Hello Nick,
     
    In my application I have written code to pull the current users UserName (data bind). This is common to personalize a site, for example after a user logs in, the welcome page will read, "Welcome Back UserName."
     
    All you need to do is create this code if you do not already have and insert the bound data where the script says IE. See below...
     
    <A class="searchBottom" href="#" onclick="Chat_OpenContact('<%=username%>')">Chat</a>

    Paul
    Post Hope
  •  07-12-2006, 11:44 AM 20933 in reply to 20912

    Re: Add User To Buddy List and Launch IM Session From Application

    OK, I'm almost there. Everything is working fine but I have one minor problem. The chat framework don't know when users are online unless users open the IM browser or the contacts menu. I logged on to my application as one user (UserA) from one PC and logged on to the same application as a different user (UserB) from another PC. When UserA tried to contact UserB, the message is sent as offline message unless UserB bring up his/her IM browser or the contacts menu. Also, UserB is unable to view the offline messages that were sent before he/she opened the IM browser or the contacts menu. Is this how it normally works or do I need to change something?

    Thanks a bunch!
     
    Nick
  •  07-12-2006, 12:20 PM 20941 in reply to 20933

    Re: Add User To Buddy List and Launch IM Session From Application

    Nick:
     
    The 'Online' of Messenger is different from 'Online' of website .
     
    So if an user don't open the Messenger , the user would be Offline .
     
    The Offline Messages have a bug, We will publish a new update next week , include fixing that bug .
     
    We also provide an API function to tell the user that , "he has new offline message , please open messenger to check it"
     
    Regards , Terry .
  •  07-12-2006, 2:51 PM 20944 in reply to 20941

    Re: Add User To Buddy List and Launch IM Session From Application

    Great, please let me know when the update/fixes for the Offline message bug comes out. Also, is there a way to automatically launch/open the messenger in a sleep/minimize mode when the user is online on the website?
     
    Thanks,
     
    Nick
  •  07-19-2006, 9:00 PM 21109 in reply to 20941

    Re: Add User To Buddy List and Launch IM Session From Application

    Hello Terry, do you know if this update is published?
     
    Thanks,
     
    Nick
  •  07-24-2006, 3:07 AM 21180 in reply to 21109

    Re: Add User To Buddy List and Launch IM Session From Application

    I am also very much waiting for this fix.
     
    Please keep us updated.
     
    Thanks,
     
    Paul

    Paul
    Post Hope
  •  07-31-2006, 3:22 AM 21395 in reply to 21109

    Re: Add User To Buddy List and Launch IM Session From Application

    Guys,
     
    Cute Chat / Web Messenger 3.1 is out.
     
    Demo:
     
     
    Download:
     
     
    We will post the change log as soon as possible.
     
     
     
    Community server integration is included too.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-08-2006, 2:17 AM 21620 in reply to 21395

    Re: Add User To Buddy List and Launch IM Session From Application

    Thanks for the update.

    Paul
    Post Hope
  •  08-10-2006, 3:24 AM 21724 in reply to 21395

    Re: Add User To Buddy List and Launch IM Session From Application

    Hello,

    Is the API function to tell the user that , "he has new offline message , please open messenger to check it" a part of the 3.1 update or a separate download???

     


    Paul
    Post Hope
View as RSS news feed in XML