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

You are not logged in.

Announcement

#1 2013-12-05 09:34:06

fit
Member
Registered: 2013-12-05
Posts: 5

embed code are not showing

Hi.. I need help.. when i'm trying using the embed code to put in my website.
The chat box are not showing.
Before this i try in my local development server. It was working fine.
When i'm installing on live server. The chat did'nt appear.

This is my embed code

<!-- Place this tag where you want the Live Helper Status to render. -->
<div id="lhc_status_container" ></div>

<!-- Place this tag after the Live Helper status tag. -->
<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 = '//livesupport.els.edu.my/index.php/chat/getstatus/(click)/internal/(position)/original/(top)/350/(units)/pixels?r='+refferer+'&l='+location;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>


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

Offline

#2 2013-12-05 09:38:24

fit
Member
Registered: 2013-12-05
Posts: 5

Re: embed code are not showing

Sorry. title should be embedded widget

Offline

#3 2013-12-05 09:44:43

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

Re: embed code are not showing

Without actual site, not possible to tell.

2013/12/5 fit <fitr...***.com>

Offline

#4 2013-12-05 09:55:45

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

Re: embed code are not showing

Sorry but there is no script in this page at all smile

2013/12/5 fit <fitr...***.com>

Sorry.. this is my url.. i want it appear at bottom right of the site
http://beta.els.edu.my/en/

Offline

#5 2013-12-05 10:00:34

fit
Member
Registered: 2013-12-05
Posts: 5

Re: embed code are not showing

owh.. is it? ok i move it into the header file..  did you see the script?

Offline

#6 2013-12-05 10:04:59

fit
Member
Registered: 2013-12-05
Posts: 5

Re: embed code are not showing

This is what i'm see when i inspect element
<script type="text/javascript" async="" src="//livesupport.els.edu.my/index.php/chat/getstatus/(click)/internal/(position)/bottom_right/(top)/350/(units)/pixels?r=&l=http%3A%2F%2Fbeta.els.edu.my%2Fen%2F"></script>


On Thursday, 5 December 2013 16:55:45 UTC+8, Remigijus Kiminas  wrote:

Offline

#7 2013-12-05 10:15:19

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

Re: embed code are not showing

Simple,

http://livesupport.els.edu.my/index.php/chat/getstatus/(click)/internal/(position)/bottom_right/(top)/350/(units)/pixels?r=&l=http%3A%2F%2Fbeta.els.edu.my%2Fen%2F - returns forbidden. So fix your server configuration smile if you remove "l=..." it processes it.



2013/12/5 fit <fitr...***.com>

Offline

#8 2013-12-05 10:20:39

fit
Member
Registered: 2013-12-05
Posts: 5

Re: embed code are not showing

wow.. it works for me.. thanks.. you save me..

Offline

Board footer