![]() |
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! |
add this {if} statement
Code:
{if $_SERVER["HTTPS"] != 'on'} |
Quote:
Kick Ass! |
Which file would I put this in if I wanted it to be on everypage in the site?
|
home.tpl is the main file that others fit around
|
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 :?: |
.
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. |
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.