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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| ||||
| ||||
| 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 Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#3
| |||
| |||
| I appreciate that..I will give it a try. Thanks |
|
#4
| |||
| |||
| 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"> <?php echo $breadcrumb->trail(' » '); ?></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> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </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"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </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> </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 07:04 PM. |
|
#5
| ||||
| ||||
| 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"> HTML Code: <table align="center" width="925" border="0" cellpadding="0" cellspacing="0"> 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.
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Last edited by michael_s; 05-06-2008 at 07:05 PM. |
|
#6
| |||
| |||
| Thanks very much..You are right as I definitely need to study some HTML.. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| do CreLoaded templates work on oscmax? Also do oscommerce contribs work on oscmax? | Misery_Kitty | osCMax v2 Installation issues | 7 | 02-12-2008 02:06 AM |