Results 1 to 6 of 6

fixcenter for oscmax?

This is a discussion on fixcenter for oscmax? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I want to widen the entire site. In oscommerce2 I changed the .fixcenter in the stylesheet in the root of ...

      
  1. #1
    Member
    Join Date
    May 2008
    Posts
    50
    Rep Power
    4


    Default fixcenter for oscmax?

    I want to widen the entire site. In oscommerce2 I changed the .fixcenter in the stylesheet in the root of it to:

    .fixcenter {
    border: solid; border-width: 1px; border-color: #bbbbbb;
    width: 975px;
    text-align: center;
    background: #ffffff;
    color: #000000;
    margin: auto;
    margin-top: 20px;
    text-align: left;

    can I change the width of oscmax to 975px? can I add the above from oscommerce2 and if so which stylesheet would add it to? If there is another way please help me. I spent many hours figuring out how to do it in oscommerce but don't know how in osxmax.
    Thanks in advance.
    Lynn


  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,500
    Rep Power
    567


    Default Re: fixcenter for oscmax?

    In osCMax, it depends on the specific template you are using, and whether it is defined via the stylesheet or in the template.

    Look in main_page.tpl.php and change the width of the main table. The aabox template is set to 750pixels, so just look for a width of 750 in the main_page.tpl.php and change it to whatever you want.

    The fallback template is set to 100% for the main table, so just change it.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Member
    Join Date
    May 2008
    Posts
    50
    Rep Power
    4


    Default Re: fixcenter for oscmax?

    I appreciate that..I will give it a try.
    Thanks

  4. #4
    Member
    Join Date
    May 2008
    Posts
    50
    Rep Power
    4


    Default Re: fixcenter for oscmax?

    I am using the aabox template. I changed it to 925 but didn't see a change. I am listing it here for you hoping you will look at it and hoping I missed something or changed the wrong item.
    Thank you,

    HTML Code:
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS;
    // BOF Separate Pricing Per Customer
    if(!tep_session_is_registered('sppc_customer_group_id')) {
    $customer_group_id = '0';
    } else {
    $customer_group_id = $sppc_customer_group_id;
    }
    // EOF Separate Pricing Per Customer
    ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
    <?php require(DIR_WS_INCLUDES . 'meta_tags.php'); ?>
    <title><?php echo META_TAG_TITLE; ?></title>
    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
    <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
    <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
    <?php if (bts_select('stylesheets', $PHP_SELF)) { // if a specific stylesheet exists for this page it will be loaded ?>
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheets', $PHP_SELF)); // BTSv1.5 ?>">
    <?php } ?>
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','stylesheet.css')); // BTSv1.5 ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','stylesheet-new.css')); // BTSv1.5 ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','print.css')); // BTSv1.5 ?>" media="print">
    <link rel="stylesheet" type="text/css" href="<?php echo DIR_WS_TEMPLATES; ?>coolmenu.css">
    <script language="javascript" type="text/javascript">
    function CVVPopUpWindow(url) {
    window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=600,height=233,screenX=150,screenY=150,top=150,left=150')
    }
    </script>
    <?php require('includes/javascript/form_check.js.php'); ?>
    <?php if (isset($javascript) && file_exists(DIR_WS_JAVASCRIPT . basename($javascript))) { require(DIR_WS_JAVASCRIPT . basename($javascript)); } ?>
    <!-- coolMenu //-->
    <?php
    if (DISPLAY_DHTML_MENU == 'CoolMenu') {
    echo '<SCRIPT LANGUAGE="JavaScript1.2" SRC="includes/coolMenu.js"></SCRIPT>';
    }
    ?>
    <!-- coolMenu_eof //-->
    <?php
    //// BEGIN: Added for Dynamic MoPics v3.000
    ?>
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','dynamic_mopics.css')); // BTSv1.5 ?>">
    <script language="javascript" type="text/javascript"><!--
    function popupImage(url, imageHeight, imageWidth) {
    var newImageHeight = (parseInt(imageHeight) + 40);
    var yPos = ((screen.height / 2) - (parseInt(newImageHeight) / 2));
    var xPos = ((screen.width / 2) - (parseInt(imageWidth) / 2));
    imageWindow = window.open(url,'popupImages','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=' + imageWidth + ',height=' + newImageHeight + ',screenY=' + yPos + ',screenX=' + xPos + ',top=' + yPos + ',left=' + xPos);
    imageWindow.moveTo(xPos, yPos);
    imageWindow.resizeTo(parseInt(imageWidth), parseInt(newImageHeight));
    if (window.focus) {
    imageWindow.focus();
    }
    }
    //--></script>
    <?php
    //// END: Added for Dynamic MoPics v3.000
     
    ?>
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onload="selectRowEffect(this, 0)">
    <!-- coolMenu //-->
    <?php
    if (DISPLAY_DHTML_MENU == 'CoolMenu') {
    require(DIR_WS_INCLUDES . 'coolmenu.php');
    }
    ?>
    <!-- coolMenu_eof //-->
    <!-- All TS references added by TemplateShopper.com November 2003
    TS: 925 pixel centered table for all pages of store -->
    <table align="center" width="750" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td>
    <!-- TS Remove 3 lines above and three closing tags at end to have 100% width store but watch graphics! Also remove center table -->
    <!-- warnings //-->
    <?php require(DIR_WS_INCLUDES . 'warnings.php'); ?>
    <!-- warning_eof //-->
    <?php
    // include i.e. template switcher in every template
    if(bts_select('common', 'common_top.php')) include (bts_select('common', 'common_top.php')); // BTSv1.5
    ?>
    <!-- header //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr class="header">
    <td width="925"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'OSCMAX_top.jpg', 'osCommerce taken to the max!') . '</a>'; ?></td>
    </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr class="headerNavigation">
    <td class="headerNavigation">&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></td>
    <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> &nbsp;|&nbsp; <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> &nbsp;&nbsp;</td>
    </tr>
    <!-- TS added lower header cell -->
    <tr class="headerNavigation">
    <td colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'OSCMAX_top_low.jpg', 'osCMax v1.8 - Power e-commerce') . '</a>'; ?></td>
    </tr>
    <!-- TSend of lower header cell remove above <tr> to </tr> to remove this section -->
    </table>
    <!-- header_eof //-->
    <!-- body // TS: background OSCMAX_box_bg.jpg images added -->
    <table background="http://www.oscmax.com/forums/images/OSCMAX_box_bg.jpg" border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top">
    <table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
    <!-- left_navigation //-->
    <?php require(bts_select('column', 'column_left.php')); // BTSv1.5 ?>
    <!-- left_navigation_eof //-->
    </table>
    </td>
    <!-- content //-->
    <td width="100%" valign="top">
    <!-- TS table added to restrict content in center box -->
    <table width="480" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center">
    <?php
    require (bts_select ('content')); // BTSv1.5
    ?>
    </td>
    </tr>
    </table>
    <!-- TS end table for center box area -->
    </td>
    <!-- content_eof //-->
    <td width="<?php echo BOX_WIDTH; ?>" valign="top">
    <table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
    <!-- right_navigation //-->
    <?php require(bts_select('column', 'column_right.php')); // BTSv1.5 ?>
    <!-- right_navigation_eof //-->
    </table>
    </td>
    </tr>
    </table>
    <!-- body_eof //-->
    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES . 'counter.php'); ?>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr class="footer">
    <td class="footer">&nbsp;&nbsp;<?php echo strftime(DATE_FORMAT_LONG); ?>&nbsp;&nbsp;</td>
    <td align="right" class="footer">&nbsp;&nbsp;<?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>&nbsp;&nbsp;</td>
    </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td align="center" background="http://www.oscmax.com/forums/images/OSCMAX_footer.jpg" class="smallText">
    <?php
    /*
    The following copyright announcement can only be
    appropriately modified or removed if the layout of
    the site theme has been modified to distinguish
    itself from the default osCommerce-copyrighted
    theme or the default osCMax copyrighted theme.
    For more information please read the following
    Frequently Asked Questions entry on the osCommerce
    support site:
    http://oscdox.com/community.php/faq,26/q,50
    Please leave this comment intact together with the
    following copyright announcement.
    */
    echo FOOTER_TEXT_BODY
    ?>
    <p>&nbsp;</p></td>
    </tr>
    </table>
    <?php
    if ($banner = tep_banner_exists('dynamic', 'footer')) {
    ?>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
    </tr>
    </table>
    <?php
    }
    ?>
    <!-- footer_eof //-->
    <!-- TS closing tags of 750 pixel table -->
    </td>
    </tr>
    </table>
    </body>
    </html>

    Last edited by michael_s; 05-06-2008 at 08:04 PM.

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,500
    Rep Power
    567


    Default Re: fixcenter for oscmax?

    Ok, you really should read a book on html. You changed a code comment, not html so of course nothing would happen.

    You are lacking the most basic required skills, so I suggest getting a book that explains how html works. Even if you don't learn html, you would at least have a reference for what is what.

    The line directly below the line that you edited is actual html, and that is what needs to be changed.

    This line:
    HTML Code:
     <table align="center" width="750" border="0" cellpadding="0" cellspacing="0">
    should be this:
    HTML Code:
     <table align="center" width="925" border="0" cellpadding="0" cellspacing="0">
    Now please, please, go get a book or read a tutorial or two before wasting any more of your time. These are simple edits that if you take 2 hours to read up on basic html will only take a few minutes at most. And you get to keep the knowledge to boot.

    I understand we all have to start somewhere, but my suggestion is to start by learning the basics before diving head deep into a lake without knowing how to tread water.
    Last edited by michael_s; 05-06-2008 at 08:05 PM.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  6. #6
    Member
    Join Date
    May 2008
    Posts
    50
    Rep Power
    4


    Default Re: fixcenter for oscmax?

    Thanks very much..You are right as I definitely need to study some HTML..

Similar Threads

  1. do CreLoaded templates work on oscmax? Also do oscommerce contribs work on oscmax?
    By Misery_Kitty in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 02-12-2008, 02:06 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
  •