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

You are not logged in.

Announcement

#1 2014-08-18 13:13:10

djremcop
Member
From: The Netherlands
Registered: 2014-08-18
Posts: 13
Website

Worng code after update.

Just a heads up!

After the latest update, if you generate an new chat HTML code and enter a domain, the code generated is incorrect!

Example:

[== JavaScript ==]
<script type="text/javascript">
var LHCChatOptions = {};
LHCChatOptions.opt = {widget_height:340,widget_width:300,popup_height:520,popup_width:500',domain:'domain.nl'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
var refferer = (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.domain.nl/chat/index.php/nld/chat/getstatus/(click)/internal/(position)/middle_left/(ma)/br/(check_operator_messages)/true/(top)/270/(units)/pixels/(leaveamessage)/true/(identifier)/partycorp/(theme)/1?r='+refferer+'&l='+location;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>

In the 3th line after popup_width:500' the ' is suppose not to be there!
So the widget does not work!

Last edited by djremcop (2014-08-18 13:13:52)


Regards,
Remco
IT Manager at PartyCorner.nl

Offline

#2 2014-08-18 13:17:58

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

Re: Worng code after update.

Fixed in master now.

Big thanks!!!

Offline

Board footer