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

You are not logged in.

Announcement

#1 2015-02-18 08:40:25

bejita
Member
Registered: 2014-11-19
Posts: 31

how to send an email notifying operator when there is a new visitor

When the operator is logged out away from the site, how to send an email  notifiying operator when there is a new a visitor on the site please ?

Offline

#2 2015-02-18 08:41:42

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

Re: how to send an email notifying operator when there is a new visitor

See department options. There is few fields for that functionality. Notifications tab

Offline

#3 2015-02-18 09:30:33

bejita
Member
Registered: 2014-11-19
Posts: 31

Re: how to send an email notifying operator when there is a new visitor

It works for chat but my question is : does that feature works too with a new visitor notification (who doesn't chat but is just online on the site) ?

Offline

#4 2015-02-18 09:31:23

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

Re: how to send an email notifying operator when there is a new visitor

Just for new online visitor no.

Offline

#5 2015-02-18 12:53:48

bejita
Member
Registered: 2014-11-19
Posts: 31

Re: how to send an email notifying operator when there is a new visitor

I'm a developer and I wish to add some features on LHC (like  sending an email when there's online visitor) but the problem is that I don't understand your source code, the general structure of your source code and don't know the framework you use... roll ,
does exist a support forum for technic support please ? If not, which way does you recommend for me ? I really need to customize LHC for my client hmm

Offline

#7 2015-02-20 16:49:21

bejita
Member
Registered: 2014-11-19
Posts: 31

Re: how to send an email notifying operator when there is a new visitor

Thanks for you reply,I understand a bit more.
But I need more help please if you don't mind.
I want to add this feature: when there's no online operators, I wish sending to operator an notifying email when there's visitor who is coming on the site,  so in which files must I work for that and how can i make it, please some help

Offline

#8 2015-02-20 19:03:17

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

Re: how to send an email notifying operator when there is a new visitor

Most likely you will need to override this method or class in other words
https://github.com/LiveHelperChat/liveh … r.php#L544

Proper way would be to fork LHC, add dispatch event, create a pull request, and just use it in your extension.

Offline

#9 2015-02-23 12:48:40

bejita
Member
Registered: 2014-11-19
Posts: 31

Re: how to send an email notifying operator when there is a new visitor

Thanks,
Do I override this file the same way a module is overrided or not please(as this article shows https://livehelperchat.com/article/view/60 ) ? if not, can you tell me how do I override this file

Offline

#10 2015-02-23 15:49:41

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

Re: how to send an email notifying operator when there is a new visitor

Enter class name as key and in right path to it.
https://github.com/LiveHelperChat/liveh … toload.php

So just basically copy this class to your extensions and modify this file

Offline

#11 2015-02-24 12:30:15

bejita
Member
Registered: 2014-11-19
Posts: 31

Re: how to send an email notifying operator when there is a new visitor

Thanks a lot,
If  you don't mind, could you tell me from which variable of this class can I know if live help is off or on please ? (if there are any operaor logged on or not)

Offline

#12 2015-02-24 18:46:47

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

Re: how to send an email notifying operator when there is a new visitor

search for this method implementation and usage examples erLhcoreClassChat::isOnline

Offline

#13 2015-02-25 11:39:07

bejita
Member
Registered: 2014-11-19
Posts: 31

Re: how to send an email notifying operator when there is a new visitor

Thank you very much for your help, now the new feature I wish to add works. smile

But I have some problem with overriding the file "erLhcoreClassModelChatOnlineUser.php"
I've followed your tuto when I overrided the file but it doesn't work. I've made like that :

lhextension_autoload.php :

<?php
/**
* Autoloader definition for Live Helper Extension files.
*
*/

return array(   
    "erlhcoreclassmodelchatonlineuser.php" => "/lhc_web/lib/models/lhchat");

?>

and in extensions folder I've created the directory : customstatus/lib/models/lhchat and copied the file in that folder.
I've tried some edit but it doesn't work, do you know what's wrong please ?

Offline

#14 2015-02-25 11:49:11

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

Re: how to send an email notifying operator when there is a new visitor

what you wrote there is nonsense.
It should be that style
https://github.com/LiveHelperChat/liveh … ad.php#L67

Just path on right should point to you overrided class in extension.

Offline

Board footer