Hi liquidiq,
1. The code below shows you how to get all online users of CuteMessenger
- protected override void OnLoad(EventArgs e)
- {
- CuteChat.ChatPortal portal = CuteChat.AppSystem.Instance.GetCurrentPortal();
- lock (portal)
- {
- if (portal.IsMessengerStarted)
- {
-
- CuteChat.ChatPlaceUser[] users = portal.Messenger.GetAllUsers();
- foreach (CuteChat.ChatPlaceUser user in users)
- {
- if (user != null)
- {
-
-
- }
-
- }
-
- }
- }
-
- base.OnLoad(e);
- }
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