Muggins Posted March 21, 2010 Share Posted March 21, 2010 Im removing the right column all together are these the only changes i need to make to all php files within catalog folder <!-- body_text_eof //--> <?php <ADDED HERE if ( false ) { ?> <TO HERE <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 <ADD PHP HERE } ?> <TO HERE </tr> </table> <!-- body_eof //--> Or is it just select files that need changing. Link to comment Share on other sites More sharing options...
spooks Posted March 21, 2010 Share Posted March 21, 2010 Yes, but there is another way thats more usable, in all main pages replace: <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> with: <?php require(DIR_WS_INCLUDES . 'column_right_inc.php'); ?> then create a new file called 'column_right_inc.php' that you place in your includes folder, in that you have: <?php //column_right_inc.php right column Module ?> <?php if(false) { // change to your required condition for showing 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> <?php } ?> Then there is only one place you need to edit your condition(s) Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
blkhole Posted April 25, 2010 Share Posted April 25, 2010 Yes, but there is another way thats more usable, in all main pages replace: <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> with: <?php require(DIR_WS_INCLUDES . 'column_right_inc.php'); ?> then create a new file called 'column_right_inc.php' that you place in your includes folder, in that you have: <?php //column_right_inc.php right column Module ?> <?php if(false) { // change to your required condition for showing 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> <?php } ?> Then there is only one place you need to edit your condition(s) When you say all main pages, which pages do you mean? Thanks Link to comment Share on other sites More sharing options...
germ Posted April 25, 2010 Share Posted April 25, 2010 When you say all main pages, which pages do you mean? Thanks "Main pages" would be almost all the PHP files in the catalog folder. 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 > Link to comment Share on other sites More sharing options...
blkhole Posted April 25, 2010 Share Posted April 25, 2010 When you say all main pages, which pages do you mean? Thanks Never mind ... I get it ... thanks for the tip :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.