| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Hide graphic if page is unsecure | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I want to hide a Thawte SSL badge when looking at a HTTP page and show the badge when looking at HTTPS pages.
This would be something like: Code:
So far, I haven't found a Smarty tag to use as the trigger. Any help would be much appreciated! -Glen
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS |
|||||||
#2
|
|||||||||
|
|||||||||
![]() heres how i did it
Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() Wow - that was a fast response! Works perfectly!
-Glen
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS |
|||||||
#4
|
|||||||||
|
|||||||||
![]() ![]()
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#5
|
|||||||
|
|||||||
![]() Really excellent, Shan. Thanks. I used the following code:
Code:
A further question: Thawte will let me load a SecondTier Seal image on the other 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.) Is it possible to modify your code so that if it isn't https, it will load an image in the same spot?
__________________
X-Cart version 4.0.17 X-Cart version 4.0.18 Web servers = Apache OS = Linux |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Quote:
just do this Code:
or just use Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#7
|
|||||||
|
|||||||
![]() We have the opposite problem. We want to run a small chunk of code only under HTTP. Could we change the "on" variable in the first line to "off" and that would resolve my problem?
What we're having problems with is HTML banners that are being called by a PHP script. In any HTTPS areas of the site we get that annoying pop-up. Quote:
__________________
X-Cart Pro v3.5.12 (FreeBSD), Apache 1.3.31, X-Conf, X-AOM, X-FancyCat, Rec. Viewed, MM Pro, Stock Not., News Module, Recently Viewed, Banner/Ad, PHP 4.3.9, MySQL server 3.23.54, Perl 5.00503 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() yeh
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#9
|
|||||||
|
|||||||
![]() Excellent. Thank you very much for the quick reply!
__________________
X-Cart Pro v3.5.12 (FreeBSD), Apache 1.3.31, X-Conf, X-AOM, X-FancyCat, Rec. Viewed, MM Pro, Stock Not., News Module, Recently Viewed, Banner/Ad, PHP 4.3.9, MySQL server 3.23.54, Perl 5.00503 |
|||||||
#10
|
|||||||
|
|||||||
![]() Great tip, we use this to display invocation code from adsense on non secure pages (which obviously needs to be stopped on https delivery),and to display info about secure pages when secure.
Cheers
__________________
X-cart: 4.0.17 PHP: 4.3.11 |
|||||||
|
|||
X-Cart forums © 2001-2020
|