Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving the Bottom Banner


Guest

Recommended Posts

any ideas how i might do this?

i have my own banner, and it's appearing fine, but i would now like to make it appear above the copyright text and not below.

 

thanks,

 

gary.

Link to comment
Share on other sites

modified orginal osc /catalog/includes/footer.php to give you an example

<?php
/*
 $Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl 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="0">
 <tr>
   <td align="center" class="smallText">
<?php
/*
 The following copyright announcement can only be
 appropriately modified or removed if the layout of
 the site theme has been modified to distinguish
 itself from the default osCommerce-copyrighted
 theme.

 For more information please read the following
 Frequently Asked Questions entry on the osCommerce
 support site:

 http://www.oscommerce.com/community.php/faq,26/q,50

 Please leave this comment intact together with the
 following copyright announcement.
*/

 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
 }
?>
<br>
<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>

 

see the difference? ;)

it is a plain html issue

 

dahui

Link to comment
Share on other sites

any ideas how i might do this?

i have my own banner, and it's appearing fine, but i would now like to make it appear above the copyright text and not below.

 

thanks,

 

gary.

Actually I think this is more what you are looking for then the code Dahui posted

<?php
/*
$Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl 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');
?>

<?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
}
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
  <td align="center" class="smallText">
<?php
/*
The following copyright announcement can only be
appropriately modified or removed if the layout of
the site theme has been modified to distinguish
itself from the default osCommerce-copyrighted
theme.

For more information please read the following
Frequently Asked Questions entry on the osCommerce
support site:

http://www.oscommerce.com/community.php/faq,26/q,50

Please leave this comment intact together with the
following copyright announcement.
*/

echo FOOTER_TEXT_BODY
?>
  </td>
</tr>
</table>
<br>
<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>
<?php
?>

Link to comment
Share on other sites

Dahui and FHCeramics,

 

thankyou both very much for your replies, i'm going to play with that .php file now, armed with your code :lol:

 

Thank's again i really appreciate you both taking the time to reply, i'd be totally stuck without these forums!

 

gary.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...