osCommerce Community Support Forums: Remove Right Colum - osCommerce Community Support Forums

Jump to content

Corporate Sponsor


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Remove Right Colum Totally lost, daed and confused Rate Topic: -----

#1 User is offline   pcObelix Icon

  • Find Posts
  • Group: Community Member
  • Posts: 8
  • Joined: 06-November 08
  • Real Name:Peter Cotter

Posted 04 November 2009 - 03:36 AM

Okay, I have followed all the instructions for removing the right hand column, but end up with a totally stupid looking page......Not sure what the problem is.

Screen shot of website before I try and remove right hand column
Posted Image

The look of the code before I do anything

<!-- 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>
 <?php /*
  </tr>
</table>
*/ ?>
<!-- body_eof //-->


Picture of site after I try and remove right hand column

Posted Image

And a cut of the code

<!-- 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>
 <?php /*
  </tr>
</table>
*/ ?>
<!-- body_eof //-->


As you can see, all I have done is change 2 lines,and this is what happens.

Hopefully someone can maybe see where I am going wrong.

Thanks

Peter
0

#2 User is offline   germ Icon

  • Find Posts
  • Group: Community Member
  • Posts: 9,597
  • Joined: 10-April 07
  • Real Name:Jim
  • Gender:Male
  • Location:USA - C.S.T.

Posted 04 November 2009 - 03:49 AM

Change this:

<!-- right_navigation_eof //-->
    </table></td>

To

<!-- right_navigation_eof //-->
<!--    </table></td> //-->

If you comment out the beginning tags you have to comment out the ending tags as well.
If I suggest that you edit any file(s) make a backup first - I'm not perfect and neither are you.

I only post what the voices in my head tell me to.


$sample_it = ( ($this->has_Flavor() ) ? $mmm->mmm('good') : $want->do_Not() );
0

#3 User is offline   MrPhil Icon

  • Find Posts
  • Group: Community Member
  • Posts: 652
  • Joined: 29-December 05
  • Real Name:Phil Perry

Posted 04 November 2009 - 07:27 PM

And change
<!-- body_text_eof //-->
<--

to
<!-- body_text_eof //-->
<!--

I don't know how it was removing the <td... line without a proper start-comment mark, but evidently it was. In any case, it's good to have proper comments, even if your browser accepts a nonstandard one.
0

#4 User is offline   pcObelix Icon

  • Find Posts
  • Group: Community Member
  • Posts: 8
  • Joined: 06-November 08
  • Real Name:Peter Cotter

Posted 05 November 2009 - 02:03 AM

Okay I now have the page looking okay, but I still have the right column.

Does is matter that I am using the STS add on for oscommerce.

Where else does index.php get it's information from to layout the main page.

Maybe I am missing a file somewhere along the line
0

#5 User is offline   KJ666 Icon

  • Find Posts
  • Group: Community Member
  • Posts: 180
  • Joined: 02-September 08
  • Real Name:Kieron

Posted 05 November 2009 - 02:28 AM

To remove it take out this part:

Quote

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

0

#6 User is offline   djdeuce Icon

  • Find Posts
  • Group: Community Member
  • Posts: 43
  • Joined: 30-January 09
  • Real Name:Travis Pazurek
  • Gender:Male
  • Location:St. Louis, MO

Posted 18 November 2009 - 08:24 PM

I'm having a weird problem with removing right column. After I remove it my index page and product category pages shift down. When I add the right column back it shifts back up. None of the other pages are affected this way with the same code commented out like instructed above. Anyone else have that problem?

View my problem at www.shedsforlessdirect.com

Thanks!
0

#7 User is offline   djdeuce Icon

  • Find Posts
  • Group: Community Member
  • Posts: 43
  • Joined: 30-January 09
  • Real Name:Travis Pazurek
  • Gender:Male
  • Location:St. Louis, MO

Posted 18 November 2009 - 08:59 PM

To fix you need to uncomment this:

<?php /*
</tr>
</table>
*/ ?>

change to:

</tr>
</table>

These tags were for a table above the right column.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic