ifteba Posted June 16, 2003 Posted June 16, 2003 Hi, I know its a wired thing to as but, I am having trouble to do this. What I did is that I set up the shopping page at the center of the page with Table width="770" and aligned it in the center. Ok now I added that IP info at the footer. Now IP info shows at the center but rest of the info after that shows as left aligned. Can anybody tell me what I am doing wrong? Check my site to see what I mean at the bottom of the page. http://www.qchips.com/catalog/default.php Here is that footer.php that I have now: <?php /* $Id: footer.php,v 1.25 2002/10/29 22:51:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2001 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="770" cellspacing="0" cellpadding="1" align="center"> <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="770" cellspacing="0" cellpadding="0" align="center"> <tr> <td align="center" class="smalltext"><?php echo "Your IP Address is: " . $rmtIP; ?></td> </tr> </table> <?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 ?> <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="770" cellspacing="0" cellpadding="0" align="center"> <tr> <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> </tr> </table> <?php } ?> Please help me :D Ifte
mdfst13 Posted June 17, 2003 Posted June 17, 2003 I think that you need the copyright stuff to be included in the table, like this: <?php /* $Id: footer.php,v 1.25 2002/10/29 22:51:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2001 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="770" cellspacing="0" cellpadding="1" align="center"> <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="770" cellspacing="0" cellpadding="0" align="center"> <tr> <td align="center" class="smalltext"><?php echo "Your IP Address is: " . $rmtIP; /* 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="770" cellspacing="0" cellpadding="0" align="center"> <tr> <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> </tr> </table> <?php } ?> It is also possible that you need to add new rows in the table for the second two, but I would try it like this first. You can always add rows to the table later: </td></tr><tr><td align="center"> should add a new row to the table if you put it inside a previous row. Let us know how it works out. Good luck, Matt I love deadlines. I like the whooshing sound they make as they fly by. ---Douglas Adams
Recommended Posts
Archived
This topic is now archived and is closed to further replies.