View Single Post
  #62  
Old 02-27-2008, 03:20 AM
 
EN4U EN4U is offline
 

eXpert
  
Join Date: Feb 2008
Location: AZ
Posts: 379
 

Default Re: How to add a Secure Cert Logo to your pages

Quote:
Originally Posted by shan
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

awesome , thanks..works great!!!
__________________
Regards, Dan
X-Cart Gold Version 4.1.10

1 - One page checkout
2 - Image Generator
3 - CSDEO Pro
4 - Shop By Price
5 - Next - Previous
6 - On Sale
7 - Shop By Price

8 - Froogle & Google Base Feed
9 - Buy Together
10 - Customer Loyalty Points
11 - Customer Reward Points
Customer Reward Points Referral Add-on
12 - Product Reviews
13 - Other Custom Modifications
----------------------
http://www.townsqjewelry.com/
http://www.eroticnights4u.com/ <---- Adult Oriented - Toys
Reply With Quote