I included your reply on a new FAQ on the forum: https://forum.livehelperchat.com/viewto … 125#p12125
]]><?php
$url_chat = ''; //variable that will have the identifier text
if(strpos($_SERVER['REQUEST_URI'], '<identifier_text>') !== false) //compare if the the current page is the right one
$url_chat = '(identifier)/<identifier_text>/'; //add the identifier to the variable
?>
<script type="text/javascript">
var LHCChatOptions = {};
LHCChatOptions.opt = {widget_height:340,widget_width:300,popup_height:520,popup_width:500,domain:'<your site domain>'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
var referrer = (document.referrer) ? encodeURIComponent(document.referrer.substr(document.referrer.indexOf('://')+1)) : '';
var location = (document.location) ? encodeURIComponent(window.location.href.substring(window.location.protocol.length)) : '';
po.src = '//<your site domain>/index.php/chat/getstatus/(click)/internal/(position)/bottom_right/(ma)/br/(check_operator_messages)/true/(top)/350/(units)/pixels/(leaveamessage)/true/(department)/2/<?php echo $url_chat; //add the variable content to the script ?>(theme)/1?r='+referrer+'&l='+location;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
This way you can add any amount of different pro active messages to any different pages, you just have to add more ifs in the php. Hope it helps.
]]>This is an open source project, chat owner are very busy and cannot help here right now... I cannot give help about this. All you can do is requesting this function in a future version but at the moment all seems to be frozen. There are several BUG unresolved... waiting for FIX and to be flagged as bug on GitHub.
Sorry, I cannot help you with specific URL and pro active, seems this is not possible at the moment.
]]>Thanks for the answer... But that's the thing, I don't see an option for a specific URL.
There is an option for "Referrer domain", but I don't think that this is a place to put a specific URL.
Thanks,
]]>If you need more specific help maybe you can consider commercial support: https://livehelperchat.com/support-13c.html as you need advanced configuration.
Tru to navigate in settings and see if what you want do is possible
I have a rather simple question:
How can I customize the pro-active invitations per URL?
In my case, I have a multilingual site so I need to ensure that messages are different for the different versions of the site. In addition to this, I want to make sure the messages are customized to suit the page.
So, for example:
www.example.com/en/page1.html
Should display message after 30 seconds: "Hello, do you have any questions about us?"
And another page in another language would have another message:
www.example.com/lt/contact.html
Should display message after 30 seconds: "Labas!"
Any help would be appreciated!
Thanks!
]]>