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)
-   -   Secure Site Seal (https://forum.x-cart.com/showthread.php?t=3066)

RobotDeathSquad 06-06-2003 11:54 AM

Secure Site Seal
 
Is there an easy smarty tag to include a .tpl file everytime the url is https? I'm not very familure with smarty's so I thought I'd ask this here. I'd just like to include a SSL Cert Seal when the cart goes secure, that way I don't have to add it to every page that is secure by hand.

Thank!

shan 06-06-2003 02:40 PM

add this {if} statement

Code:

{if $_SERVER["HTTPS"] != 'on'}
blah blah blah blah
{/if}


RobotDeathSquad 06-06-2003 03:33 PM

Quote:

Originally Posted by shan
add this {if} statement

Code:

{if $_SERVER["HTTPS"] != 'on'}
blah blah blah blah
{/if}



Kick Ass!

RobotDeathSquad 06-17-2003 01:00 PM

Which file would I put this in if I wanted it to be on everypage in the site?

shan 06-17-2003 01:25 PM

home.tpl is the main file that others fit around

jaedendak 11-05-2003 11:37 PM

Not working for me :(
 
:( I tried this and get the following error:

Fatal error: Smarty: [in customer/main/checkout.tpl line 50]: syntax error: unidentified token '["HTTPS"]' (Smarty_Compiler.class.php, line 1236) in C:\Program Files\Apache Group\Apache2\www\dijacopy\xcart\Smarty-2.5.0\Smarty_Compiler.class.php on line 1832


any ideas :?:

jeeya 11-05-2003 11:49 PM

.
 
what should I use if I want it to just show in like contact us or about pages.

I will just make a new tpl and put the image in that.

Do you think this will work

{if $sec eq "about"}
{include file="abcd.tpl"}

thanks.

jaedendak 11-06-2003 12:01 AM

arrrgggg!!!
 
I did some reading up on smarty, and found some info on environment variables... so I tried this:

{if $smarty.server.HTTPS}
This is a secure site.
{/if}

but guess what? I get the same error. :evil: EXACT same error. Could this be a smarty bug :?:


All times are GMT -8. The time now is 02:41 PM.

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