Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

header in the footer area


Guest

Recommended Posts

Posted

Here is the store:

The store index

 

The header I set up in the header file is being replicated some how at the footer. Any ideas on how to stop it? Is it the If banner?

 

 

This is what my catalog/includes/footer.php file shows

<?php
/*
 $Id: footer.php,v 1.3.26.1 2006/06/07 15:05:45 mdima Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require(DIR_WS_INCLUDES . 'counter.php');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="footer">
<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>
<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>
 </tr>
</table>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>
 </tr>
</table>
<?php
 if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
 </tr>
</table>
<?php
 }
?>

Posted

This is simple, copy and paste this into your footer.php instead:

 

<?php
/*
 $Id: footer.php,v 1.3.26.1 2006/06/07 15:05:45 mdima Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require(DIR_WS_INCLUDES . 'counter.php');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="footer">
<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>
<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>
 </tr>
</table>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>
 </tr>
</table>

<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td align="center"></td>
 </tr>
</table>

 

The PHP Echo was removed and along with the other PHP coding which looks IF the banner exists.

 

PHP echo is like php display - if you know where the php echo variable represents and dont want that to show up, just remove the <php echo $variable> and it will disappear!

so for example here it was < PHP echo $banner > gone.

 

(note the proper code is <?php echo $ ?> but you get the idea of what i meant)

 

hope that helped

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...