Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Remove Right Colum


  • You cannot reply to this topic
6 replies to this topic

#1 pcObelix

  • Community Member
  • 8 posts
  • Real Name:Peter Cotter

Posted 04 November 2009, 03:36

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
[img]http://www.unibooks.co.nz/b4remove.jpg[/img]

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

[img]http://www.unibooks.co.nz/afterremove.jpg[/img]

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

#2 germ

  • Community Member
  • 13,471 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 04 November 2009, 03:49

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 you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#3 MrPhil

  • Community Member
  • 2,900 posts
  • Real Name:Phil
  • Gender:Male

Posted 04 November 2009, 19:27

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.

#4 pcObelix

  • Community Member
  • 8 posts
  • Real Name:Peter Cotter

Posted 05 November 2009, 02:03

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

#5 KJ666

  • Community Member
  • 246 posts
  • Real Name:Kieron

Posted 05 November 2009, 02:28

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>


#6 djdeuce

  • Community Member
  • 75 posts
  • Real Name:Travis Pazurek
  • Gender:Male
  • Location:St. Louis, MO

Posted 18 November 2009, 20:24

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!

#7 djdeuce

  • Community Member
  • 75 posts
  • Real Name:Travis Pazurek
  • Gender:Male
  • Location:St. Louis, MO

Posted 18 November 2009, 20:59

To fix you need to uncomment this:

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

change to:

</tr>
</table>

These tags were for a table above the right column.