Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
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
See department options. There is few fields for that functionality. Notifications tab
Offline
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
Just for new online visitor no.
Offline
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... ,
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
Offline
Offline
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
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
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
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
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
search for this method implementation and usage examples erLhcoreClassChat::isOnline
Offline
Thank you very much for your help, now the new feature I wish to add works.
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
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