Mibew Messenger Community
General => Support => Topic started by: nickel on January 29, 2014, 03:59:23 PM
-
Hey there,
in chat window there is the message:
typing.remote=Remote user is typing...
I'm looking for a solution to show each-others name within this message. I changed my template from this:
<div id="typingdiv" style="display:none;">${msg:typing.remote}</div>
to this:
<div id="typingdiv" style="display:none;">
${if:agent}
${page:ct.user.name}
${endif:agent}
${if:user}
${????:????}
${endif:user}
${msg:typing.remote}
</div>
This is working well for user-name in operator-chat, but what is needet to show operators name in users chat?
Regards
nickel
-
Hi,
Content of the chat window for user is generated when there is no operator in the chat yet. So operator's name is unknown at that time.
-
Hey Simushev,
but, when the operator start's the Chat, there is a Message like "Operator <Username> is entering the chat". Is there any Chance to grab this value?
Regards and thanks for answering,
Sebastian
-
When operator enters a chat, the page for user is _already_ rendered and shown to him.
The only option to achieve your aim is to create a custom JavaScript code.