Hoxtin Posted November 29, 2018 Share Posted November 29, 2018 Hello, For a little while we are running our small company site with the latest version of WHMCS. For security reasons (even since transactions do not take place on site), we purchased the trusted site for our domain and need to include the code: It needs to be placed on every page of your site to display the floating trustmark. They recommend adding the code before the closing </body> tag in your footer template file. The code looks like this: <script type="text/javascript" src="https://trustesite_code_here" async></script> Once the another code (below) for the Protection tracking code is added the Protection trustmark It will display a trustmark that our customers know they're protected. This is a sample of the code: <script src="https://code_url"></script> Instead of just adding it in the index file, I prefer to ask your help to know where and how to add it and avoid any problems. Thanks a lot. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 30, 2018 Share Posted November 30, 2018 On 29/11/2018 at 13:31, Hoxtin said: Instead of just adding it in the index file, I prefer to ask your help to know where and how to add it and avoid any problems. if it's supposed to be added before the closing </body>, then that means putting it in the /templates/six (or custom)/footer.tpl template file - either by directly editing the template, or by using a hook to add it automatically. I posted a similar hook a few days ago and that can be modified for your needs... .. basically, you should just need to remove the code between the two EOF statements and replace it with your code... <?php # TrustedSite Hook # Written by brian! function trusted_site_hook($vars) { return <<<EOF <script type="text/javascript" src="https://trustesite_code_here" async></script> EOF; }; add_hook("ClientAreaFooterOutput",1,"trusted_site_hook"); alter the code to include your real TS code; give it a .php filename, e.g trustedsite.php and upload the file to /includes/hooks and it should work. 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.