Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2014-08-06 01:36:05

Rainbow
Member
Registered: 2014-08-05
Posts: 3

Visitor Left the Chat / Offline

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 !

https://groups.google.com/forum/#!topic … atPS3Hdo-M

Offline

#2 2014-08-06 06:55:37

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Visitor Left the Chat / 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

#3 2014-11-24 01:49:37

sennz
Member
Registered: 2014-11-24
Posts: 3

Re: Visitor Left the Chat / 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

#4 2015-10-05 14:53:09

evandro.hila
Member
Registered: 2015-10-05
Posts: 1

Re: Visitor Left the Chat / Offline

What was the resolution to this case?

Offline

#5 2015-10-09 11:50:15

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Visitor Left the Chat / 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.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#6 2016-01-13 06:26:20

breaker84
Member
Registered: 2015-10-30
Posts: 18

Re: Visitor Left the Chat / 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

#7 2016-09-27 11:20:47

sanjay gupta
Member
Registered: 2016-09-27
Posts: 2

Re: Visitor Left the 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

#8 2016-09-27 11:24:24

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Visitor Left the Chat / 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.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#9 2016-10-03 19:03:26

waftom
Member
Registered: 2016-07-01
Posts: 6

Re: Visitor Left the Chat / 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

Board footer