View Single Post
  #1  
Old 01-13-2004, 07:12 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default How to add a Secure Cert Logo to your pages

If you have a secure certificate from trust heres a quick walkthrough for getting the logos added to you site

This was done on a 3.5.x site but is pretty much the same for all versions. The only thing that would be any different is the menu part

make sure that you have uploaded your secure_site.gif to your skin1/images dir

new file secure_cert.tpl

Code:
<table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td align="center" valign="top"><!-- TrustLogo Html Builder Code: Shows the logo at URL https://www.mysecuresite.com/shop/skin1/images/secure_site.gif Logo type is Secure Site Seal - For SSL Certificate holders ("SC") Not Floating //--> {literal} <script type="text/javascript">TrustLogo("https://www.mysecuresite.com/shop/skin1/images/secure_site.gif", "SC", "none");</script> {/literal}</td> </tr> </table>

notice the {literal}{/literal} tags around the javascript

add this code between the head tags of

customer/home.tpl
single/home.tpl
partner/home.tpl (if you use affiliate)

Code:
{* SECURE SITE CODE STARTS HERE *} {literal} <script language="JavaScript" src="https://secure.comodo.net/trustlogo/javascript/trustlogo.js" type="text/javascript"> </script> {/literal} {* SECURE SITE CODE ENDS HERE *}

again notice the {literal}{/literal} tags around the javascript

then to get he logo to appear on your pages add this code where you want the cert to appear in the following files

customer/home.tpl
single/home.tpl
partner/home.tpl (if you use affiliate)

Code:
{ include file="secure_cert.tpl"}

If you want the code to appear as a menu item then make secure_cert.tpl look like this ....

Code:
{* $Id: secure_cert.tpl *} {capture name=menu} <table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td align="center" valign="top"> <!-- TrustLogo Html Builder Code: Shows the logo at URL https://www.mysecuresite.com/shop/skin1/images/secure_site.gif Logo type is Secure Site Seal - For SSL Certificate holders ("SC") Not Floating //--> {literal} <script type="text/javascript">TrustLogo("https://www.mysecuresite.com/shop/skin1/images/secure_site.gif", "SC", "none");</script> {/literal}</td> </tr> </table> {/capture} { include file="menu.tpl" dingbats="dingbats_help.gif" menu_title="Secure Certificate" menu_content=$smarty.capture.menu}

dont forget to replace the java code with the code that you get from the trust setup page http://www.trustlogo.com/ssl-certificate-support/index.html

also note that i set the images to call from the secure location (https://www.mysecuresite.com)rather then the http location so as not to cause any errors
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote