Thread: Missing Footer

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Dec 2005
    Posts
    42
    Plugin Contributions
    0

    Default Re: Missing Footer

    Starting at line 23:

    $header_template = 'tpl_header.php';
    $footer_template = 'tpl_footer.php';
    $left_column_file = 'column_left.php';
    $right_column_file = 'column_right.php';
    $body_id = str_replace('_', '', $_GET['main_page']);

    // this file can be copied to /templates/your_template_dir/pagename
    // example: to override the privacy page
    // make a directory /templates/my_template/privacy
    // copy /templates/templates_defaults/common/tpl_main_page.php to /templates/my_template/privacy/tpl_main_page.php
    // to override the global settings and turn off columns un-comment the lines below for the correct column to turn off
    // to turn off the header and/or footer uncomment the lines below
    // Note: header can be disabled in the tpl_header.php
    // Note: footer can be disabled in the tpl_footer.php

    // $flag_disable_header = true;
    // $flag_disable_left = true;
    // $flag_disable_right = true;
    // $flag_disable_footer = true;

    ?>
    <body id="<?php echo $body_id; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
    <?php require(DIR_WS_MODULES . 'header.php'); ?>
    <table border="0" cellspacing="0" cellpadding="0" class="main_page">
    <?php
    if ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <tr>
    <td align="center" colspan="3"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div></td>
    </tr>
    <?php
    }
    }
    ?>
    <tr>
    <?php
    if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
    // global disable of column_left
    $flag_disable_left = true;
    }
    if (!$flag_disable_left) {
    ?>

    <td valign="top" class="column_left"><table border="0" width="<?php echo COLUMN_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0" class="column_left"><tr><td>

    <?php require(DIR_WS_MODULES . 'column_left.php'); ?>
    </td></tr></table></td>
    <?php
    }
    ?>
    <td valign="top" class="center_column" width="100%"><?php require($body_code); ?></td>
    <?php
    if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
    // global disable of column_right
    $flag_disable_right = true;
    }
    if (!$flag_disable_right) {
    ?>
    <td valign="top" class="column_right"><table border="0" width="<?php echo COLUMN_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0" class="column_right"><tr><td>

    <?php require(DIR_WS_MODULES . 'column_right.php'); ?>
    </td></tr></table></td>
    <?php
    }
    ?>
    </tr>
    <?php
    if ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
    if ($banner->RecordCount() > 0) {
    ?>
    <tr>
    <td align="center" colspan="3"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div> </td>
    </tr>
    <?php
    }
    }
    ?>
    </table>
    <?php require(DIR_WS_MODULES . 'footer.php'); ?>
    </body>

  2. #12
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Missing Footer

    Can you just make sure that you have the footer.php at the same place as header.php?
    Thanks

  3. #13
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Missing Footer

    You are using an out of date template file. The header and footer modules have been removed for the tpl_main_page.php

    Compare your file to the template_default/common/tpl_main_page.php in v1.3.0.2

  4. #14
    Join Date
    Dec 2005
    Posts
    42
    Plugin Contributions
    0

    Default Re: Missing Footer

    It is, that is what is sooo weird.

  5. #15
    Join Date
    Dec 2005
    Posts
    42
    Plugin Contributions
    0

    Default Re: Missing Footer

    Kim, that is very well possible. Now my header is set up in the plain header.php but is that supposed to be part of the tpl_main_page.php? If so, do I just out right delete the header.php and footer.php and maybe that will solve my problem??

  6. #16
    Join Date
    Dec 2005
    Posts
    42
    Plugin Contributions
    0

    Default Re: Missing Footer

    Oh yeah, that totally changed things. Now I just gotta go lookin' how to customize it all again, lol. Thanks!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Footer missing
    By irishshopper in forum Basic Configuration
    Replies: 3
    Last Post: 28 Dec 2010, 01:25 PM
  2. Missing footer
    By bear in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 22 Oct 2010, 04:48 PM
  3. Footer Missing
    By seunthegreat in forum General Questions
    Replies: 13
    Last Post: 31 May 2010, 03:50 PM
  4. Missing footer
    By starfox in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Jul 2009, 04:57 AM
  5. Footer Missing
    By kaydeem in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Jun 2009, 11:32 PM

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