This is a discussion on How To: have different right and left column widths within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I just figured this out and thought I would share incase anyone else is trying to do this. I found ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I just figured this out and thought I would share incase anyone else is trying to do this. I found the directions at osc.com but soon realized I didn't have a catalog/default.php a file that was needed to make the changes. Then it dawned on me that it might be because with MAX you've got the BTS. So I just have to use the main_page.tpl instead. Here's how it works 1. Open catalog/includes/application_top.php 2. Find the line (around line 47) that reads Code: // customization for the design layout
define('BOX_WIDTH', 145); // how wide the boxes should be in pixels (default: 125)
Code: // customization for the design layout left column
define('BOX_WIDTH_LEFT', 165); // how wide the boxes should be in pixels (default: 125)
// customization for the design layout right column
define('BOX_WIDTH_RIGHT', 125); // how wide the boxes should be in pixels (default: 125)
7. Now open the second file to edit: catalog/templates/main_page.tpl you will need to change 2 lines. 8. Find the first line to change that reads Code: <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> Code: <td width="<?php echo BOX_WIDTH_LEFT; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="2"> Code: <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> Code: <td width="<?php echo BOX_WIDTH_RIGHT; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="2"> |
| The Following User Says Thank You to Kristine For This Useful Post: | ||
altenter (08-24-2008) | ||
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| Hi, Great tip. If you wanted to keep the box width changes confined to the template, ie allow you to switch box widths depending on the template you are in, simply insert the define box width left / right into main_page.tpl rather than includes/application_top.tpl Thanks for getting me started on this Kristine. Cheers Tim |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Move Left Column Down | torweb | osCMax v2 Customization/Mods | 1 | 05-01-2006 03:15 PM |
| Left column to large | gamefreak7 | osCMax v2 Features Discussion | 1 | 07-27-2005 09:47 AM |
| Incorporating column left and right together. | billybeag | osCMax v1.7 General Mods Discussion | 3 | 05-18-2004 07:17 PM |
| Move all in rh column to left and remove RH column | jloyzaga | osCMax v1.7 Discussion | 0 | 03-24-2004 03:24 PM |
| column widths in oscommerce loaded v5 | cforscutt | osCommerce 2.2 Modification Help | 3 | 03-13-2003 02:00 AM |