![]() |
if/then statement based on http vs https?
Is it possible to use an if/then statement depending on if you are on an https page versus an http page? If so, what is $variable for that?
Why I'm asking... My site uses "top sites" banners on the pages and those banner images do not pull from https/secure sites. The rest of the store area is on a secure server and so, when a customer registers/logs in, they switch from browsing http pages to the https pages and keep getting that annoying "This page contains both secure and non-secure items." I'd like to have the banners displayed when on http and turned off when on https pages. |
Re: if/then statement based on http vs https?
{if $smarty.server.HTTPS eq "on"}
content for secure page {else} content for insecure page {/if} |
Re: if/then statement based on http vs https?
Worked perfectly! Thanks ever so much!!!!
|
Re: if/then statement based on http vs https?
Sorry if i am asking a dumb question, but i am in the same situation as vickis.
Where abouts do i place the above code? |
Re: if/then statement based on http vs https?
It is meant to be used to show one thing if the page is secure, and one if not secure, so you would place it wherever you want those items to show.
|
Re: if/then statement based on http vs https?
Thanks very much Balinor
|
All times are GMT -8. The time now is 08:50 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.