OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Solution: How to modify BOX_WIDTH.
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Tips and Tricks
roxanacaz
Although it's already somewhere on these forums I couldn't find an answer to this problem by searching (modifying the width of boxes). So, here is the answer if you want to modify BOX_WIDTH (left and right)

Look in:

/includes/application_top.php around line 79.

Find:

// customization for the design layout
define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

And modify to suit your needs.
FireWire2
roxanacaz

Thank you very much!

FireWire
jmacdonald
Width of left bar in Firefox is smaller than in IE. What is proper way to get left bar sized correctly so that categories aren't wrapped to second line?

Renders fine in IE.
Coopco
QUOTE (jmacdonald @ Feb 2 2008, 02:26 AM) *
Width of left bar in Firefox is smaller than in IE. What is proper way to get left bar sized correctly so that categories aren't wrapped to second line?

Renders fine in IE.

Can you explain why that happens?
FlipHunny
Thanks! So simple, but exactly what I was looking for!
crazyjack77
Hello,
Thanks for yout tip on modify the BOX_WIDTH and i have been using this also on the older versions, but i seem to have a problem i have just installed the latest version on this site:

osCommerce Online Merchant v2.2 RC2a

The problem is when i change the size to 145 instead of 125 and save it... (yes it is 777 permission) nothing happens on the index and when i check the application_top.php again it the same as before 125...

very strange...

Any ideas how to make this work... ?

Thank you..
VinnyH
Thanks for the tip. I just went and reset my width to 140 and it worked fine. I'm using the latest fresh osCommerce Online Merchant v2.2 RC2a install.

I'm not sure of why it didn't take for the poster above. Did you use the File Manager to access and change it?

Best to All,
VinnyH
rmsigns
hi,
can you tell me why you need to change that number (125) for pixels? not sure if this is related or not but i've been trying to add my logo to the top box and it just comes out huge. i have tried to size it down in my graphics program but when i upload it i'm like.. ugh i can't put that up there..hahaa
any suggestions?
thanks
mc
Glcustoms
QUOTE (crazyjack77 @ Mar 4 2008, 10:06 AM) *
Hello,
Thanks for yout tip on modify the BOX_WIDTH and i have been using this also on the older versions, but i seem to have a problem i have just installed the latest version on this site:

osCommerce Online Merchant v2.2 RC2a

The problem is when i change the size to 145 instead of 125 and save it... (yes it is 777 permission) nothing happens on the index and when i check the application_top.php again it the same as before 125...

very strange...

Any ideas how to make this work... ?

Thank you..

If its not saving, them your permission on the server may be at 444. Set it to 644 via the server filemanager. DO NOT make it 777 or you will be asking for trouble.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.