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

You are not logged in.

Announcement

#1 2014-04-02 22:16:02

Ellie Am.
Member
Registered: 2014-04-02
Posts: 4

Embedded Live help widget does not appear on different doMayn

Hi all,
I have a question: I have successfully instaled Live help on domain1.com and have not trouble embedded the Live help, FAQ, Questionary and Chatbox widgets in html pages that reside on the same server and domain.
However, I am having trouble embedding the same Live help widget on any html page that resides on different server and domain (domain2.com). Strangely, FAQ, Questionary and Chatbox appear on different server without any problems.
I have tried inserting the embed code directly in html, as well as placing the embed code (without script tags) in a separate .js file on domain1.com and calling it from domain2.com's html file, but this also does not help.
I have also tried using Identifier in the embed code and created a new Pro active instance for that particular Identifier and again, so luck smile
Many thanks for your help in solving this.
-Ellie



















https://groups.google.com/forum/#!topic … z15hJpI6GE

Offline

#2 2014-04-03 06:55:27

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

Re: Embedded Live help widget does not appear on different doMayn

Read this, i ques something with your server configuration, perhaps mod_security is blocking it etc.http://livehelperchat.com/i-have-embedded-widget-code-but-widget-is-not-shown.-what-to-do-265a.html



2014-04-02 23:16 GMT+03:00 Ellie Am. <el...***.org>:

Offline

#3 2014-04-03 09:04:47

Ellie Am.
Member
Registered: 2014-04-02
Posts: 4

Re: Embedded Live help widget does not appear on different doMayn

Dear Remigijus,
Thank you very much for pointing me to the right direction.
I have followed the instructions and found out that the URL domain2.com is accessing is getting a 403 forbidden response. When inspecting the differences in the URLs the browser is calling, it looks like that the only difference is the &l parameter (location).
domain1.com is calling:
http://domain1.com/index.php/chat/getstatus/%28position%29/bottom_right/%28top%29/350/%28units%29/pixels?r=&l=http%3A%2F%domain1.com%2Ftest.html
and domain2.com is calling:
http://domain1.com/index.php/chat/getstatus/%28position%29/bottom_right/%28top%29/350/%28units%29/pixels?r=&l=http%3A%2F%domain2.com%2Ftestchat.html
Since in the embedded js code the value of &l parameter is defined by the location variables at the beginning, as:
var location  = (document.location) ? encodeURIComponent(document.location) : '';
and called later as po.src = '//chat.ism.ge/nirvelli/index.php/chat/getstatus/(position)/middle_right/(top)/350/(units)/pixels/(leaveamessage)/true?r='+refferer+'&l='+location;
I manually replaced the call value with:
po.src = '//chat.ism.ge/nirvelli/index.php/chat/getstatus/(position)/middle_right/(top)/350/(units)/pixels/(leaveamessage)/true?r='+refferer+'&l=http://domain1.com/index.php/chat/getstatus/%28position%29/bottom_right/%28top%29/350/%28units%29/pixels?r=&l=http%3A%2F%domain1.com%2Ftest.html';
This solved the problem partially. Now the Live help widget is finally showing up on domain2.com, but the strangely the pro active chat does not pop up after several seconds, as it does on the Live help widget on domain1.com  smile
So I'm a bit confused.
Meanwhile, I would also appreciate your letting me know how I could add another language. I have seed the online localization workflow at transifex, which allows requesting adding of additional language, but how would I activate the new language in the installation for testing, before it is merged to the master?
Thank you very much for your help. I am including the widget embed code for your reference.
Best,Ellie
<script type="text/javascript">var LHCChatOptions = {};LHCChatOptions.opt = {widget_height:340,widget_width:300,popup_height:520,popup_width:500};(function() {var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;var refferer = (document.referrer) ? encodeURIComponent(document.referrer) : '';var location  = (document.location) ? encodeURIComponent(document.location) : '';po.src = '//domain1.ism.ge/index.php/chat/getstatus/(position)/middle_right/(top)/350/(units)/pixels/(leaveamessage)/true?r='+refferer+'&l='+location;var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);})();</script>

Offline

#4 2014-04-03 09:22:53

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

Re: Embedded Live help widget does not appear on different doMayn

Hi,

Sorry but I ques issue will be exactly the same 403 error because of mod_security. Also you have to enable pro active invitations in back office. Also while generating embed choose check messages from operators. Or basically you can follow this tutorial to has it all.

http://livehelperchat.com/ultimate-tutorial-for-pro-active-chat-installation-and-chat-install-217a.html




2014-04-03 10:04 GMT+03:00 Ellie Am. <el...***.org>:

Offline

#5 2014-04-03 23:09:08

Ellie Am.
Member
Registered: 2014-04-02
Posts: 4

Re: Embedded Live help widget does not appear on different doMayn

Hi Remigijus,

Thanks for your comments.
The changes I made to the code (which I copied in my previous mail) seems to solve the problem. Looks like I only get the 403 error when domain2.com html page has embedded widget, which calls live chat from domain1.com (where live helper chat is installed) and when the &l parameter passes 'location' of domain2.com and not domain1.com


As soon as hardcode the domain1.com location in the &l parameter, the problem goes away and the chat widget shows up on domain2.com html pages too.


As I wrote in my previous mail, the only problem now remaining is the Pro Active function does not seem to work when I embed the widget in domain2.com html page, but works when I embed the same code in domain1.com html page.


I have followed the installation and configuration example you suggested, but nothing changes.
Also, could you kindly let me know how I could add additional language localization?


Thanks for your help.
Ellie

Offline

#6 2014-04-04 06:59:46

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

Re: Embedded Live help widget does not appear on different doMayn

Hi,

I can suggest just two/three things.
1. Change hosting which does not have mot security
2. Use same google chrome debug console to see what else is blocked by your hosting
3. Root of all these problems are mod_security https://github.com/LiveHelperChat/livehelperchat/issues/286, I have no intention of fixing this because of third party cause without appropriate support from community)

In general i suggest just have a look at https://github.com/LiveHelperChat/livehelperchat/blob/master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus.tpl.php and override this file and remove where you see &l but in general it's just a hack.


2014-04-04 0:09 GMT+03:00 Elene Amirejibi <el...***.org>:

Offline

#7 2014-04-04 07:54:19

Ellie Am.
Member
Registered: 2014-04-02
Posts: 4

Re: Embedded Live help widget does not appear on different doMayn

Hi,
Thank you for additional information. Strangely enough, my host is in top 3 of reseller hosts, so the security settings may be the same. I also have access to the other two of top three hosting providers and will see if this solves the problem.  If it still persists, it may be worthwhile to find a workaround, as top 3 reseller hosts means there are lots of customers using their services.


As a simple workaround, I can also install Live helper on several domains, as there does not seem to be a problem embedded it on the same server it has been installed to.
When you have a chance, could you also kindly answer my questions about activating a new localization?


Many thanks again.
Best wishes,Ellie

Offline

#8 2014-04-04 08:29:08

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

Re: Embedded Live help widget does not appear on different doMayn

Hi,

Could you just skype me, my nick is remdex so I could see live your problem.

2014-04-04 8:54 GMT+03:00 Elene Amirejibi <el...***.org>:

Offline

#9 2015-09-04 13:08:18

thecjman
Member
Registered: 2015-09-03
Posts: 5

Re: Embedded Live help widget does not appear on different doMayn

Hi Ellie

Have you ever found a solution?

Please refer to my post https://forum.livehelperchat.com/viewtopic.php?pid=5959

Offline

Board footer