niknakgroup Posted November 28, 2003 Share Posted November 28, 2003 Hi Have started over with an out of the box osc as somehow broke my working version, and am installing the mods i want. Have not yet done anything with column right (except for helpdesk which is commented out and commenting out the manufacturers box), and have only amended the footer very slightly, but for some reason the footer keeps changing itself. On the index page it displays in column right?!? On product info page it displays at bottom of page, but the font for the "request since" bar has changed to Times, the text is not laid out properly (i.e. all shows on left hand side, not at both sides) and the background colour of the bar doesn't show. On other pages it works perfectly. I am tearing my hair out trying to figure what the problem is. The site can be seen at www.teeneasy.co.uk, the columnright.php looks like this: <?php/* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 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_BOXES . 'shopping_cart.php'); // if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { include(DIR_WS_BOXES . 'best_sellers.php'); } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'best_sellers.php'); } if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } require(DIR_WS_BOXES . 'reviews.php'); if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); // require(DIR_WS_BOXES . 'helpdesk.php'); } ?> The footer.php looks like this <?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 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 } ?> I am pretty sure the problem lies somewhere in these two files, but I can't figure for the life of me what the problem is as I have changed so little from the original files. Hopefully somebody out there has the knowledge to point out the really obvious flaw in the code, and point out my stupidity! Thank you in advance for any help that is forthcoming - I have tried searching the forums and cant fins this problem occurring anywhere else - WHAT HAVE I DONE???? :( Please note - if I have suggested a contrib above, it doesnt mean it will work! Most of the contribs are not ones I've used, but may be useful for your particular problem.... Have you tried a refined search? Chances are your problem has already been dealt with elsewhere on the forums..... if (stumped == true) { return(square_one($start_over) } else { $random_query = tep_fetch_answer($forum_query) } Link to comment Share on other sites More sharing options...
LiQuIdAiR Posted November 28, 2003 Share Posted November 28, 2003 the problem i ran into when it came to making the tables layout correctly is that each page has to be changed. Meaning that each php pages contains NON-GLOBAL variables that can be changed once and have the same affect on all pages... Go into each php page that is showing incorrectly and find where the left column and the right column and the footer goes and make sure that HTML tables are setup correctly. Link to comment Share on other sites More sharing options...
paulm2003 Posted November 29, 2003 Share Posted November 29, 2003 for some reason the footer keeps changing itself. On the index page it displays in column right?!? On product info page it displays at bottom of page are you using PHP4.3.1 ? Link to comment Share on other sites More sharing options...
Guest Posted November 29, 2003 Share Posted November 29, 2003 www.oscommerce.com/community/bugs,1242 Link to comment Share on other sites More sharing options...
niknakgroup Posted December 1, 2003 Author Share Posted December 1, 2003 got really confused and befuddled, but have worked around iut by using the simple template system - all the tables are on one page and I can make certain they are nested correctrly. By the way, the sts is a really nifty mod - i hadnt used before as didnt want to majorly change the layout, but found it is so easy to do, that this mod is now indespensible!! Highly recommend to anybody else who finds this thread having run into same problems - you can get it at http://www.oscommerce.com/community/contributions,1524 I use MS2.2 and it works a charm. :D Please note - if I have suggested a contrib above, it doesnt mean it will work! Most of the contribs are not ones I've used, but may be useful for your particular problem.... Have you tried a refined search? Chances are your problem has already been dealt with elsewhere on the forums..... if (stumped == true) { return(square_one($start_over) } else { $random_query = tep_fetch_answer($forum_query) } Link to comment Share on other sites More sharing options...
paulm2003 Posted December 1, 2003 Share Posted December 1, 2003 got really confused and befuddled, but have worked around iut by using the simple template system I took a look at your site and now I am sure it is the famous PHP bug. So if one goes to the url in your signature the error is still there! It might be confusing but once you reload the page the error is gone and only comes back if your browser does not load it from the cache. But all new visitors will still see the nasty error! Or didn't you install the STS on the life site it yet? Paul Link to comment Share on other sites More sharing options...
Guest Posted December 2, 2003 Share Posted December 2, 2003 Your problem *is* the php bug as outlined by others here. Submit your store to the My Store channel if you wish to feature it. Please leave the link out of your sig. Thankyou, Matti Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.