Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Footer Image


msheno01

Recommended Posts

Posted

I wanted to know how to add an image to the footer after the copywright notice. I don't want to add a background, just an image or several images next to each other.

 

THank you

Posted

I know that it is in the footer.php in includes/includes

 

But what is the command or line do I use to display the images next to each other.

 

Thanks

Posted

This code puts an image in the centre cell of a three column 1 row table;

 

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

 <tr>

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

   <td width="33%">

   <img border="0" src="urltoyourfilehere" width="xwidthhere" height="yheighthere"></td>

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

 </tr>

</table>

 

you need to replace the src with the location of your image and also the width and height values. It also makes each cell the same width hence the % values.

 

Hope this helps...

John

Posted

I have tried to enter the code that you gave me but I am still not getting any images on the bottom of the page no matter what.

 

 

<?php

 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">  </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>

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

 <tr> 

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

   <td width="33%"> 

   <img border="0" src="./images/moneyback.jpg" width="25" height="25"></td> 

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

 </tr> 

</table>

<?php

}

 require(DIR_WS_FUNCTIONS . 'user_tracking.php');

if ( OSC_CONFIG_USER_TRACKING == 'true') { tep_update_user_tracking(); 

}

?>

 

 

 

This is how my footer looks. I know the image is in the images directory. I have also tried to use the url for the image as "../images/moneyback.jpg" but that didn't work either..

 

Thanks

Archived

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

×
×
  • Create New...