X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to have http pages show Thawte SecondTier Seal? (https://forum.x-cart.com/showthread.php?t=16241)

gravel 08-30-2005 08:57 AM

How to have http pages show Thawte SecondTier Seal?
 
Our Thawte seal only appears when a customer logs in or checks out, because the domain changes from www.oursite.com to secure.oursite.com, and the Thawte ssl is only certified for secure.oursite.com. I used this code:

Code:

{if $smarty.server.HTTPS eq "on"}
<p align="center">
{literal}
<script src="https://siteseal.thawte.com/cgi/server/thawte_seal_generator.exe">
</script>
{/literal}
</p>
{/if}


I want to show a Thawte SecondTier Seal image on the http pages. (We could also have it hyperlinked to our "secure pages" but since they only happen when someone logs in, I don't think that is possible.)

How can I modify the above code so it will load an image in the same spot, when it is NOT a https page?

Thanks in advance for any help,
Dan

Dongan 08-30-2005 07:57 PM

Re: How to have http pages show Thawte SecondTier Seal?
 
Quote:

Originally Posted by gravel
I used this code:

Code:

{if $smarty.server.HTTPS eq "on"}
<p align="center">
{literal}
<script src="https://siteseal.thawte.com/cgi/server/thawte_seal_generator.exe">
</script>
{/literal}
</p>
{/if}


Dan


Try this...

Code:

{if $smarty.server.HTTPS eq "on" or $smarty.server.HTTP eq "on"}
<p align="center">
{literal}
<script src="https://siteseal.thawte.com/cgi/server/thawte_seal_generator.exe">
</script>
{/literal}
</p>
{/if}


gravel 08-31-2005 03:31 PM

Thanks Dongan. However, that won't work, because the Thawte seal generator script only works for authorized domains, and if someone is not logged in, they won't be at secure.oursite.com.

I did get this to work:
Code:

{if $smarty.server.HTTPS eq "on"}
<p align="center">
{literal}
<script src="https://siteseal.thawte.com/cgi/server/thawte_seal_generator.exe">
</script>
{/literal}
</p>
{else} 
<p align="center">
  [img]http://www.oursite.com/store/skin1/images/thawte2ndtier.gif[/img]
</p>
{/if}


I used the "Register" page as a link because it is the only https page doesn't require the viewer to be logged in.

Well, it works in IE and Firefox. In terms of the code, I was just guessing, so if anyone sees a better way to code this, that would be great.

LikeMike 11-14-2005 08:54 AM

Sorry to resurrect an old thread, but just wanted to thank gravel for this little piece of code. I used it with a Turbo SSL certificate (from godaddy.com only 29.95 or 19.95 if you find a coupon ;)) and it works very well. Thanks!


All times are GMT -8. The time now is 06:08 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.