Results 1 to 2 of 2

How To: have different right and left column widths

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 ...

      
  1. #1
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default How To: have different right and left column widths

    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)
    3. after this, add the following lines ....
    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)
    6. (set your own width preferences (I have used 165 pixels for the left column and 125 pixels for the right) Save file
    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">
    9. REPLACE this line, with the following line ....
    Code:
    <td width="<?php echo BOX_WIDTH_LEFT; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="2">
    10. Find the second 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">
    11.REPLACE this line with the following line....
    Code:
    <td width="<?php echo BOX_WIDTH_RIGHT; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="2">
    5. save the file and upload your 2 changed files to your active installation.

  2. #2
    Member
    Join Date
    Jul 2005
    Posts
    32
    Rep Power
    0


    Default RE: How To: have different right and left column widths

    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

Similar Threads

  1. Move Left Column Down
    By torweb in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 05-01-2006, 04:15 PM
  2. Left column to large
    By gamefreak7 in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 07-27-2005, 10:47 AM
  3. Incorporating column left and right together.
    By billybeag in forum osCMax v1.7 General Mods Discussion
    Replies: 3
    Last Post: 05-18-2004, 08:17 PM
  4. Move all in rh column to left and remove RH column
    By jloyzaga in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 03-24-2004, 04:24 PM
  5. column widths in oscommerce loaded v5
    By cforscutt in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 03-13-2003, 03:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •