Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images and SSL


Sibemom2002

Recommended Posts

Hi, All! I'm new to this forum and new to osCommerce, and somewhat new to php, but not new to programming.

 

I know at first glance the topic looks like "here we go again with a newbie", but I've searched the forum, I've looked at the knowledge base, and I've even been to oscdox's forum and searched. I'm stumped!

 

I have installed SSL after customizing (via a template, via contributions, and a little creativity of my own) my MS2.2. The SSL is https://www.mydomain.com, and the original was http://www.mydomain.com. We are not live, yet, so it's not critical (we are on a time schedule, however). I beat my head against the wall all weekend on this one... Hope someone can help? :sweating:

 

Here's the problem: I have a Photo Shop header image that is "sliced" and is made up of 26 different gifs (some links and some not). Of course, after the SSL was installed (it functions perfectly), I edited the config.php files as appropriate. I started getting the "secure and non-secure items" message. I found the fix using a php echo of "tep_images", but when I do that, it does NOT line up the images in precisely the right places. There are spaces in-between the images - on all sides. Sort of like cellpadding in a table. So, I added the images' heights and widths to the statement - no improvement.

 

I decided to "live" with the pop-up messages (at least for the time being), and put the images back the way they were (simple html hrefs). Now, no images display on secure pages.

 

I'm thinking that I should add a "hack" to the config.php file to point the images through the secure server, as the tep_images point to http:// by default, correct?

 

Not sure if I'm on the right track, but my head hurts, now, from *Bang Head Here Syndrome*. :(

 

Any help would be much apprecaited!

 

Here's the site (still under development): http://www.hometownscentsations.com/catalog

 

Best Regards,

 

Tami

 

Sibemom2002

Tami Jones

Sibemom2002

Link to comment
Share on other sites

Does your ssl setup work by having seperate httpdocs and httpsdocs folders? If so, you'll need to drop a duplicate of your images folder into the httpsdocs folder.

 

The other workaround is to stop using the splicing, make it one image and turn it into an image map.

 

You can always hard code the images pathway in your includes/configure.php file to call all images from the https pathway (which will slow things down), or, a much more simple solution, you could just hardcode that one image to https://yourdomain.com/images/image.gif in your header file.

 

If you are putting the whole of your website under ssl I would recommend against that - it will slow down the delivery of every page.

 

Vger

Link to comment
Share on other sites

Does your ssl setup work by having seperate httpdocs and httpsdocs folders?  If so, you'll need to drop a duplicate of your images folder into the httpsdocs folder.

 

Well, ok, maybe I am a newbie. I don't seem to see a httpdocs folder. Where should it be located? I haven't deleted any files or folders (I know better than that ;) ). Hmmm... Maybe that's the problem all together? My hosting provider installed the SSL... Does that folder have something to do with the SSL install, or is it a typical osCommerce folder?

 

The other workaround is to stop using the splicing, make it one image and turn it into an image map.

 

Yes, I could do that, but I'd prefer not to. One of the criteria is for this site to load quickly. Even if I set the image to one big progressive jpeg, the file will be much larger (and slower) to load than the individual gifs. Also, progressive jpegs require more RAM for viewing and are not supported by some browsers.

 

You can always hard code the images pathway in your includes/configure.php file to call all images from the https pathway (which will slow things down), or, a much more simple solution, you could just hardcode that one image to https://yourdomain.com/images/image.gif in your header file.

 

So I guess my assumption is correct: all images are called from the http://../catalog/images path by default. Again, I'd rather not hard code ALL of the images, and I'd rather not have just one image.

 

If you are putting the whole of your website under ssl I would recommend against that - it will slow down the delivery of every page.

 

Nope, I wasn't planning on it. I've seen other people do that and it really effects anyone on a 56k dial-up! SSSLLLOOOWWW!!!

 

Vger

 

Just curious (on a slightly off topic note) - is your id a reference to Star Trek? Can you tell I'm a SciFi buff?

 

Anyway, thanks for replying and taking the time for me(especially as late as it is in the UK)!

 

Best Regards,

 

Tami

Tami Jones

Sibemom2002

Link to comment
Share on other sites

Well, ok, maybe I am a newbie. I don't seem to see a httpdocs folder. Where should it be located? I haven't deleted any files or folders (I know better than that ;) ). Hmmm... Maybe that's the problem all together? My hosting provider installed the SSL... Does that folder have something to do with the SSL install, or is it a typical osCommerce folder?

 

Well, I think I answered my own question here... I searched on httpdocs in the forums and it appears that the folder you referred to is typical on certain platforms. The server I am running on's base folder is "public_html", not "httpdocs". By the way, this is not a shared SSL - which I understand is VERY difficult to get working with osCommerce. Glad I decided to go with my own certificate! ;) Anyway, I really would prefer to NOT have one large image (but I'm considering it), nor make all my image come through the https - by changing the path in configure.php for images to https://...

 

Any other suggestions? Gee, I can't be the only person who's experienced this... Can I?

 

Thanks in advance!

 

Best Regards,

 

Tami

Tami Jones

Sibemom2002

Link to comment
Share on other sites

shared ssl is very easy to get working with osCommerce, you just have to make sure cookies is off (which is default osCommerce)

do you have the images in place to be seen without https? i dont see them, only the layout

Link to comment
Share on other sites

shared ssl is very easy to get working with osCommerce, you just have to make sure cookies is off (which is default osCommerce)

do you have the images in place to be seen without https?  i dont see them, only the layout

 

Hi, Mibble! Thanks for responding!

 

I guess I wasn't clear, sorry. This was *not* a shared SSL install. So, I am even more puzzled as to why I'm having a problem. :(

 

Well, I don't have all the images in place (yet), am trying to get the bugs worked out of getting the header to display properly. Is the header not displaying for you while you are outside of the secure area (ie: index.php)?

 

Thanks,

 

Tami

Tami Jones

Sibemom2002

Link to comment
Share on other sites

Hi, Mibble! Thanks for responding!

 

I guess I wasn't clear, sorry. This was *not* a shared SSL install. So, I am even more puzzled as to why I'm having a problem. :(

 

Well, I don't have all the images in place (yet), am trying to get the bugs worked out of getting the header to display properly. Is the header not displaying for you while you are outside of the secure area (ie: index.php)?

 

Thanks,

 

Tami

I see. It's known problem. You must edit all 3! configure.php files at:

/catalog/includes

/admin/includes/

/admin/includes/local

and set up proper pathes to https

 

Also please edit link to PayPal logo. It must be https://www.paypal.com/en_US/i/icon/verification_seal.gif instead http

 

It helps

Link to comment
Share on other sites

Hi, All!

 

I just wanted to post to share how I got the sliced image to display.

 

I had to hard code the DIR_WS_IMAGES in the configure.php to point to https://

 

Thanks for all your advise.

 

Tami

Tami Jones

Sibemom2002

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...