Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Pages: 1
I was tested the script and realise that when the user is off the browser , the chat is still pending/ active.
If they press close a small popup will say user has left the chat but i can easily miss that out , can it please display a message that wont disappear. So i can at least close the chat.
Upon closing the chat, i should show Live Help is online ... even if user minimize and if they click it again, there isnt sound for some reason.
Let me know if i can help out !
Offline
Sorry but i did not understood what you wrote here.... Some kinda mess...
Try rewrite using this pattern.
1. Visitor enters a page
2. Admin get's notification about pending chat
3. ....
Offline
Hi,
I have the same problem to.
1. Visitor starts the chat
2. Operator responded
3. Visitor close the chat window or browser
4. Operator get a message "User has left the chat" in the bottom of the message window and disappear in few seconds.
If operator miss this message he never know that visitor is online or not, how can we add this "User has left the chat" message permanently so that operator can close this chat.
Thanks.
Offline
What was the resolution to this case?
Offline
Hi,
thanks for your messages.
I agree with you. The message "Visitor has left the chat" should be printed in the chat as System message and not only showed as label and disappear after while.
BUT remeber if you see in the Tab there is a green smile icon who if green means visitor are on-line, if is grey this means user has left the chat.
PeopleInside - Live helper chat - free limited forum support!
For commercial support or GitHub [see FAQ here]
If you want to support this open source project, just donate [see support page]
Something wrong with the forum? [contact a superhero]
Offline
Dear Live Helper team, i would like to suggest that there is a permanent message that show user has left...
Perhaps at the end of chat.
Offline
Hi Remigijus,
If a user minimizes a chat window, it doesn't pops-up on the task bar when the admin responds to that chat. Hence, the customer is unaware of the response at his end, until he manually checks for the same.
Offline
Hi breaker84,
for future request you can search for existing topic or create a new request here: https://github.com/LiveHelperChat/livehelperchat/issues
sanjay gupta,
this is maybe a knowed issue look here and check if is what you want:
https://github.com/LiveHelperChat/liveh … issues/867
If new message are sent and chat is minimized a message should be showed to the user for request attraction.
This is in to do list.
PeopleInside - Live helper chat - free limited forum support!
For commercial support or GitHub [see FAQ here]
If you want to support this open source project, just donate [see support page]
Something wrong with the forum? [contact a superhero]
Offline
Hi, found a solution for that, in this case, the visitor didn't actually close the chat, he just isn't there right now, but he can come back. Anyway, the solution is:
1- find the file: "modules/lhchat/chatwidgetclosed.php" and add the lines between comment inside the "if":
if ($chat->user_typing < (time()-12)) {
$chat->user_typing = time()-5;// Show for shorter period these status messages
$chat->is_user_typing = 1;
$chat->user_typing_txt = htmlspecialchars_decode(erTranslationClassLhTranslation::getInstance()->getTranslation('chat/userleftchat','Visitor has left the chat!'),ENT_QUOTES);
// Added to "System close chat" message - OPEN
$msg = new erLhcoreClassModelmsg();
$msg->msg = htmlspecialchars_decode(erTranslationClassLhTranslation::getInstance()->getTranslation('chat/userleftchat','Visitor has left the chat!'),ENT_QUOTES);;
$msg->chat_id = $chat->id;
$msg->user_id = -1;
$msg->time = time();
erLhcoreClassChat::getSession()->save($msg);
$chat->last_user_msg_time = $msg->time;
// Added to "System close chat" message - CLOSE
}
The "if" already exists, so just find it (line 38 I believe) and add the code. What it does is create a message of type System message ($msg->user_id = -1;) and save it. The code that already exists creates the popup message.
2- find the file: "design/defaulttheme/tpl/lhchat/userleftchat.tpl.php" and add the script line:
<script>chatsyncadmin();</script>
The code should be like this:
<div class="message-row system-response"><i><span class="usr-tit sys-tit"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmin','System assistant')?></span><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/userleftchat','Visitor has left the chat!')?></i></div>
<script>chatsyncadmin();</script>
This file just add the popup message and hide it after seconds, what the script does is re-sync the message window of the operator.
So the 1 creates the System message and the 2 re-sync.
That's all, hope to help you with that.
Offline
Pages: 1