Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Securing images

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 09-15-2007, 07:39 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Securing images

Ok, so if it is all of those images, how do you know fixing the background image worked? To call images in the stylesheet, you need to put them in the skin1/images directory and call them like this:

background: url(images/imagename.jpg);

To call images in the templates, you use:

<img src="{$ImagesDir}/imagename.jpg">

If you do that, they won't give you that warning. If they do, something is either incorrect with your http/https setup, or you have an absolute path called somewhere.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #12  
Old 09-15-2007, 08:37 PM
 
OpheliaPayne OpheliaPayne is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 130
 

Default Re: Securing images

Quote:
Originally Posted by balinor
Ok, so if it is all of those images, how do you know fixing the background image worked? To call images in the stylesheet, you need to put them in the skin1/images directory and call them like this:

background: url(images/imagename.jpg);

Again... This still makes the background image unsecure.

css file = skin1 directory
background = skin1 directory

I also tried it in the skin1/images directory

Still listing as unsecure.

Quote:
To call images in the templates, you use:

<img src="{$ImagesDir}/imagename.jpg">

If you do that, they won't give you that warning. If they do, something is either incorrect with your http/https setup, or you have an absolute path called somewhere.

I can not put the topsite images into my images/ directory.. so what do I do with those? I need to test out the information w/ the txt_welcome that somekindahate forgot to add originally, and will do that later.
__________________
xCart 4.6.1
Reply With Quote
  #13  
Old 09-15-2007, 09:01 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Securing images

the backgroud image is fine... I only see the ones at the bottom as unsecure.
__________________
xcart 5.1.2
Reply With Quote
  #14  
Old 09-16-2007, 11:22 AM
  vahidnia's Avatar 
vahidnia vahidnia is offline
 

Advanced Member
  
Join Date: Aug 2007
Location: USA
Posts: 48
 

Default Re: Securing images

Is there a way to call images from another website without getting a security worning? I know it is not recommended. I get the worning even when my website is in "http" mode!
Can anyone help please
Thanks
__________________
X-cart gold 4.4.3
Unix
Reply With Quote
  #15  
Old 09-16-2007, 04:19 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Securing images

You need to call them via https, but that will slow down your site, and you risk having empty images when/if the third party moves/removes/edits their images. Plus, most sites don't allow you to link to their images.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #16  
Old 09-16-2007, 04:51 PM
  vahidnia's Avatar 
vahidnia vahidnia is offline
 

Advanced Member
  
Join Date: Aug 2007
Location: USA
Posts: 48
 

Default Re: Securing images

Balinor,
I am calling the pictures from my dropshiper dedicated website. They wouldnt move the pictures. (about 20000 pictures, I can not download them one by one)
How would i call them via https? just by replacing http with https? but the problem is when i put an "s" in the url it wouldnt open the page
http://website.com/images/abc.jpg
I can see the picture when I put the url in browser link bar but with https I cant open the page:
https://website.com/images/abc.jpg
their website is not set up for https.
IS there a way to call http urls via https?
Thanks, Balinor. Your contribution in this forum is really appriciated
__________________
X-cart gold 4.4.3
Unix
Reply With Quote
  #17  
Old 09-16-2007, 04:56 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Securing images

If your dropshipper doesn't have https setup then no, you can't call them securely
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #18  
Old 09-16-2007, 05:03 PM
  vahidnia's Avatar 
vahidnia vahidnia is offline
 

Advanced Member
  
Join Date: Aug 2007
Location: USA
Posts: 48
 

Default Re: Securing images

If they had https set up. what it would require to call the images securely is to replace the http in the url with https is that correct?
__________________
X-cart gold 4.4.3
Unix
Reply With Quote
  #19  
Old 09-16-2007, 05:08 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Securing images

Correct
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #20  
Old 09-17-2007, 10:09 AM
 
OpheliaPayne OpheliaPayne is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 130
 

Default Re: Securing images

Quote:
Originally Posted by OpheliaPayne
I can not put the topsite images into my images/ directory.. so what do I do with those?

Any ideas on this?
__________________
xCart 4.6.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020