Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Place Comodo site seal in Sidebox

Place Comodo site seal in Sidebox

Views: 3,743

Results 1 to 12 of 12
22 Dec 2015, 5:38 PM
#1
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Place Comodo site seal in Sidebox

I have spent several hours trying to find this answer in forum; my apologies if I am duplicating the topic.

I am using zencart 1.5.1.

After spending over a week trying to install a functional site seal (i.e. one with an active verification link) in the sidebox (via Instant SSL) I have successfully installed the comodo site seal on the website. I did so by installing it in the following places:

the trust logo header(the first part of the code) goes in include/templates/YOUR TEMPLATE/commom/html-header.php hust above the </head> (located at the very bottom.

the second part goes in includes/templates/YOUR TEMPLATE/common/tpl_main_page.php just above the </body>. (located at the bottom.) make sure you image path is correct. ex. /images.secure_site.gif or /catalog/images.secure.site.gif

In previous years, I had used Instant SSL in a sidebox but it did not work with the new comodo certificate. As you can see on the website, I now have two site seals--the sidebox one which does not have an active link and one in the bottom left corner of the page.

https://www.dancingtothespiritofthewood.com

I would prefer to have the seal in the sidebox but nothing I have tried has worked.

Is it possible to put the current seal and active link in the "Security" sidebox and, if so, please tell me exactly how to do so.

I am not a newbie but I am not very competent in coding and definitely not good at finding the right file(s) to alter.

Thanks (in advance) for your help.

23 Dec 2015, 12:16 AM
#3
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: Place Comodo site seal in Sidebox

Wow--that was sure quick; thanks so much.

I did try this already--the image shows up just fine but I can't get the link to the verification page to work. I've tried following the instructions with the read me file for Comodo Instant SSL but unless I'm missing something it only gets the image loaded into a new sidebox and that (in spite of my ignorance!) I already managed to do.

Barring having the seal in a sidebox, is there a way to have it appear in the footer instead of on the bottom left edge of the whole web page?

(Thanks, in advance, for all the time and assistance. I really appreciate it and do NOT take it for granted.)

24 Dec 2015, 11:27 AM
#4
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Place Comodo site seal in Sidebox

Have you tried this:
https://www.zen-cart.com/downloads.php?do=file&id=80

You could try coding it in the tpl_footer.php file (YOUR_TEMPLATE/common/tpl_footer.php)

24 Dec 2015, 8:45 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,687
Plugin Contributions:
56

Re: Place Comodo site seal in Sidebox

Be sure to do some performance tests after making a change like this. Previous versions of the Comodo sidebox added several seconds to each page load.

25 Dec 2015, 12:31 AM
#6
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: Place Comodo site seal in Sidebox

Thank you all for the suggestions. I will see if I can resolve this after the holiday. I would like to not use the "instant ssl" sidebox if it causes loading issues, although I've not noticed this to be a problem. I will try inserting the code in the footer and if that does not work then try the blank sidebox.

However, in looking at the tpl_footer.php file I come up with the same problem I've had with trying to install in the sidebox. The instructions to install the code are these:

Please insert the following two snippets of HTML code into your webpage document. You will need to repeat the process for each web page you wish to display the TrustLogo.

Add this before your </HEAD/ tag:

<script type=”text/javascript”> //<![CDATA[ var tlJsHost = ((window.location.protocol == “https:”) ? “https://secure.comodo.com/” : “http://www.trustlogo.com/”); document.write(unescape(“%3Cscript src=’” + tlJsHost + “trustlogo/javascript/trustlogo.js’ type=’text/javascript’%3E%3C/script%3E”)); //]]> </script>

Add this before your <BODY> tag

<script language=”JavaScript” type=”text/javascript”> TrustLogo(“http://MY_STORE.com/images/comodo_secure_52x63_white.png”, “CL1”, “none”); </script>

<a href=”https://ssl.comodo.com” id=”comodoTL”>SSL Certificate</a>

In the footer template there is no HEAD or BODY tag (at least that I can see) so I don't know where/how to insert the code. I've searched quite a while for an answer to this but I evidently just don't understand coding well enough (or at least don't understand php) to make this work.

I got the site seal to appear on the webpage (with the working verification link) by inserting it in the /templates/YOUR_TEMPLATE/common/html_header.php file (which had the HEAD tag), and the second part by inserting it in the includes/templates/YOUR TEMPLATE/common/tpl_main_page.php (which had the BODY tag)

I can't remember where I found the instructions to do this (it was in one of the zencart forums). If all else fails I'll just remove the Instant SSL sidebox and let the seal live in the lower left corner. It doesn't look great there but at least it works.

Thanks again for your suggestions and patience. I know it must be tiresome to have to deal with we novices when the solutions are probably pretty obvious to those with more experience.

Happy holidays to you all, and thanks again.

25 Dec 2015, 2:06 PM
#7
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Place Comodo site seal in Sidebox

Indeed you found the correct files for the head and body.

For the js in head you could have used the jscript folder in YOUR_TEMPLATE structure, but to not confuse you furthermore just leave it in the html_header.php
If you put

<script language=”JavaScript” type=”text/javascript”>
TrustLogo(“http://MY_STORE.com/images/comodo_se...ite.png”, “CL1”, “none”);
</script>
<a href=”https://ssl.comodo.com” id=”comodoTL”>SSL Certificate</a>

in your tpl_footer.php it will work fine (I tested it on my local setup).

If you need more control about the styling you could wrap it in a div like this

<div id="comodo-ssl">
<script language=”JavaScript” type=”text/javascript”>
TrustLogo(“http://MY_STORE.com/images/comodo_se...ite.png”, “CL1”, “none”);
</script>
<a href=”https://ssl.comodo.com” id=”comodoTL”>SSL Certificate</a>
</div>

and add styling in your YOUR_TEMPLATE/css/stylesheet.css

Whatever you choose you'd need to play with positioning and styling of it.

And happy holidays to you too.

25 Dec 2015, 3:42 PM
#8
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: Place Comodo site seal in Sidebox

I thank you so much for even checking on this forum on Christmas Eve--I had some time this morning I tried your suggestion to insert the code into the footer.php file.

I'm still obviously missing something; I tried inserting the code in every single line on the tpl_footer.php and every time I get a syntax error indication (the following is "greyed out" using Dreamweaver CS6): //MY_STORENAME.com/images/comodo_secure_52x63_white.png”, “CL1”, “none”);

When I upload the file, SSL site certificate shows up in the footer, but no image and clicking on the link takes one to a 404 page.

Here's the tpl_footer.php file:

<?php /** * Common Template - tpl_footer.php * * this file can be copied to /templates/your_template_dir/pagename<br /> * example: to override the privacy page<br /> * make a directory /templates/my_template/privacy<br /> * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_footer.php<br /> * to override the global settings and turn off the footer un-comment the following line:<br /> * <br /> * $flag_disable_footer = true;<br /> * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_footer.php 4821 2006-10-23 10:54:15Z drbyte $ */ require(DIR_WS_MODULES . zen_get_module_directory('footer.php')); ?> <?php if (!isset($flag_disable_footer) || !$flag_disable_footer) { ?> <!--bof-navigation display --> <div id="navSuppWrapper"> <div id="navSupp"> <ul> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li> <?php } ?> </ul> </div> </div> <!--eof-navigation display --> <!--bof-ip address display --> <?php if (SHOW_FOOTER_IP == '1') { ?> <div id="siteinfoIP"><?php echo TEXT_YOUR_IP_ADDRESS . ' ' . $_SERVER['REMOTE_ADDR']; ?></div> <?php } ?> <!--eof-ip address display --> <!--bof-banner #5 display --> <?php if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerFive" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> <!--eof-banner #5 display --> <!--bof- site copyright display --> <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div> <!--eof- site copyright display --> <?php } // flag_disable_footer ?>

Where do I insert the script so it works? I'm so sorry to be so dense; I really thought I understood this stuff a little better, but this issue has me totally stumped.

Please don't fuss with this today--but whenever you have a chance, I sincerely appreciate your help. I'd really like to make this work somehow!

Merry Christmas!

25 Dec 2015, 6:05 PM
#9
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Place Comodo site seal in Sidebox

No problem, isn't this part of Christmas spirit? ;)

I think it might be a character encoding issue, please copy paste the two following code snips:

header

<script type="text/javascript"> //<![CDATA[ 
var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.comodo.com/" : "http://www.trustlogo.com/");
document.write(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E"));
//]]>
</script>

footer

<div id="comodo-ssl">
<script language="JavaScript" type="text/javascript">
TrustLogo("http://dancingtothespiritofthewood.com/includes/templates/template_default/images/comodo_secure_52x63_white.png", "CL1", "none");
</script>
<a  href="https://www.positivessl.com/" id="comodoTL">Positive SSL</a>
</div>

You can paste the footer piece either right before <!--bof-navigation display --> like this

<div id="comodo-ssl">
<script language="JavaScript" type="text/javascript">
TrustLogo("http://dancingtothespiritofthewood.com/includes/templates/template_default/images/comodo_secure_52x63_white.png", "CL1", "none");
</script>
<a  href="https://www.positivessl.com/" id="comodoTL">Positive SSL</a>
</div>
<!--bof-navigation display -->

or between <!--eof-navigation display --> and <!--bof-ip address display --> like this

<!--eof-navigation display -->
<div id="comodo-ssl">
<script language="JavaScript" type="text/javascript">
TrustLogo("http://dancingtothespiritofthewood.com/includes/templates/template_default/images/comodo_secure_52x63_white.png", "CL1", "none");
</script>
<a  href="https://www.positivessl.com/" id="comodoTL">Positive SSL</a>
</div>
<!--bof-ip address display -->

or after <!--eof- site copyright display --> like this

<!--eof- site copyright display -->
<div id="comodo-ssl">
<script language="JavaScript" type="text/javascript">
TrustLogo("http://dancingtothespiritofthewood.com/includes/templates/template_default/images/comodo_secure_52x63_white.png", "CL1", "none");
</script>
<a  href="https://www.positivessl.com/" id="comodoTL">Positive SSL</a>
</div>

You need to remove the snip you have in tpl_main_page.php

Please make a backup copy of your working files, so that if something doesn't work as expected you can always go back to your working one.

OT
I see you did use the classic template, and modified that, which you shouldn't have, instead you should have created your own custom template, maybe for the next cart you should do so.
Based on the above I'd have suggested to use the override structure, and put the ssl image in YOUR_TEMPLATE image folder, and correct the path in the footer snip to point there, but as it's now you can leave it as it is.

25 Dec 2015, 10:38 PM
#10
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Place Comodo site seal in Sidebox

dreamweaver doesn't like the protocol agnostic way in which the image call url is put together. So, either use a real ftp client and don't use dreamweaver for this or change the image call to declare the protocol. Keneso is close, bit the protocol needs to be set too https: versus http: you can call secure into an unsecure page but you can't call unsecure into a secure page.

TrustLogo("https://dancingtothespiritofthewood.com/includes/templates/template_default/images/comodo_secure_52x63_white.png", "CL1", "none");
26 Dec 2015, 2:06 PM
#11
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: Place Comodo site seal in Sidebox

It worked! Thank you all so so much. I've removed the Instant SSL sidebox and the ssl seal is functioning. I'm not ecstatic with how it looks on the site but at least it's there.

You all are so helpful and kind. I can't thank you enough.

On to the New Year!

26 Dec 2015, 5:02 PM
#12
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Place Comodo site seal in Sidebox

You can wrap a div around it and use the stylesheet for better control over placement. you can even remove the a href link for the positive ssl too clean it up. now that you have the correct code for displaying it, you can put it anywhere you want it