Forums / Templates, Stylesheets, Page Layout / [Help] I got problems about the "Header"

[Help] I got problems about the "Header"

Locked

Started by tanky on 22 May 2006, 10:06 AM · Views: 1,679

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
22 May 2006, 10:06 AM
#1
tanky avatar

tanky

New Zenner

Join Date:
Mar 2006
Posts:
28
Plugin Contributions:
0

[Help] I got problems about the "Header"

Hi all,

I am the first time using Zencart and I read through (I though I did) the articles and FAQs about customization of Zencart and start doing my own.

Everything was fine. But... unfortunately I found that the privacy page is missing the Header (including header image...etc) i.e. the page just showing the content, left/right boxes but header part

This happen only on the "privacy" page but none of others. Is there any page or code I edited wrongly?

Please give me some suggestions, please, I was becoming chaos... since I try to figure out the problems for days... sorry for my poor english. Thanks.

22 May 2006, 11:00 AM
#2
tanky avatar

tanky

New Zenner

Join Date:
Mar 2006
Posts:
28
Plugin Contributions:
0

Re: [Help] I got problems about the "Header"

I just found that I have a folder called "privacy" in the "my_custom" folder the code are as follow :

<?php $flag_disable_header = true; ?>
<table class="centershop" border="0" cellspacing="0" cellpadding="0">
<?php if (!$flag_disable_header) { ?> <?php if ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) { if ($banner->RecordCount() > 0) { ?>
  <tr>
    <td align="center"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div></td>
  </tr>
<?php } } ?>
  <tr><td>
    <table border="0" cellspacing="0" cellpadding="0" class="headerNavigation" align="center">
      <tr class="headerNavigation">
        <td align="left" valign="top" width="33%" class="headerNavigation">
          <a href="<?php echo zen_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a> | 
<?php if ($_SESSION['customer_id']) { ?>
          <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> | 
          <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
<?php } else { if (STORE_STATUS == '0') { ?>
          <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>
<?php } } ?>
        </td>
        <td align="center" width="25%"><?php require(DIR_WS_MODULES . 'sideboxes/' . 'search_header.php'); ?></td>
        <td class="headerNavigation" align="right" valign="top" width="33%">
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
          <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?>»</a>
<?php }?>
        </td>
      </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="0" class="header">
      <tr><!-- All HEADER_ definitions in the columns below are defined in includes/languages/english.php //-->
        <td valign="middle" height="<?php echo HEADER_LOGO_HEIGHT; ?>" width="<?php echo HEADER_LOGO_WIDTH; ?>">
<?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?>
        </td>
        <td align="center" valign="top">
<?php if (HEADER_SALES_TEXT != '') { echo HEADER_SALES_TEXT; } if ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) { if ($banner->RecordCount() > 0) { echo zen_display_banner('static', $banner); } } ?>
        </td>
      </tr>
    </table>
<?php if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { ?>
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr class="headerError">
        <td class="headerError"><?php echo htmlspecialchars(urldecode($_GET['error_message'])); ?></td>
      </tr>
    </table>
<?php } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { ?>
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr class="headerInfo">
        <td class="headerInfo">
		<?php 
		//htmlspecialchars 
		echo htmlspecialchars($_GET['info_message']); ?></td>
      </tr>
    </table>
<?php } ?> <?php } else { ?>
<tr><td>
<?php } ?> <?php // set to 1 for ON or 0 for OFF //define('CATEGORIES_TABS_STATUS','0'); // --- this moved to "configuration" table in database define('FILENAME_CATEGORIES_TABS','categories_tabs.php'); if (CATEGORIES_TABS_STATUS == '1') { include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS)); } ?>

if i try to change the 1st statement ( $flag_disable_header = true;) to "false" the page become error. but when i rename the folder (privacy) to any other name else, the page will turn back to original header (i know this is because of overriding , which is perfectly good i think) but this would not match to other page since others are shown the "my_custom" header.

Question is how to turn back my_custom header in privacy page?

thanks in advance for any help

22 May 2006, 11:14 AM
#3
tanky avatar

tanky

New Zenner

Join Date:
Mar 2006
Posts:
28
Plugin Contributions:
0

Re: [Help] I got problems about the "Header"

I just found that I have fixed the problem by "deleting" the privacy folder. =) hope any of you wont get the same problems as me. =)

cheers