Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

footer problem


Guest

Recommended Posts

i am having problems putting an image into footer. Here is the code. Please help.

 

<table border="0" cellpadding="0" cellspacing="0" width="100%" >

 

<tr>

 

<td width="33%"> </td>

 

<td width="33%">

 

<img border="0" src="store/images/static_amex_mc_visa_disc.gif" width="411" height="60"></td>

 

<td width="34%"> </td>

 

</tr>

 

</table>

</table>

<?php

}

?>

Link to comment
Share on other sites

the file includes/configure.php defines the paths to your images - check that file out.

 

therefore, you don't need to input:

store/images/static_amex_mc_visa_disc.gif

 

change to:

static_amex_mc_visa_disc.gif

 

this should work if the image is in store/images/

 

best.

Link to comment
Share on other sites

can you post your complete footer.php as you seem to have a table closing then a table closing without having a row closed prior to the last table close tag

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

sure, here it is.

 

<?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>
<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
/*
 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 border="0" cellpadding="0" cellspacing="0" width="100%" >

<tr>

  <td width="33%"> </td>

  <td width="33%">

  <img border="0" src=static_amex_mc_visa_disc.gif width="411" height="60"></td>

  <td width="34%"> </td>

</tr>
</table>
</table>
<?php
 }
?>

Link to comment
Share on other sites

you are displaying the image within your banner section so if the banner is not on then the image will not show, if you wish the image to allways show try this

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
}
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" >

<tr>

?<td width="33%"> </td>

?<td width="33%">

?<img border="0" src=static_amex_mc_visa_disc.gif width="411" height="60"></td>

?<td width="34%"> </td>

</tr>
</table>

or if you want the image higher then this

echo FOOTER_TEXT_BODY
?>
? </td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" >

<tr>

?<td width="33%"> </td>

?<td width="33%">

?<img border="0" src=static_amex_mc_visa_disc.gif width="411" height="60"></td>

?<td width="34%"> </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
}
?>

or is it that you want the image to show with the banner

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

still no luck

 

<?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 © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require(DIR_WS_INCLUDES . 'counter.php');

?></TABLE>

<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

/*

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>

<

</tr>

</table>

</table>

<?php

}

?>

<table border="0" cellpadding="0" cellspacing="0" width="100%" >

 

<tr>

 

<td width="33%"> </td>

 

<td width="33%">

 

<img border="0" src=static_amex_mc_visa_disc.gif width="411" height="60"></td>

 

<td width="34%"> </td>

 

</tr>

</table>

Link to comment
Share on other sites

you have this

<
</tr>
</table>
</table>
<?php
}
?>

should be

</tr>
</table>
<?php
}
?>

so giving

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>
</tr>
</table>
<?php
}
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" >
<tr>
<td width="33%"> </td>
<td width="33%"><img border="0" src=static_amex_mc_visa_disc.gif width="411" height="60"></td>
<td width="34%"> </td>
</tr>
</table>

watch out for the line containing the image as it is meant to be all on one line not as the post shows it here

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

I still cant get it right i must be going insane.

<?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 © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require(DIR_WS_INCLUDES . 'counter.php');

?></TABLE>

<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

/*

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>

</tr>

</table>

<?php

}

?>

<table border="0" cellpadding="0" cellspacing="0" width="100%" >

 

<tr>

 

<td width="33%"> </td>

 

<td width="33%">

 

<img border="0" src=static_amex_mc_visa_disc.gif width="411" height="60"></td>

 

<td width="34%"> </td>

 

</tr>

</table>

Link to comment
Share on other sites

ok this one is mine I left a </tr> in there

 

<?php
/*
$Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
[URL=http://www.oscommerce.com]http://www.oscommerce.com[/URL]

Copyright ? 2003 osCommerce

Released under the GNU General Public License
*/

require(DIR_WS_INCLUDES . 'counter.php');
?></TABLE>
<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
/*
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:

[URL=http://www.oscommerce.com/community.php/faq,26/q,50]http://www.oscommerce.com/community.php/faq,26/q,50[/URL]

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
}
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" >

<tr>

<td width="33%"> </td>

<td width="33%">

<img border="0" src=static_amex_mc_visa_disc.gif width="411" height="60"></td>

<td width="34%"> </td>

</tr>
</table>

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...