Guest Posted October 5, 2008 Posted October 5, 2008 Hi Jim You showed me how to remove the right hand column using this bit of code: <!-- body_text_eof //--> <?php if ( false ) { ?> <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> <?php } ?> This bit of code does not work for me <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> Your knowledge would be gratefully received. Liam
germ Posted October 5, 2008 Posted October 5, 2008 The code is earlier in index.php Old code: <!-- left_navigation //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> New code: <?php if ( false ) { ?> <!-- left_navigation //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <?php } ?> @ GERM :lol: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted October 5, 2008 Posted October 5, 2008 The code is earlier in index.php Old code: <!-- left_navigation //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> New code: <?php if ( false ) { ?> <!-- left_navigation //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <?php } ?> :lol: Hi Jim You just beat me to the reply just found an old post of yours with the very same code so once again you have been a great help. Many Thanks Liam
Guest Posted November 22, 2008 Posted November 22, 2008 Hi Jim Is there a way to remove the column left from the home page only? I mean that every other page will display the column left.
Guest Posted November 22, 2008 Posted November 22, 2008 If you want the left column to show when you click a category or select a manufacturer but not on your main part of the home page do this. Change <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> To <?php if ($category_depth != 'top') { ?> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <?php } ?>
Guest Posted November 22, 2008 Posted November 22, 2008 OOps I messed up. This part <?php if ($category_depth != 'top') { ?> should be <?php if ( ($category_depth != 'top') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { ?>
Guest Posted November 22, 2008 Posted November 22, 2008 If you want the left column to show when you click a category or select a manufacturer but not on your main part of the home page do this. Change <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> To <?php if ($category_depth != 'top') { ?> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <?php } ?> Thanks Brian, will give that a try. Yes, that works, Thank You
germ Posted November 27, 2008 Posted November 27, 2008 I would have replied Coop, but I think my subscription to this thread expired as I got no emaill when you posted. :blush: Next time throw me a PM if you want. ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted November 29, 2008 Posted November 29, 2008 I would have replied Coop, but I think my subscription to this thread expired as I got no emaill when you posted. :blush: Next time throw me a PM if you want. ;) Hi Jim Thanks for the offer, I appreciate it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.