Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Aug 2008
    Posts
    40
    Plugin Contributions
    0

    Default disable footer for secure ssl pages

    As the title says, I'm trying to disable the entire footer for secure https pages. So far what I've tried alot of different things I thought would work and right now I'm still working with

    <?php
    if ($request_type == 'SSL') {
    $flag_disable_footer = true;
    }
    else {
    $flag_disable_footer = false;
    }
    ?>

    Obviously this is not right as it is not working. Can anyone point me in the right direction?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: disable footer for secure ssl pages

    That should be the right logic. Maybe you've put it in the wrong place?
    .

    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.

  3. #3
    Join Date
    Aug 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: disable footer for secure ssl pages

    Dr Byte,

    I put the code at the start of the tpl_footer.php in the common folder of my override directory as follows:

    HTML Code:
    <?php
    /**
     * Common Template - tpl_footer.php
     *
     * this file can be copied to /templates/your_template_dir/pagename<br />
     * example: to override the privacy page<br />
     * make a directory /templates/my_template/privacy<br />
     * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_footer.php<br />
     * to override the global settings and turn off the footer un-comment the following line:<br />
     * <br />
     * $flag_disable_footer = true;<br />
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_footer.php 3183 2006-03-14 07:58:59Z birdbrain $
     */
    require(DIR_WS_MODULES . zen_get_module_directory('footer.php'));
    ?>
    <?php 
    if ($request_type == 'SSL') {
    $flag_disable_footer = true;
    } 
    else {
    $flag_disable_footer = false;
    }
    ?> 
    <!--bof-navigation display -->

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: disable footer for secure ssl pages

    If that's all that's in your file, try putting it *above* the "require" statement ... otherwise it's of no effect.
    .

    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.

  5. #5
    Join Date
    Aug 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: disable footer for secure ssl pages

    Hey DrByte, thanks again but this did not work for me. I tried placing the code above the initial php tags, down just above the require statements with and without the php tags and a few other ways. I'm not sure what else to try honestly, it either shows on both or doesn't show on both. This is what I'm currently working with but no go.

    PHP Code:
    <?php
    /**
     * Common Template - tpl_footer.php
     *
     * this file can be copied to /templates/your_template_dir/pagename<br />
     * example: to override the privacy page<br />
     * make a directory /templates/my_template/privacy<br />
     * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_footer.php<br />
     * to override the global settings and turn off the footer un-comment the following line:<br />
     * <br />
     * $flag_disable_footer = true;<br />
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_footer.php 3183 2006-03-14 07:58:59Z birdbrain $
     */
    <?php
    if ($request_type == 'SSL') {
    $flag_disable_footer true;

    else {
    $flag_disable_footer false;
    }
    ?>
    require(DIR_WS_MODULES . zen_get_module_directory('footer.php'));
    ?>

    <?php
    if (!$flag_disable_footer) {
    ?>

    <!--bof-navigation display -->
    <div id="navSuppWrapper">
    <div id="navSupp">
    <ul>
    <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE$_SERVER['REMOTE_ADDR'])))) { ?>
    <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
    <?php ?>
    </ul>
    </div>
    </div>
    <!--eof-navigation display -->

    <!--bof-banner #5 display -->
    <?php
      
    if (SHOW_BANNERS_GROUP_SET5 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET5)) {
        if (
    $banner->RecordCount() > 0) {
    ?>
    <div id="bannerFive" class="banners"><?php echo zen_display_banner('static'$banner); ?></div>
    <?php
        
    }
      }
    ?>
    <!--eof-banner #5 display -->

    <!--bof- site copyright display -->
    <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY?></div>
    <!--eof- site copyright display -->

    <?php
    // flag_disable_footer
    ?>

  6. #6
    Join Date
    Aug 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: disable footer for secure ssl pages

    DrB or anyone some help please?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: disable footer for secure ssl pages

    You're very close. The code you posted above contains syntax errors because you're opening <?php tags while already inside an open <?php tag.
    Maybe you just need to remove the <?php and ?> that you wrapped around that code you added?
    .

    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
    Aug 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: disable footer for secure ssl pages

    I still need help with this if anyone has any ideas? DrB's last idea did not work either so I guess my code is wrong.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: disable footer for secure ssl pages

    What do you mean "DrB's last idea did not work either"?
    What exactly have you changed?
    .

    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.

  10. #10
    Join Date
    Aug 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: disable footer for secure ssl pages

    I tried removing the extra php tags, but still the code did not work.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Disable Footer Banner all pages except Home
    By kburner in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 27 Dec 2010, 08:39 PM
  2. Seperate footer for SSL pages
    By ahall13 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Sep 2009, 07:19 PM
  3. Checkout pages not secure - SSL installed
    By Crunch in forum General Questions
    Replies: 0
    Last Post: 7 Jul 2009, 04:36 AM
  4. Replies: 2
    Last Post: 7 Jun 2006, 02:00 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