Hello,
I'm trying to find out how to change the width of the table for the column_left.php..
I edited default.php from:
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<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 This:
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td width="164" valign="top"><table border="0" width="164" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
Ok that fixed the default.php.. But if I browse around anywhere else in my store the table goes back to default.. I'm guessing there is a config.php or something that I can change to make system wide changes for oscommerce?
Thanks for any help offered
Ken
Latest News: (loading..)
Left Nav ( column_left.php ) Table Width
Started by Ryvral, Jan 30 2003, 23:47
6 replies to this topic
#1
Posted 30 January 2003, 23:47
#2
Posted 31 January 2003, 00:06
Kim
~~~~~~~~~~~~~
~~~~~~~~~~~~~
#3
Posted 31 January 2003, 00:23
Yes I have read the docs. Although I didn't find anything about resizing the tables.. I always study before I post on here..
Although I may have missed it..
Ken
Although I may have missed it..
Ken
#4
Posted 31 January 2003, 00:25
Is there a reason why you want to make left column bigger than right?
If not, then change the width of both in application_top
If there is, then go to includes/boxes/ and alter each boxes width to whatever you want.
CC.
If not, then change the width of both in application_top
If there is, then go to includes/boxes/ and alter each boxes width to whatever you want.
CC.
#5
Posted 31 January 2003, 00:35
Kinda hard to find what I was looking for in the docs but I found it..
The reason I want to change the left nav table to make it wider is because some of the catagories I have are too long to fit on 1 line.. Thus is scrolls down to the next making it look bad..
ANSWER:
application_top.php
// customization for the design layout
define('TAX_DECIMAL_PLACES', 0); // Pad the tax value this amount of decimal places
define('DISPLAY_PRICE_WITH_TAX', true); // Display prices with tax (true) or without tax (false)
define('BOX_WIDTH', 164); // how wide the boxes should be in pixels (default: 125)
Simple huh?
And the bad thing is , is that I look in that php like 10 times... hahaha.. DOH.. I need to start sleeping again..
Ken
The reason I want to change the left nav table to make it wider is because some of the catagories I have are too long to fit on 1 line.. Thus is scrolls down to the next making it look bad..
ANSWER:
application_top.php
// customization for the design layout
define('TAX_DECIMAL_PLACES', 0); // Pad the tax value this amount of decimal places
define('DISPLAY_PRICE_WITH_TAX', true); // Display prices with tax (true) or without tax (false)
define('BOX_WIDTH', 164); // how wide the boxes should be in pixels (default: 125)
Simple huh?
And the bad thing is , is that I look in that php like 10 times... hahaha.. DOH.. I need to start sleeping again..
Ken
#6
Posted 31 January 2003, 00:37
Argh well, these things happen.
:wink:
CC.
:wink:
CC.
#7
Posted 31 January 2003, 03:46
I wanted to resize my tables too but thought I might want to do it again before things were over so made some broad changes in the scripts but made it easier to do again by defining a few new variables in application_top.php
TABLE_WIDTH_MASTER
TABLE_WIDTH_LEFT_COL
TABLE_WIDTH_RIGHT_COL
TABLE_WIDTH_BODY
and populated the definitions with all my appropriate widths for my layout.
I then edited all of the php files and replace the hard-coded widths (ie, 100%) with the above definitions in their corresponding locations using this template:
<?php echo TABLE_WIDTH_MASTER; ?>
This has worked excellent for me and I'm glad I did it. I did wind up changing my column widths again since I opted to drop the right column altogether. Resizing the left column and body was a snap since all I had to do was change the widths in application_top.php.
They/We should consider not hard-coding table widths for the 3-column layout and make them part of HTML definitions in the application_top.php or separate file. This would help make the layout much more of a skin or theme rather than fixed like it is. Maybe I'll suggest that after the 2.2 release, they have enough on their plate as it is.
TABLE_WIDTH_MASTER
TABLE_WIDTH_LEFT_COL
TABLE_WIDTH_RIGHT_COL
TABLE_WIDTH_BODY
and populated the definitions with all my appropriate widths for my layout.
I then edited all of the php files and replace the hard-coded widths (ie, 100%) with the above definitions in their corresponding locations using this template:
<?php echo TABLE_WIDTH_MASTER; ?>
This has worked excellent for me and I'm glad I did it. I did wind up changing my column widths again since I opted to drop the right column altogether. Resizing the left column and body was a snap since all I had to do was change the widths in application_top.php.
They/We should consider not hard-coding table widths for the 3-column layout and make them part of HTML definitions in the application_top.php or separate file. This would help make the layout much more of a skin or theme rather than fixed like it is. Maybe I'll suggest that after the 2.2 release, they have enough on their plate as it is.
*edit*














