| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
External address buttons & https | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I may be having a dunmb moment here but can anyone help me with this problem please.
I have a couple of buttons that are linked to a "Top 50" listing site and of course they cause a problem when my site visitor switches over to the https address as they aren't directly from my site. Is there a way I can say something in the code like if using the secure address, don't show? I have search around the forum but drawn a blank, any help would be much appriciated. Thanks Ian ![]()
__________________
_____________________________________ 4.6.6 Gold Plus and 4.7.4 Gold MySQL server 5.6.29 PHP 5.5.34 |
|||||||
#2
|
|||||||
|
|||||||
![]() Code:
Try that and let me know how it goes ![]()
__________________
Mod King |
|||||||
#3
|
|||||||||
|
|||||||||
![]() The best way to do this is to check the port on the back end and write the URL based on the port. Using Javascript is not reliable across all browsers.
Here is an example using one of the links you have on your site... Code:
|
|||||||||
#4
|
|||||||
|
|||||||
![]() Thanks for the reply
![]() I have been out but I will try it later and let you know, I'm sure there are a lot of sites that could use a fix like this. All the best Ian
__________________
_____________________________________ 4.6.6 Gold Plus and 4.7.4 Gold MySQL server 5.6.29 PHP 5.5.34 |
|||||||
#5
|
|||||||
|
|||||||
![]() It's all good news!
The provider of the buttons didn't have a https address so, I saved a copy of the button to my server in the images directory. This is the cade I used in the end Code:
Thanks for all of your help its solved the problem perfectly. Ian ![]()
__________________
_____________________________________ 4.6.6 Gold Plus and 4.7.4 Gold MySQL server 5.6.29 PHP 5.5.34 |
|||||||
#6
|
|||||||||
|
|||||||||
![]()
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#7
|
|||||||
|
|||||||
![]() Thanks Shan it's all been a big help.
I went for displaying a copy of the image from my site when https is in effect as most of the time people are busy checking out at that stage. I made an image with no ranking number on it for that purpose. The live image comes in fine when in http so everyone is happy ![]() Thanks again Ian
__________________
_____________________________________ 4.6.6 Gold Plus and 4.7.4 Gold MySQL server 5.6.29 PHP 5.5.34 |
|||||||
|
|||
X-Cart forums © 2001-2020
|