durangod Posted January 25, 2014 Share Posted January 25, 2014 (edited) 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 January 25, 2014 by durangod had to fix the address sorry 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted January 25, 2014 Author Share Posted January 25, 2014 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. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted January 25, 2014 Author Share Posted January 25, 2014 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. 0 Quote Link to comment Share on other sites More sharing options...
durangod Posted January 26, 2014 Author Share Posted January 26, 2014 (edited) 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 January 26, 2014 by durangod 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.