Thread: IE and SSL Lock

Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2006
    Posts
    49
    Plugin Contributions
    0

    IE and SSL Lock

    I've been getting this question in internet explorer saying: "This page contains both secure and none secure items. Do you want to display the nonsecure items? " . If I click no, then all of my images go away. If I click yes, then I will have all of my images, but the security lock won't be displayed. Everything works fine in firefox (of course!), IE as usaual is causing some problems. Anybody have any ideas?

  2. #2
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: IE and SSL Lock

    Are you manually linking to any images (within your code)?

    For example, have you editing any files and inserted code such as...

    Code:
    <img src="http://www.mysite.com/image.jpg" />

  3. #3
    Join Date
    Jul 2006
    Posts
    49
    Plugin Contributions
    0

    Default Re: IE and SSL Lock

    Thank you for your reply. Actually, except for the products, that is the way I have done all of my images. Is that bad? What should I have done instead?

  4. #4
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: IE and SSL Lock

    Quote Originally Posted by praiseandplay
    Thank you for your reply. Actually, except for the products, that is the way I have done all of my images. Is that bad? What should I have done instead?
    If you are linking to images with http:// (not secure) instead of https:// (secure)on secure pages you will get errors.

    You'll need to change the links of your images to https:// (if they are hosted on the same server).

    Post a link to your site here and I'll take a look! :)

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: IE and SSL Lock

    The better way is to use relative links where you use neither the http nor the https ...

    Posting an URL to your site might help people in determining the best way to acheive this for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jul 2006
    Posts
    49
    Plugin Contributions
    0

    Default Re: IE and SSL Lock

    The website can be viewed at http://www.praiseandplay.com/catalog

    Thanks again for the help.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: IE and SSL Lock

    You have at least 3 images here causing issues ...

    If you look via FireFox, you can click on the gold lock and then the media tab to see what images are called via http://

    How are you calling these images now?

    You want to use the function zen_image for images on your site ...

    If the images come from another site, you either need to call from their secure site or turn off the image on secure pages ...

    A search via the Tools ... Developer's Tool Kit ... on the function name:
    zen_image

    Can help show you a multitude of examples on how to use that function for various areas of the site ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Jul 2006
    Posts
    49
    Plugin Contributions
    0

    Default Re: IE and SSL Lock

    I am currenly using http://www.praiseandplay.com/images/image.jpg

    I have another image folder on the root.

    I am currently moving the images in the root folder to the zencart images folder.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: IE and SSL Lock

    I think you are not understanding the issue ...

    The pages change from secure to non-secure as you move through the site ...

    To manage this, you can use the built in functions for Zen Cart ...

    For example to pull an image from the template images directory:
    /includes/templates/your_template_dir/images

    You would use:
    PHP Code:
    <?php echo zen_image(DIR_WS_TEMPLATE_IMAGES 'filename.ext''alt tag here'); ?>
    To pull an image from the /images directory you would use:
    PHP Code:
    <?php echo zen_image(DIR_WS_IMAGES 'filename.ext''alt tag here'); ?>
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Jul 2006
    Posts
    49
    Plugin Contributions
    0

    Default Re: IE and SSL Lock

    Actually what I ended up doing was just using an internal link. For example: "images/image.jpg" instead of "http://www.praiseandplay.com/catalog/images/image.jpg", the php way of doing it seemed cool, but my site just went live today, and I had problems with the sizing of the images using php to display them.

 

 

Similar Threads

  1. SSL lock
    By melm81 in forum General Questions
    Replies: 9
    Last Post: 11 Jul 2007, 01:42 AM
  2. SSL Broken Lock
    By brotherhud in forum General Questions
    Replies: 6
    Last Post: 19 Mar 2007, 08:32 PM
  3. SSL Broken Lock
    By zbargain in forum General Questions
    Replies: 1
    Last Post: 2 Jan 2007, 08:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg