TimRef Posted November 27, 2021 Share Posted November 27, 2021 Hi, About the reports.php page . when we open the source code of web page , from the code, we can see it qoute a js file from google.com . like this : <script type="text/javascript" src="https://www.google.com/jsapi"></script> it use Google Charts API to generate the graph . and that takes some error from the country where cannot visit google.com , like China , we found a alternative solution , use <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> replace the <script type="text/javascript" src="https://www.google.com/jsapi"></script> but we cannot location the code , and when we search , also cannot find which page use https://www.google.com/jsapi , we find from all pages in /module/reports/, all not working . do you have any idea about this . thanks a lot . 0 Quote Link to comment Share on other sites More sharing options...
TimRef Posted November 27, 2021 Author Share Posted November 27, 2021 anyone knows where can configurate the {$headoutput} ? 0 Quote Link to comment Share on other sites More sharing options...
TimRef Posted November 27, 2021 Author Share Posted November 27, 2021 <script type="text/javascript"> var datepickerformat = "yy-mm-dd", csrfToken = "523d22567986403122345f3ac38c28be383d8f3f5", adminBaseRoutePath = "/admin"; whmcsBaseUrl = ""; var mentionsFormat = '@${username}'; function redrawCharts() { drawChart16379887371(); } $(window).bind("resize", function(event) { redrawCharts(); }); </script> <script>function getClientSearchPostUrl() { return '/admin/search/client'; }</script> <script type="text/javascript" src="../assets/js/AdminClientDropdown.js"></script> <script type="text/javascript" src="https://www.google.com/jsapi"></script> </head> <body data-phone-cc-input="1"> <div id="headerWrapper" align="center"> <script type="text/javascript"> var datepickerformat = "{$datepickerformat}", csrfToken = "{$csrfToken}", adminBaseRoutePath = "{\WHMCS\Admin\AdminServiceProvider::getAdminRouteBase()}"; whmcsBaseUrl = "{\WHMCS\Utility\Environment\WebHelper::getBaseUrl()}"; {if $jquerycode}$(document).ready(function(){ldelim} {$jquerycode} {rdelim}); {/if} {if $jscode}{$jscode} {/if} </script> {$headoutput} </head> <body data-phone-cc-input="{$phoneNumberInputStyle}"> {$headeroutput} 0 Quote Link to comment Share on other sites More sharing options...
TimRef Posted November 27, 2021 Author Share Posted November 27, 2021 where is this , in {$headoutput} ? where is the {$headoutput} ? <script type="text/javascript" src="https://www.google.com/jsapi"></script> 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.