osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Oops what have I done wrong?

This is a discussion on Oops what have I done wrong? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I'm writing a template and I have used sprys from the new dreamweaver but when I upload it each spry ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 07-29-2008, 02:08 PM
osCMax Testing Team
 
Join Date: Jul 2008
Posts: 19
Thanks: 15
Thanked 1 Time in 1 Post
Rep Power: 0
Anomily is on a distinguished road
Default Oops what have I done wrong?

I'm writing a template and I have used sprys from the new dreamweaver but when I upload it each spry produces a new mainpage and copy of the template. This template will provided free to the community if I ever get the damn thing working right. Here is my code. I know its the bts template from hell right now but I'm trying and understand this is my first attempt at a contribution to the community.

PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="XHTML namespace">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css"> 
<!-- 
body  {
 font: 100% Verdana, Arial, Helvetica, sans-serif;
 background: #666666;
 margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
 padding: 0;
 text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
 color: #000000;
}
/* Tips for Elastic layouts 
1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
*/
.twoColElsLtHdr #container { 
 width: 46em;  /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */
 background: #FFFFFF;
 margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
 border: 1px solid #000000;
 text-align: left; /* this overrides the text-align: center on the body element. */

.twoColElsLtHdr #header { 
 background: #DDDDDD; 
 padding: 0 10px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */

.twoColElsLtHdr #header h1 {
 margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
 padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
/* Tips for sidebar1:
1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width. 
3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".twoColElsLtHdr #sidebar1 p" rule.
*/
.twoColElsLtHdr #sidebar1 {
 float: left; 
 width: 12em; /* since this element is floated, a width must be given */
 background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
 padding: 15px 0; /* top and bottom padding create visual space within this div */
}
.twoColElsLtHdr #sidebar1 h3, .twoColElsLtHdr #sidebar1 p {
 margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
 margin-right: 10px;
}
/* Tips for mainContent:
1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
*/
.twoColElsLtHdr #mainContent {
 margin: 0 1.5em 0 13em; /* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */

.twoColElsLtHdr #footer { 
 padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
 background:#DDDDDD;

.twoColElsLtHdr #footer p {
 margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
 padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
 float: right;
 margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
 float: left;
 margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
 clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
}
--> 
</style>
<!--[if IE]>
<style type="text/css"> 
/* place css fixes for all versions of IE in this conditional comment */
.twoColElsLtHdr #sidebar1 { padding-top: 30px; }
.twoColElsLtHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<script src="../SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#apDiv1 {
 position:absolute;
 width:571px;
 height:306px;
 z-index:1;
 left: 292px;
 top: 70px;
}
.style4 {font-size: 10px}
.style6 {font-size: x-small}
.style7 {font-size: small}
-->
</style>
</head>
<body class="twoColElsLtHdr">
<div id="container">
  <div id="header">
    <h1>
      <?php require(DIR_WS_INCLUDES 'warnings.php'); ?>
      <?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
?>
    </h1>
    <div align="right"><a href="#" onclick="javascript:window.open('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img  src="https://www.paypal.com/en_US/i/bnr/horizontal_solution_PPeCheck.gif" alt="Solution Graphics" width="200" height="60" border="0" /></a>
    </div>
    <table width="714" height="179" border="1">
      <tr>
        <td colspan="2" rowspan="3">Logo</td>
        <td width="189"><div align="right"><span class="style7">Magazine</span></div></td>
        <td width="125"><div align="right"><span class="style7">Comming Soon</span></div></td>
        <td width="115"><div align="right"><span class="style7">New Arrivals</span></div></td>
        <td width="77"><div align="right"><span class="style7">Sales</span></div></td>
      </tr>
      <tr>
        <td height="28" colspan="4"><form name="quick_find" method="get" action="Advanced Search : Giggeek.com">
 <input type="text" name="keywords" size="150" maxlength="150" value="" style="width: 350px">&nbsp;
 <input type="submit" value="go">
 <a href="Advanced Search : Giggeek.com">
 <b style="font-size:8pt;">Advanced Search</b></a>
        </form></td>
      </tr>
      <tr>
        <td colspan="4"><span class="style6">By Series: </span>
          <table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
  <td height="12" align=center class=main>
<span class="style4"><a href=index.php?cName=<?php echo $cName?>&alpha=a> A</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=b>B</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=c>C</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=d>D</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=e>E</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=f>F</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=g>G</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=h>H</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=i>I</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=j>J</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=k>K</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=l>L</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=m>M</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=n>N</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=o>O</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=p>P</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=q>Q</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=r>R</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=s>S</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=t>T</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=u>U</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=v>V</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=w>W</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=x>X</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=y>Y</a> |
<a href=index.php?cName=<?php echo $cName?>&alpha=z>Z</a></span><br /></td>
</tr></table>  </td>
      </tr>
      <tr>
        <td width="93" height="62"><span class="style6">wishlist</span></td>
        <td width="75"><span class="style6">home</span></td>
        <td><form action="Giggeek.com : Welcome to Giggeek" method="get" name="currencies" id="currencies">
          <select onchange="this.form.submit();" name="currency">
            <option value="USD" selected="selected">US   Dollar</option>
            <option value="EUR">Euro</option>
            <option value="GBP">British   Pound</option>
            <option value="MXN">Peso</option>
            <option value="CAD">Canadian   Dollars</option>
            <option value="HKD">Hong Kong Dollar</option>
            <option value="JPY">Japanese Yen</option>
          </select>
        </form>
        </td>
        <td colspan="3"><span class="style6">E-mail:</span>
          <input title="Your Google Toolbar can fill this in for you. Select AutoFill" maxlength="100" size="20" name="email_address" />
          <br />
          <span class="style6">Passw:</span>
          <input type="password" maxlength="40" size="20" value="" name="password" />
          <input title=" Sign In " type="image" alt="Sign In" src="includes/languages/english/images/buttons/button_login.gif" border="0" /></td>
      </tr>
      <tr>
        <td height="22" colspan="4"><table border="0" cellpadding="0" cellspacing="0" align="center">
          <tr><td align="center"></td></tr>
  <tr><td align="center"></td>
  </tr>
        </table>          
        <span class="headerNavigation"><?php echo $breadcrumb->trail(' &raquo; '); ?></span></td>
        <td height="22" colspan="2"><a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>" class="headerNavigation"> </a> <span 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></span>|<a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"> 
           <?php ?>
        <a href="<?php echo tep_href_link(FILENAME_ACCOUNT'''SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT?></a> | <?php echo HEADER_TITLE_CART_CONTENTS?> |<a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT?></a></td>
      </tr>
    </table>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">Anime</li>
        <li class="TabbedPanelsTab" tabindex="0">Music</li>
        <li class="TabbedPanelsTab" tabindex="0">Art &amp; Supplies</li>
        <li class="TabbedPanelsTab" tabindex="0">Games</li>
        <li class="TabbedPanelsTab" tabindex="0">Books</li>
        <li class="TabbedPanelsTab" tabindex="0">Plush</li>
        <li class="TabbedPanelsTab" tabindex="0">Apparel</li>
        <li class="TabbedPanelsTab" tabindex="0">Wall - Scrolls</li>
        <li class="TabbedPanelsTab" tabindex="0">Graphic Novels</li>
        <li class="TabbedPanelsTab" tabindex="0">Manga</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">
          <table width="710" border="1">
            <tr>
              <td width="130"><p class="VTabbedPanels">&nbsp;</p>
              </td>
              <td width="564"><?php
     
require (bts_select ('content')); // BTSv1.5
            
?>
              <p>&nbsp;</p></td>
            </tr>
          </table>
        </div>
        <div class="TabbedPanelsContent">
          <table width="710" border="1">
            <tr>
              <td width="169">&nbsp;</td>
              <td width="525"><?php
     
require (bts_select ('content')); // BTSv1.5
            
?></td>
            </tr>
          </table>
        </div>
        <div class="TabbedPanelsContent">
          <table width="710" border="1">
            <tr>
              <td width="169">&nbsp;</td>
              <td width="525"><?php
     
require (bts_select ('content')); // BTSv1.5
            
?></td>
            </tr>
          </table>
        </div>
        <div class="TabbedPanelsContent">
          <table width="710" border="1">
            <tr>
              <td width="169">&nbsp;</td>
              <td width="525"><?php
     
require (bts_select ('content')); // BTSv1.5
            
?></td>
            </tr>
          </table>
        </div>
        <div class="TabbedPanelsContent">
          <table width="710" border="1">
            <tr>
              <td width="169">&nbsp;</td>
              <td width="525"><?php
     
require (bts_select ('content')); // BTSv1.5
            
?></td>
            </tr>
          </table>
        </div>
        <div class="TabbedPanelsContent">
          <table width="710" border="1">
            <tr>
              <td width="169">&nbsp;</td>
              <td width="525"><?php
     
require (bts_select ('content')); // BTSv1.5
            
?></td>
            </tr>
          </table>
        </div>
        <div class="TabbedPanelsContent">Content 10
          <table width="710" border="1">
            <tr>
              <td width="169">&nbsp;</td>
              <td width="525"><?php
     
require (bts_select ('content')); // BTSv1.5
            
?></td>
            </tr>
          </table>
        </div>
        <div class="TabbedPanelsContent">
          <p>Content 5</p>
          <table width="710" border="1">
            <tr>
              <td width="169">&nbsp;</td>
              <td width="525"><?php
     
require (bts_select ('content')); // BTSv1.5
            
?></td>
            </tr>
          </table>
        </div>
        <div class="TabbedPanelsContent">
          <p>Content 4</p>
          <table width="710" border="1">
            <tr>
              <td width="169">&nbsp;</td>
              <td width="525"><?php
     
require (bts_select ('content')); // BTSv1.5
            
?></td>
            </tr>
          </table>
        </div>
        <div class="TabbedPanelsContent">
          <table width="710" border="1">
            <tr>
              <td width="130">&nbsp;</td>
              <td width="564"><?php
     
require (bts_select ('content')); // BTSv1.5
            
?></td>
            </tr>
          </table>
        </div>
      </div>
    </div>
  <!-- end #header --></div>
<br class="clearfloat" />
   <div id="footer">
    <form id="form1" name="form1" method="post" action="">
      <label></label>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr class="footer">
          <td class="footer"><?php require(DIR_WS_INCLUDES 'counter.php'); ?></td>
          <td align="right" class="footer">&nbsp;</td>
        </tr>
        <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>
      <p align="center" class="smallText">
        <?php 
  
echo FOOTER_TEXT_BODY
?>
</p>
     </form>
    <p>
      <?php
  
if ($banner tep_banner_exists('dynamic''footer')) {
?>
      <?php
  
}
?>
    </p>
  <!-- end #footer --></div>
<!-- end #container --></div>
<script type="text/javascript">
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
The reason I am configuring this template with the center table is to have conditional search links (categories) for product content that are only relevant to the section you are in. For Example: You click Manga a main manga page will load down the side there will be another group of links to help you sort 6000 products, Like Historical Manga or Religious Manga, or Aventure Manga. you get the picture each of the clicks would pull up that genre of product to the center. with a secondary spry menu. Maybe I'm just overthinking this but I'm doing it to make the templates look more commercial as well as more functional, currently the weight of the products in the current layout of oscmax is lost in all the little boxes, so I figured this would help everyone show really what there site is about give them great navigation and be able to distinguish what is interface from what is product. Sorry if I'm rambling but I thought I should give a reason on why I'm trying to change the template so much. I do believe that spry could change the face of oscmax for the better but maybe I don't really need it or maybe there is a easier way that I'm just not thinking of so I'm putting it out on forum to engage the thoughts of others.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Tags
free template, spry

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Wrong value sent to paypal spottedhaggis osCMax v2 Customization/Mods 2 08-28-2006 04:43 PM
no pictures/wrong location bersh31 osCMax v2 Installation issues 1 10-12-2005 02:42 PM
Wrong rounding Hman osCommerce 2.2 Installation Help 0 12-13-2003 09:08 AM
What am I doing wrong wih MoPics? Anonymous osCMax v1.7 Discussion 0 10-30-2003 08:19 AM


All times are GMT -8. The time now is 04:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax