Jump to content

Adding McAffee logo and TrustedSite code


Recommended Posts

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.

Link to comment
Share on other sites

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.

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