Jump to content

Javascript Issue, Live Chat


Viggit

Recommended Posts

Hello! I've had a great time using WHMCS so far and I've just finished fully adding my new custom Header and Footer to my website. Now I'm having an issue even with using the {literal} {/literal} tags for the <script></script>

 

My issue is that my code below...

 

{literal}<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 = 'http://www.viggit.com/lhc_web/index.php/chat/getstatus/(click)/internal/(position)/bottom_right/(check_operator_messages)/true/(top)/350/(units)/pixels/(leaveamessage)/true?r='+refferer+'&l='+location;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>{/literal}

 

Obviously shows up nicely on the page. Now my issue is when the page switchs to use the SSL "https://" it then breaks my SSL and does not show my Live Chat widget, "the code above".

 

I'm at a loss and I really don't want to give up on it and just not include it on my billing section but I really just keep scratching my head at this.

 

Any help is much appreciate thanks guys/gals!

 

-Viggit

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated