سلام دوستان
من کد اسکریپت برنامه را داخل قالب html صفحه اصلیم قرار دادم و کار داد
ولی داخل فایل فوتر قالب whmcs که میذارم کار نمیده
<script type="text/javascript">var LHCChatOptions = {};LHCChatOptions.opt = {widget_height:340,widget_width:300,popup_height:520,popup_width:500,domain:'likevps.ir'};(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 = '//likevps.ir/portal/chat-web/index.php/site_admin/chat/getstatus/(click)/internal/(position)/bottom_right/(ma)/br/(hide_offline)/true/(check_operator_messages)/true/(top)/350/(units)/pixels/(leaveamessage)/true/(department)/1/(disable_pro_active)/true?r='+referrer+'&l='+location;var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);})();</script>این کدی است که من استفاده میکنم
باید چیکار کنم که درست بشه ؟؟
:45:
من کد اسکریپت برنامه را داخل قالب html صفحه اصلیم قرار دادم و کار داد
ولی داخل فایل فوتر قالب whmcs که میذارم کار نمیده
<script type="text/javascript">var LHCChatOptions = {};LHCChatOptions.opt = {widget_height:340,widget_width:300,popup_height:520,popup_width:500,domain:'likevps.ir'};(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 = '//likevps.ir/portal/chat-web/index.php/site_admin/chat/getstatus/(click)/internal/(position)/bottom_right/(ma)/br/(hide_offline)/true/(check_operator_messages)/true/(top)/350/(units)/pixels/(leaveamessage)/true/(department)/1/(disable_pro_active)/true?r='+referrer+'&l='+location;var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);})();</script>این کدی است که من استفاده میکنم
باید چیکار کنم که درست بشه ؟؟
:45: