Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2008
    Location
    QLD - Aussie
    Posts
    192
    Plugin Contributions
    0

    Default Blank side box & SSL Unauthenticated content

    Hi
    I have a new Blank side box with facebook/twitter links, and since installing, have a dreaded SSL Unauthenticated content problem on my checkout page

    Have been looking through the posts and 'assume' that my problem is due to these new links? (but I may be wrong)

    Would the best remedy be to 'switch off' the sideboxes at the check out phase? If this is what I need to do, could someone please guide me? Or any other advice would be great.

    site is http://www.partykitnkaboodle.com.au

    Many thanks

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

    Default Re: Blank side box & SSL Unauthenticated content

    You could setup the sidebox to not display on secure pages by testing for the value of:
    $request_type

    where the values are either:
    SSL
    NONSSL

    Look at the various sidebox modules and see how many of them have both a $show_boxsomethingname variable and an IF statement that uses that variable ...

    You could setup your own for your sidebox in a similar fashion ...
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Mar 2008
    Location
    QLD - Aussie
    Posts
    192
    Plugin Contributions
    0

    Default Re: Blank side box & SSL Unauthenticated content

    Ajeh,
    Thanks for your reply :)

    I'm afraid that I'm a bit lost (sorry)

    Would you mind very much explaining in a little more detail?

    (BTW the sidebox is the 'editable sidebox mod' by Kuroi)

    thank you so much...still learning

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

    Default Re: Blank side box & SSL Unauthenticated content

    Change the code to include:
    Code:
      // test if box should display
      $show_editable_sidebox = true;
      
      // bof: do not show on secure pages
      if ($request_type == 'SSL') {
        $show_editable_sidebox = false;
      }
      // eof: do not show on secure pages
      
      $define_sidebox = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', DEFINE_EDITABLE_SIDEBOX_NAME, 'false');
    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: v1.5.5]
    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!

  5. #5
    Join Date
    Mar 2008
    Location
    QLD - Aussie
    Posts
    192
    Plugin Contributions
    0

    Default Re: Blank side box & SSL Unauthenticated content

    you are brilliant!!! It worked, it worked

    Many thanks

    You guys are the best!!!

  6. #6
    Join Date
    Apr 2008
    Location
    Covington, Washington, United States
    Posts
    205
    Plugin Contributions
    1

    Default Re: Blank side box & SSL Unauthenticated content

    Same problem, different sidebox.. I am using another custom sidebox (help center live sidebox) and can't seem to figure out how to implement the above. I looked at kuroi's contribution and files to see if I could edit the code accordingly but unfortunately I am not great with php... Any guidance? Files for this module include:

    /includes/templates/TEMPLATE_NAME/sideboxes/tpl_livehelp.php :
    PHP Code:
    <?php

      $content 
    '<!-- BEGIN Help Center Live Code, Copyright (c) 2005 Help Center Live. All Rights Reserved -->
    <div id="div_initiate" style="position:absolute; z-index:1; top: 40%; left:40%; visibility: hidden;"><a href="javascript:Live.initiate_accept();"><img src="/support/livechat/templates/Bliss/images/initiate.gif" border="0"></a><br><a href="javascript:Live.initiate_decline();"><img src=/support/livechat/templates/Bliss/images/initiate_close.gif" border="0"></a></div>
    <script type="text/javascript" language="javascript" src="/support/livechat/class/js/include.php?live&cobrowse"></script>
    <!-- END Help Center Live Code, Copyright (c) 2005 Help Center Live. All Rights Reserved -->
    '
    ;

    ?>
    /includes/modules/sideboxes/livehelp.php :
    PHP Code:
    <?php

    require($template->get_template_dir('tpl_livehelp.php',DIR_WS_TEMPLATE$current_page_base,'sideboxes'). '/tpl_livehelp.php');
          
    $title =  '<label>' BOX_HEADING_LIVEHELP '</label>';
          
    $title_link false;
          require(
    $template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
    ?>
    Added the following to /includes/languages/english.php :

    // Live Help Center
    define('BOX_HEADING_LIVEHELP', 'Support Center');

    I am using ZC 1.3.8a

  7. #7
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: Blank side box & SSL Unauthenticated content

    Quote Originally Posted by Ajeh View Post
    Change the code to include:
    Code:
      // test if box should display
      $show_editable_sidebox = true;
      
      // bof: do not show on secure pages
      if ($request_type == 'SSL') {
        $show_editable_sidebox = false;
      }
      // eof: do not show on secure pages
      
      $define_sidebox = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', DEFINE_EDITABLE_SIDEBOX_NAME, 'false');
    What file should this be added to? I need to prevent the facebook fan thing from showing on SSL pages..

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

    Default Re: Blank side box & SSL Unauthenticated content

    Let's use an existing sidebox as an example ...

    Look at the currencies sidebox ... it is designed to not show on pages that start with:
    checkout

    Look at the file:
    /includes/modules/sideboxes/currencies.php

    And you see the code:
    Code:
      // don't display on checkout page:
      if (substr($current_page, 0, 8) != 'checkout') {
        $show_currencies= true;
      }
    If we wanted that to be controlled based on secure pages, we would change that IF to read:
    Code:
      // don't display on checkout page:
      if (substr($current_page, 0, 8) != 'checkout') {
    to read:
    Code:
      if ($request_type == 'SSL') {
        $show_currencies= false;
      }
    So on secure pages, the variable $show_currencies is set to false ...

    Then, if you look at the rest of the code, it is surrounded by an IF that reads:
    Code:
      if ($show_currencies == true) {
    // bunch of code goes here
    
      }
    The idea is to follow a pattern to determine when to show the sidebox code based on some type of condition ...

    Now if I wanted to do this in a template and override file, I would copy the two files:
    /includes/modules/sideboxes/currencies.php
    /includes/templates/template_dir/sideboxes/tpl_currencies.php

    to my templates and overrides directories:
    /includes/modules/sideboxes/your_template_dir/currencies.php
    /includes/templates/your_template_dir/sideboxes/tpl_currencies.php

    The reason I copy both files is that sometimes I need to change both and sometimes I just need to change one of the file pair ... but since it is a pair of files and I don't want to confuse myself or have updates come in later that might "overwrite" a working pair of files, I copy both files as if they were both changed ...

    This is a safety I like to use, so whether you follow it or not is up to you ...

    But for understanding the sideboxes better, study the different sideboxes ...

    Most all of them have some kind of condition on them for when they should or should not show ...

    Those that do not have a condition set on them for controlling when they should or should not show, can be customized ...

    Again, the variable used for the:
    $show_something

    was used with the same name as the sidebox for keeping the code "more understandable" and it made more sense for the variable to be, for example:
    $show_currencies

    in the currencies sidebox currencies.php than to call it:
    $xyzabc

    Remember, you are looking for "patterns" when it comes to coding as most code, and Zen Cart is a good example of it, uses patterns to make things much more logical and clearer both to you as well as to us, the developers of the code ...
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. Blank Side box.... content
    By macc88 in forum Basic Configuration
    Replies: 5
    Last Post: 14 Nov 2009, 08:00 PM
  2. SSL Trouble...Unauthenticated content
    By v0903856 in forum Basic Configuration
    Replies: 7
    Last Post: 13 Sep 2009, 09:31 PM
  3. SSL Issue: warning: "contains unauthenticated content" in FF
    By edmore in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Aug 2009, 10:40 AM
  4. Process for troubleshooting SSL unauthenticated content issues?
    By Mark Kidd in forum General Questions
    Replies: 9
    Last Post: 8 Jan 2009, 03:09 AM
  5. Ssl Problem - get "warning: contains unauthenticated content"
    By StrictlyAutoParts in forum Basic Configuration
    Replies: 14
    Last Post: 4 Feb 2008, 06:13 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR