General > Support
"{username} / {operator} is writing" - Message
(1/1)
nickel:
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:
--- Code: --- <div id="typingdiv" style="display:none;">${msg:typing.remote}</div>
--- End code ---
to this:
--- Code: ---
<div id="typingdiv" style="display:none;">
${if:agent}
${page:ct.user.name}
${endif:agent}
${if:user}
${????:????}
${endif:user}
${msg:typing.remote}
</div>
--- End code ---
This is working well for user-name in operator-chat, but what is needet to show operators name in users chat?
Regards
nickel
Dmitriy Simushev:
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.
nickel:
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
Dmitriy Simushev:
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.
Navigation
[0] Message Index
Go to full version