Zen Follower
- Join Date:
- Oct 2008
- Posts:
- 197
- Plugin Contributions:
- 0
Post #1 by tpeck
I am having trouble trying to get a "seal of trust" image provided by the company supplying our SSL Certificate to show on the relevant page(s).
There are two issues - one I seem to have solved.
- SOLVED getting the image to hover always bottom right of the screen even when scrolling the page.
It took me ages to find (simple) code to do it and it's below (in case others need it):
<style>
#float_corner {
position:fixed;_position:absolute;bottom:0px;right:0px;clip:
inherit;_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}
</style>
<div id="float_corner">
<a href="https://www.ssl_certificate_supplier.com">
<img src="https://www.www.ssl_certificate_supplier/image.gif" width="75px" height="75px" border="0" /></a>
</div>
You can make it sit left if you want by changing the red bit of code above (and top if you like).
:rant: Perhaps I should explain that this code is necessary because the company I purchased the certificate from (Comodo) charges more for an SSL Certificate that provides its own method of floating the image in this way (you need an instant SSL, not a cheaper positiveSSL Certificate to be able to install their "corner of trust" seal. (Why they would deliberately make an advertisement and link to their own website almost impossible to be seen for the cheaper SSL is beyond me, and is the reason why I sought out the floating image script.) I am not trying to save a dollar; I am trying to display the image they supply in a better fashion than having it practically invisible at the bottom of the page (who's going to scroll all the way down?). I am NOT implying you use this method to place a Comodo "corner of trust" image bottom right to suggest you have paid for the more expensive service. That would be, well, wrong. But they want you to display the image you have paid for to use, and it's your website - you can display the image any way you like I would think.
- Naturally, I want the image to kick in ONLY when the https:// secure webpages display.
Zencart tells us to do this in the configure.php page:
// Define the webserver and path parameters
define('HTTP_SERVER', 'http://www.YOUR_SHOP.com');
define('HTTPS_SERVER', 'https://www.YOUR_SHOP.com');
define('ENABLE_SSL', 'true');
This makes zencart go "secure" whenever the customer goes to checkout. Great!
Placing the floating image code just before the </body> tag on the /includes/templates/YOUR TEMPLATE/common/tpl_main_page.php makes the image appear on every page of zencart.
My question is, where do I place the floating image code in zencart (i.e. on which pages) so that the image only displays on the secured pages?