Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

All Boxes on the Left Side: How?


European

Recommended Posts

I changed catalog/index.php in that way that both columns (right and left)

appear on the left side (i need all this boxes on the left side).

 

Works only on this page: When i choose other pages i get the same layout as before:

left middle right.

 

What can I do to make the changes in index.php permanent for the whole site?

 

 

Thank you!

 

Euro

Link to comment
Share on other sites

Compare the code from both files, and take the code you want from your column_right.php file and add it to column_left.php, and then remove those entries from column_right. Column right will still be there, but because it has no entries it won't show up and the screen will expand to take the place it would have occupied. Don't forget to take back-up copies of both files before you edit, in case something goes wrong - and don't use the osCommerce File Manager to do the editing.

 

Vger

I changed catalog/index.php in that way that both columns (right and left)

appear on the left side (i need all this boxes on the left side).

 

Works only on this page: When i choose other pages i get the same layout as before:

left middle right.

 

What can I do to make the changes in index.php permanent for the whole site?

Thank you!

 

Euro

Link to comment
Share on other sites

Compare the code from both files, and take the code you want from your column_right.php file and add it to column_left.php, and then remove those entries from column_right.  Column right will still be there, but because it has no entries it won't show up and the screen will expand to take the place it would have occupied.  Don't forget to take back-up copies of both files before you edit, in case something goes wrong - and don't use the osCommerce File Manager to do the editing.

 

Vger

 

Hi,

 

thank you, it worked! So simple..I think i am not good in logical thinking ;)

I have another question: I want to get rid of the 100% tables and set the width to 789 pixel. Is there no central file to set this? The CSS maybe? Sorry i didnt see anything there. And i dont want to edit every single page :'(

 

euro

Link to comment
Share on other sites

I'm sure someone will correct me if I'm wrong, but I'm thinking you could put:

 

<table width="789" align="center"><tr><td>

 

... at the top of includes/header.php, and:

 

</td></tr></table>

 

...at the bottom of includes/footer.php.

 

Assuming you want it centered of course, adjust the alignment to your own preference ;)

Link to comment
Share on other sites

No, there are already so many tables within the default header you would be asking for trouble. By all means put the header and footer within a closed table, and this will centre and limit the width of those, but then you'd need to center and set the width of each and every other page. If you want to do this sort of thing then, given the state of the default tables in osCommerce, it's best to rewrite each page.

 

Vger

I'm sure someone will correct me if I'm wrong, but I'm thinking you could put:

 

<table width="789" align="center"><tr><td>

 

... at the top of includes/header.php, and:

 

</td></tr></table>

 

...at the bottom of includes/footer.php.

 

Assuming you want it centered of course, adjust the alignment to your own preference ;)

Link to comment
Share on other sites

No, there are already so many tables within the default header you would be asking for trouble.  By all means put the header and footer within a closed table, and this will centre and limit the width of those, but then you'd need to center and set the width of each and every other page.  If you want to do this sort of thing then, given the state of the default tables in osCommerce, it's best to rewrite each page.

 

Vger

 

Means, there is no other way then editing every single page? :'( :sweating:

changing the width in header.php is not enough by the way...

Link to comment
Share on other sites

Means, there is no other way then editing every single page? :'(  :sweating:

changing the width in header.php is not enough by the way...

 

there is an other way - works very fine on my page, found it under comunity - support (thanks to the author!"

 

-------------------------------------------------------------

This contribution uses CSS, NOT a table, to

set the width of the page for 800px screen

and center the page on the screen.

 

This should

eliminate problems with using tables to center a page,

improve page loading performance,

work with a broad range of browsers, and

be compatible with future web standards.

 

Files effected and included, if you want to see changes in place.

catalog\stylesheet.css (7 lines of code)

catalog\include\header.php (1 line of code)

catalog\include\footer.php (1 line of code)

 

However ALL changes are in this txt file.

 

====================================

file = catalog\stylesheet.css

line = any place, I used line 12 so I knew where to find it

 

.centerpage {

width: 770px;

position: absolute;

left: 50%;

top: 0;

margin-left: -385px;

}

 

 

====================================

file = catalog\include\header.php

line = 55, insert new line

 

<div class= "centerpage" >

 

 

====================================

file = catalog\include\footer.php

line = 60 (new last line in file), insert

 

</div>

 

 

====================================

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...