Cute Messenger Online Status and new message notification

Last post 12-21-2010, 9:29 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  12-20-2010, 1:08 PM 65470

    Cute Messenger Online Status and new message notification

    We have our own SQL Server membership database for our ASP.NET application and maintain an "online" status of all our members in the database.  I don't see a way to override the built-in Messenger functionality that determines when a user is online.  We are not using the CuteChat database for our users so LastLoginTime is not applicable.
     
    Secondly, if a user were to be online but not have the messenger window open, they will not know they have a message until they open the messenger window.  Is there a way to have  the message window pop up or some sort of popup notification that someone is currently messaging them via chat without them having to have the messenger window open?
  •  12-20-2010, 8:33 PM 65476 in reply to 65470

    Re: Cute Messenger Online Status and new message notification

    Hi liquidiq,
     
    1. The code below shows you how to get all online users of CuteMessenger
     
    1. protected override void OnLoad(EventArgs e)  
    2.  {  
    3.      CuteChat.ChatPortal portal = CuteChat.AppSystem.Instance.GetCurrentPortal();  
    4.      lock (portal)  
    5.      {  
    6.          if (portal.IsMessengerStarted)  
    7.          {  
    8.   
    9.              CuteChat.ChatPlaceUser[] users = portal.Messenger.GetAllUsers();  
    10.              foreach (CuteChat.ChatPlaceUser user in users)  
    11.              {  
    12.                  if (user != null)  
    13.                  {   
    14.                  //user is online  
    15.                  //user.DisplayName  
    16.                  }  
    17.   
    18.              }  
    19.   
    20.          }  
    21.      }  
    22.   
    23.      base.OnLoad(e);  
    24.  } 
     2. Add the code below into the page, and than the user status will appear as online after the user login the site(do not need to open CuteMessenger). If he get some messages, he will get a pop up window.
     
    Note: It will work only the page contains the code below, so I suggest you add it into the master page.
     
        <script src="CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx?Chat_StartPartialMessenger=1"></script>
     
    regards,
     
    ken
  •  12-21-2010, 2:27 PM 65489 in reply to 65476

    Re: Cute Messenger Online Status and new message notification

    Thanks Ken, the second answer is exactly what we needed.  But since the "online" portion is controlled by the javascript, the first answer does not apply.  
    What we need to do is show everyone who is online in the messenger, a separate group would be good.  But we don't want to have everyone on the site who is offline appear in an offline group.  So we would have a group of friends - online and offline, and another group of "other" users who are online at that moment.  Is that possible?
  •  12-21-2010, 9:29 PM 65492 in reply to 65489

    Re: Cute Messenger Online Status and new message notification

    Hi Liquidiq,
     
    For now CuteMessenger does not support this feature.
     
    there is another solution. I can add a new group for you and add a link into that group to link to a "online users" page.
     
    If you need this, please contact me by mail Kenneth@CuteSoft.net, so I can show you the steps.
     
    Regards,
     
    Ken
View as RSS news feed in XML