GeaX Posted December 10, 2006 Posted December 10, 2006 Hi, what's the best to remove column_right? Just deleting column_right.php causes my footer to disappear. Someone once said deleting a line in index.php could work. Regards
Barbie Posted December 10, 2006 Posted December 10, 2006 Hi, what's the best to remove column_right? Just deleting column_right.php causes my footer to disappear. Someone once said deleting a line in index.php could work. Regards Introduction The left or right side column can be removed entirely from the site layout design by removing the appropriate HTML and PHP code from all files in the main catalog folder only that display a page in the osCommerce installation. This code will remove the entire right side column. You can find it in all the pages on which you don't want it to appear (like index.php, account.php, etc . Comment it out instead of completely removing it so you can put it back if you want (to do on all the pages that you don't want the right column): <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> and in the following body text for right navigation which is just below the above it should be this (to do on all the pages that you don't want the right column): <!-- body_text_eof //--> </tr> </table> <!-- body_eof //-->
GeaX Posted December 10, 2006 Author Posted December 10, 2006 Introduction The left or right side column can be removed entirely from the site layout design by removing the appropriate HTML and PHP code from all files in the main catalog folder only that display a page in the osCommerce installation. This code will remove the entire right side column. You can find it in all the pages on which you don't want it to appear (like index.php, account.php, etc . Comment it out instead of completely removing it so you can put it back if you want (to do on all the pages that you don't want the right column): <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> and in the following body text for right navigation which is just below the above it should be this (to do on all the pages that you don't want the right column): <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> Thanks :D
zhexiang Posted December 16, 2006 Posted December 16, 2006 Guys, I still DON'T really get it... Just how do you remove the entire right column...???? I've been doing this one whole day and it still doesn't work... How do you comment out the right column..??? Is it like this? <!-- right_navigation //--> <!-- <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> --> <!-- right_navigation_eof //--> Or using // or /* */ ??? And the last part: <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> What should I do with it ???
Barbie Posted December 16, 2006 Posted December 16, 2006 Guys, I still DON'T really get it... Just how do you remove the entire right column...???? I've been doing this one whole day and it still doesn't work... How do you comment out the right column..??? Is it like this? <!-- right_navigation //--> <!-- <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> --> <!-- right_navigation_eof //--> Or using // or /* */ ??? And the last part: <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> What should I do with it ??? Let's look for example at conditions.php around line 73 (always before the end, the left navigation preceeds it all) : <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> ******************************************************** If you want a somple way to do it make it read like this (BACK UP FIRST!!!!!). Keep a backup because in this example there is no more reference to right navigation! Replace the above code in your pages with this : <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
MridulBorah Posted September 22, 2011 Posted September 22, 2011 Introduction The left or right side column can be removed entirely from the site layout design by removing the appropriate HTML and PHP code from all files in the main catalog folder only that display a page in the osCommerce installation. This code will remove the entire right side column. You can find it in all the pages on which you don't want it to appear (like index.php, account.php, etc . Comment it out instead of completely removing it so you can put it back if you want (to do on all the pages that you don't want the right column): <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> and in the following body text for right navigation which is just below the above it should be this (to do on all the pages that you don't want the right column): <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> thanks its work nice.. But can u tell me how to remove the right column in oscommerce 2.3.1?? Thanx in Advanced
♥14steve14 Posted September 22, 2011 Posted September 22, 2011 In 2.3.1 just remove any boxes from the column using your admin modules area. Once all the boxes have been removed, the right column will dissapear. REMEMBER BACKUP, BACKUP AND BACKUP
MridulBorah Posted September 22, 2011 Posted September 22, 2011 In 2.3.1 just remove any boxes from the column using your admin modules area. Once all the boxes have been removed, the right column will dissapear. Thank u very much but will the body_content fill the area ??
♥14steve14 Posted September 22, 2011 Posted September 22, 2011 Yes it does REMEMBER BACKUP, BACKUP AND BACKUP
Recommended Posts
Archived
This topic is now archived and is closed to further replies.