Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

@ GERM


Guest

Recommended Posts

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

Link to comment
Share on other sites

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 >

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

OOps I messed up. This part

<?php if ($category_depth != 'top') { ?>

should be

<?php if ( ($category_depth != 'top') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { ?>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 >

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...