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

You are not logged in.

Announcement

#1 2019-12-25 08:33:28

venkcc
New member
Registered: 2019-12-23
Posts: 3

Page code doesn't work

Hello

When I generate the page code ... i get something like the following:

[== HTML ==]

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

<!-- Place this tag after the Live Helper Plugin tag. -->
<script type="text/javascript">
var LHCChatOptionsPage = {'height':300,'mobile':false};
LHCChatOptionsPage.opt = {};
(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 = '//www.mysite.com/lhc_web/index.php/chat/getstatusembed?r='+referrer+'&l='+location;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>

of course, mysite.com has the real domain name on my web page on the site

Now, the ending of the javascript code is incorrect right?

I mean, instead of

[== HTML ==]
})();
</script>

we should have

[== HTML ==]
});
</script>

And with the above correction, nothing happens!, There's no console error neither.

Please help

Thanks

Offline

#2 2019-12-25 09:09:34

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Page code doesn't work

Hi venkcc I will close this topic as you started a topic already here (where you can continue).
Please do not open multiple topics.

I will wait in other topic to know what version of live helper chat are you using.
The code should be not end with

[== Undefined ==]
[== HTML ==]

AThe dubt is you are not using a recent version.
Have you tried the demo? 
https://livehelperchat.com/demo-12c.html

The software give just one embed code and it's correct and ready for be used.
You can continue in the other discussion opened by you.
});
</script>

lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

Board footer