+ Reply to Thread
Results 1 to 6 of 6

Thread: This page contains both secure and nonsecure..

  1. #1
    Client
    Join Date
    Jul 2007
    Posts
    7
    Squirrelcart version
    not specified!

    This page contains both secure and nonsecure..

    Hi,

    I have been trying to solve this issue but can't seem to find any answers.

    I have put up www.uscoffeedepot.com and when IE users try to buy the error message appears on every 'https' URL. (This page contains both secure and nonsecure content. Do you want to display nonsecure items?)

    Any help would be greatly appreciated.

    Thank you,
    Arby Leon

  2. #2
    Client coastalrugs's Avatar
    Join Date
    Dec 2007
    Posts
    171
    Squirrelcart version
    v3.2.0
    I would guess that you have a hard-coded path to an image.

    Look in your theme's style_main.css.php file for this defintion:
    Code:
    .nav_block_title {
        background: url(http://www.uscoffeedepot.com/squirre...lock_title.jpg) top left no-repeat;
        /*border-bottom: gray solid 1px;*/
        padding: 3px 3px 3px 6px;
        margin-bottom: 10px;
        font-size: 16px;
    }
    This was pulled from a 'secure' page. Notice that the image is served from an unsecure http address. Fix this in your css file, and the warning should disappear. I forget the actual variable, but should be something like $SC_DYNROOT; check elsewhere in the css file for other examples of how to code a link to the image properly.

    *There may be other instances later in the checkout process. I just surfed to your main page and forced a secure https connection to see what was awry there.

  3. #3
    Client
    Join Date
    Jul 2007
    Posts
    7
    Squirrelcart version
    not specified!
    coastalrugs,

    Thanks for checking it out. I can't believe I actually missed that. While I didn't find the variable I just used an If statement. It took care of it for now

    Do you know if there is any documentation on the variables?

    Thank you,
    Arby Leon

  4. #4
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,719
    Squirrelcart version
    v3.3.7
    If you are putting an image in your stylesheet that is in your custom theme folder, you can do this:

    PHP Code:
    .my_class {
        background: url(<?php print sc_img('my_img','dyn')?>) no-repeat;
    }
    So, if you have an image named "my_img.jpg" in your theme folder and you load http://www.example.com/store.php, that would output this CSS:
    PHP Code:
    .my_class {
        
    backgroundurl(http://www.example.com/squirrelcart/themes/your_theme/my_img.jpg) no-repeat;

    and this for https://www.example.com/store.php:
    PHP Code:
    .my_class {
        
    background:  url(https://www.example.com/squirrelcart/themes/your_theme/my_img.jpg)  no-repeat;


  5. #5
    Client
    Join Date
    Jul 2007
    Posts
    7
    Squirrelcart version
    not specified!
    Thanks Jamie! I was hoping to hear from you

  6. #6
    Client
    Join Date
    Jun 2005
    Location
    UK
    Posts
    58
    Squirrelcart version
    v3.1.0
    when I want external http content to disappear on https pages I enclose the external content like this:

    PHP Code:
    <?php if (!$_SERVER['HTTPS']){ ?>
    <!-- external content here -->
    <?php ?>
    I use this code to display social bookmarking widgets only on http pages and not on https pages.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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