Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing column_right


satkin2

Recommended Posts

Posted

Hi,

 

Sorry if this is a trivial question.

 

I've looked on the boards and seen that in order to remove the column_right from showing I have to comment out or delete

<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>

after the <!-- body_text_eof //--> comment.

 

So rather than deleting the code, just in case I may want to re-add it, I'm commenting it out. However when I comment...

<!--    <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> -->

 

or

 

<!--    <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> //-->

 

The right column is being hidden, but at the bottom of my page I'm getting the closing comment characters, either --> or //--> and I can't for the life of me see why that's happening.

 

Has anyone experienced this problem, or am I doing something really elementarily wrong that as a newbie I'm not noticing.

 

Thanks

Posted

Try the code below.

 

You can't nest HTML comments (I think)

 

<?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
 }
?>

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 >

Posted

Wow, that was quick.

 

Worked perfectly, thanks very much.

 

Sorry to bother you further, just trying to understand what I've just put in, rather than just pasting it.

 

By being inside the ( false ) is this essentially saying "don't do this"?

 

Thanks

Posted

The PHP test is:

 

 if ( false)

 

Which NEVER is evaluated to true so the code between the:

 

{

and

 

}

is never executed.

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 >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...