Hi,
I have integrated CuteChat and Cute Web Messenger into a custom ASP.NET community website. What I need to do further is:
1. To be able to click on a send IM message link inside the website and automatically create a new messenger conversation with that user (i can create a ChatIdentity for that) without necessarily opening the web messenger window.
2. When a user is logged into the website but with no messenger open to be notified he has a message and, per confirmation, open a conversation
3. Be able to capture offline messages (or rejected messages as per 2nd issue) and list them somewhere else for the designated user.
So far I haven't found a solution to this.
Regarding the first issue i tried rewriting a new script based on NewMessenger.aspx like shown below. I got a new conversation window, but with serious lack of functionality. If user is already online, no messages are sent. Also, some of the UI hits errors.
<script>
<%if (CuteChat.ChatWebUtility.GetMessengerOnlineStatus(Session["UserName"].ToString())=="OFFLINE"){%>
Connect("Messenger");
<%}%>
var newcontact = {};
newcontact.DisplayName="administrator";// or null
newcontact.UserId="User:administrator";
newcontact.UserName="administrator";
newcontact.Description="";
newcontact.PublicProperties=PropStrToObj("InstantAvatar:avatar.jpg")||{};
//newcontact.IsContact=false;
var conv=new CuteChatConversation(this,newcontact);
ChatUI_FocusWindow();
conv.Activate();
</script>
Thanks