Customise Operator Messages

Topics: Developer Forum, Project Management Forum, User Forum
Jun 6, 2008 at 5:36 AM
Hi,

I really like your live chat.

I have one issue hope you can help me.
How can I change the Font colour of all the operator messages only?

Thanks
Coordinator
Jun 10, 2008 at 10:13 PM
Hi,

  Well the quickest way to implement this could be to change the WriteMessage method of the LiveChat class on the operator console at the line 127. Sorry if it's not working, since I do not have a working copy of this beta version, i've quickly download the current release and suggest this.

        private void WriteMessage(string message, string From)
        {
            ChatMessageInfo msg = new ChatMessageInfo();
            msg.MessageId = -1;
            msg.ChatId = myChatRequest.ChatId;
            msg.Message = string.Format("<font color=\"Red\">{0}</font>", message);
            msg.Name = From;
            msg.SentDate = DateTime.Now.ToUniversalTime().Ticks;

            ws.AddMessage(msg);
        }

Hope this help.

Dominic