Results 1 to 10 of 18

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Help making images secure in ssl mode

    I have recently made changes to my site and is unfortunatly now throwing up a display secure and non-secure message at checkout or log in sections. I was just wondering how i can make images secure to stop this message from appearing.

    The three main images that i need to edit is in the top right hand corner of the banner, - shopping basket / view basket / checkout

    these can be viewed at www.bodykitsonline.co.uk any help would be greatly appreciated.

    Thanks
    Ben
    Last edited by ben harry; 27 Sep 2009 at 02:27 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help making images secure in ssl mode

    Make your links to them "relative"
    change these & any others
    Code:
    <img src="http://www.bodykitsonline.co.uk/includes/templates/custom/images/cart_top.jpg"
    <img src="http://www.bodykitsonline.co.uk/includes/templates/custom/images/button_view.jpg"
    <img src="http://www.bodykitsonline.co.uk/includes/templates/custom/images/button_checkout.jpg"
    To:
    Code:
    <img src="includes/templates/custom/images/cart_top.jpg"
    <img src="includes/templates/custom/images/button_view.jpg"
    <img src="includes/templates/custom/images/button_checkout.jpg"

  3. #3
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Re: Help making images secure in ssl mode

    Many Thanks for your reply. I have it working correctly now

  4. #4
    Join Date
    May 2006
    Location
    Virginia U.S
    Posts
    173
    Plugin Contributions
    3

    Default Re: Help making images secure in ssl mode

    Kobra,

    I'm using a shared SSL and am currently using
    <img src="https://***.***.com/*****/Store/images/shipping.jpg" align="baseline" />

    "*** hidden for security"

    Is this ok?

    This method won't jeopardize my sites security will it?

    The image is located in my define_main_page.php file.

    I tried using your method but because I am using a shared SSL it would not work the way you suggested.

    Thanks
    How can there be nothing? Nothing is something!

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Help making images secure in ssl mode

    Quote Originally Posted by beasleybub
    The image is located in my define_main_page.php file.
    As main_page.php ONLY shows up on your main page and not on any secure pages it will not have any affect

  6. #6
    Join Date
    May 2006
    Location
    Virginia U.S
    Posts
    173
    Plugin Contributions
    3

    Default Re: Help making images secure in ssl mode

    Kobra,

    My define_main_page.php actually does show up as an https:// page. ( Let me explain )

    I have the Contest System add on installed and when you click on the enter contest link and you are not logged in it asks you to login or create an account. ( I added that functionality to the contest add on. )

    If you then log in it takes you back to the main page and it still shows as https:// thus no image in the define_main_page.php. Why it reverts my main page to https:// I can't tell you but in my case it does.

    I also have the login box add on installed as well and if you log in from there it also takes you back to the main page as https://

    Could you please answer my previous question?

    Thank you
    How can there be nothing? Nothing is something!

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Help making images secure in ssl mode

    Quote Originally Posted by beasleybub View Post
    I tried using your method but because I am using a shared SSL it would not work the way you suggested.
    What do you mean by "it would not work the way you suggested"?
    What do you mean by "it would not work"?

    Using a relative path should work just fine, provided your settings in your configure.php file are correct (namely HTTP_SERVER, HTTPS_SERVER, DIR_WS_CATALOG, DIR_WS_HTTPS_CATALOG).
    It's the same with product images: relative paths are used, because that way the SSL and non-SSL pages will still show them correctly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    May 2006
    Location
    Virginia U.S
    Posts
    173
    Plugin Contributions
    3

    Default Re: Help making images secure in ssl mode

    Quote Originally Posted by DrByte View Post
    What do you mean by "it would not work the way you suggested"?
    What do you mean by "it would not work"?
    Quote Originally Posted by kobra View Post
    Make your links to them "relative"
    change these & any others
    Code:
    <img src="http://www.bodykitsonline.co.uk/includes/templates/custom/images/cart_top.jpg"
    <img src="http://www.bodykitsonline.co.uk/includes/templates/custom/images/button_view.jpg"
    <img src="http://www.bodykitsonline.co.uk/includes/templates/custom/images/button_checkout.jpg"
    To:
    Code:
    <img src="includes/templates/custom/images/cart_top.jpg"
    <img src="includes/templates/custom/images/button_view.jpg"
    <img src="includes/templates/custom/images/button_checkout.jpg"
    I made my image links relitave and they would not show up because of the SSL. My main page gets opened as (https:) after you either use the login box add on or the contest add on. I believe the problem arrises because I am using a shared SSL certificate which has a diferent URL than the store in the config file.

    define('HTTP_SERVER', 'http://MyDomainName.com');
    define('HTTPS_SERVER', 'https://Name.Server.com/NameServerUsername');

    define('DIR_WS_CATALOG', '/CelebrityStore/');
    define('DIR_WS_HTTPS_CATALOG', '/CelebrityStore/');

    Sorry, But I do not want to post my servers information in a public forum.
    Last edited by beasleybub; 30 Sep 2009 at 06:50 PM.
    How can there be nothing? Nothing is something!

 

 

Similar Threads

  1. HELP! My product images disappear in secure mode
    By tinstew in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 25 Jun 2009, 06:05 PM
  2. Making the product pages secure with SSL
    By RichardWard in forum Basic Configuration
    Replies: 1
    Last Post: 5 Dec 2008, 09:37 AM
  3. Replies: 8
    Last Post: 6 Jul 2008, 07:36 AM
  4. Replies: 2
    Last Post: 7 Jun 2006, 02:00 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