Jump to content

adding a live help widget to my template


durangod

Recommended Posts

Hi,

 

I have added a live help widget to my site home page and it works, but once i click the button to access the portal of WHMCS it does not work (and it is suppose to work for the whole domain). The developer told me it is an issue with the site and not the script.

 

So i added the widget directly to the header tpl in the head section and nothing, it does not even parse it.

 

the result was this, as you can see the guts are all gone when looking at source.

 

<script type="text/javascript">

var LHCChatOptions = ;

LHCChatOptions.opt = ;

(function() )();

</script>

 

So then i made a js file and put it in the domain root and then called it like this in the header tpl.

 

<!-- added for special live help -->
<script type="text/javascript" src="/billing/mylivehelp.js"></script>

 

and still nothing..

 

Is there something that i dont know about that keeps us from adding js to the header.tpl?

 

- - - Updated - - -

 

nevermind thats strange it wont work when posted directly in header but it will work with a script call from the header.

 

My bad its working now so sorry...

Edited by durangod
had to fix the address sorry
Link to comment
Share on other sites

actually that worked for the WHMCS side but i still need to figure out how to get it to fire behind the https, i used an if in the js for protocol and made no dif. im thinking maybe i might have to make another js file and put it behind the https maybe in the order tpl file someplace not sure yet.

Link to comment
Share on other sites

yes so that is what i had to do, i had to use two file. i call them both like this from the header tpl file.

 

<!-- added for special live help one is http and the other is https -->

<script type="text/javascript" src="/billing/mylivehelphttp.js"></script>

<script type="text/javascript" src="/billing/templates/orderforms/comparison/mylivehelphttps.js"></script>

 

 

if you noticed i named one http and the other https because inside those files the url are http or https. Then i put one in the billing root as you can see and one in my order form dir, now when i click order it calls the https version and i see the support chat.

 

Hope that helps someone doing something similar.

Link to comment
Share on other sites

Just a little update here. I used this livehelperchat.com and its really nice. They just updated it again today and now i dont have to have both files, i just used https in the main file that i created in the WHMCS root and then used http in the new confg setting for the software and now it works in both billing and orderforms(https)

 

so i got rid of the second file.

 

also if your always getting the IE message that only secure items will be displayed, just change your IE tools security settings for mixed content to display rather than prompt.

Edited by durangod
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