Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

header background image


signs

Recommended Posts

Posted

I have been working on my site design and decided to change the header and use a background image instead of just a color. It worked great...until I tried out the cart features, logging in, etc. Now I am getting a warning about "this page contains both secure and unsecure..." and the only thing I can figure is that it's the background image.

 

When I changed the code in the header.php, I put an absolute path for the background image because otherwise just putting background="image.gif" wasn't pulling it up. Does anybody know how to get around this and have the image display securely?

 

TIA :D

Jeri

Posted

where did u put the image when you ftp'd it to the site?

Posted
where did u put the image when you ftp'd it to the site?

 

I put it in the same folder (images) with the oscommerce.gif which I have replaced with my own image and it works just fine. It was all working fine with my logo named "oscommerce.gif" until I added that background image file to the header. Does it make any difference that it's a jpg and not a .gif?

 

Jeri

Posted
I have been working on my site design and decided to change the header and use a background image instead of just a color. It worked great...until I tried out the cart features, logging in, etc. Now I am getting a warning about "this page contains both secure and unsecure..." and the only thing I can figure is that it's the background image.

 

When I changed the code in the header.php, I put an absolute path for the background image because otherwise just putting background="image.gif" wasn't pulling it up. Does anybody know how to get around this and have the image display securely?

 

TIA :D

Jeri

 

 

using absolute paths including http:// will always get you that message.

Do not use them. Use style tag style="background-image: url(images/xxxx.gif);"

Treasurer MFC

Posted

Why not use

 

<img src="<?php echo tep_image(DIR_WS_IMAGES . mycustomimage.gif ?>">

 

Put mycustomimage.gif in the catalog/images folder

 

This is the same technique used in osCommerce, which will eliminate all problems with SSL. :thumbsup:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...