Jump to content

TimD

Members
  • Content count

    10
  • Joined

  • Last visited

Posts posted by TimD


  1. For those who are wanting to have seperate product_info.php pages under each categories so that you can follow a colour theme through then please have a look at my code below..

     

    Basically i have copied the code from the index.php part of sts_display_output.php and changed it so that it can be used for the product_info pages..

     

    Please go to around line 128 of sts_display_output.php and select the following code..

     

    /////////////////////////////////////////////
    ////// if product_info.php load data
    /////////////////////////////////////////////
    if ($scriptbasename == 'product_info.php') {
     require(STS_PRODUCT_INFO);
    }

     

    Then paste over the top this code:

     

    /////////////////////////////////////////////
    ////// if product_info.php load data
    /////////////////////////////////////////////
    //if ($scriptbasename == 'product_info.php') {
     //require(STS_PRODUCT_INFO);
    //}
    
    // See if there is a custom template file for the currently running script
    $sts_check_file = STS_TEMPLATE_DIR . $scriptbasename . ".html";
    if (file_exists($sts_check_file)) {
     // Use it
     $sts_template_file = $sts_check_file;
    } 
    
    // Are we in the product_info.php script?  If so, what is our Category Path (cPath)?
    if ($scriptbasename == "product_info.php") {
    require(STS_PRODUCT_INFO);
     // If no cPath defined, default to 0 (the home page)
     if ($cPath == "") {
    $sts_cpath = 0; 
     } else {
           $sts_cpath = $cPath;
     }
    
     // Look for category-specific template file like "product_info.php_1_17.html"
     $sts_check_file = STS_TEMPLATE_DIR . "product_info.php_$sts_cpath.html";
    
     if (file_exists($sts_check_file)) {
       // Use it
       $sts_template_file = $sts_check_file;
     } 
    
    }
    
    // Open Template file and read into a variable
    if (! file_exists($sts_template_file)) {
     echo "Template file doesn't exist: [$sts_template_file]";
    }  else {
     echo "<!-- Using Template File [$sts_template_file) -->\n";
    }
    
    if (! $fh = fopen($sts_template_file, 'r')) {
    echo "Can't open Template file: [$sts_template_file]";
    }
    
    $template_html = fread($fh, filesize($sts_template_file));
    fclose($fh);

     

    You should now be able to add template files into the sts_template folder exactly the same as you do for index.

     

    For example..

     

    product_info.php_1.html

     

    I'm sorry that my explanation is a little vague but i hope it helps a few people out..

     

    If you guys could test this out for me as i am stacked with work at the moment and have only spent 10 minutes or so testing and as far as i can see it works great.


  2. Hi Michael,

     

    Thanks for the reply, i have managed to remove the bookends however this doesn't seem to cure my problem.

     

    I'm getting the same error as before, here is an updated copy of the code generated at index.php..

     

    Kindest Regards

     

    Tim

     

    <!-- Page layout by Simple Template System (STS) v2.01 on osCommerce 2.2-MS2 - http://www.diamondsea.com/sts/ -->
    <!-- Using Template File [includes/sts_template.html) -->
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>osCommerce</title><base href="http://www.indigoonline.co.uk/websites/Hansons/catalog/">
    
    <script>
    
     oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
    
     //Menu properties
     oCMenu.pxBetween=0
     oCMenu.fromLeft=10
     oCMenu.fromTop=100
     oCMenu.rows=0
     oCMenu.menuPlacement="left"
    
     oCMenu.offlineRoot=""
     oCMenu.onlineRoot=""
     oCMenu.resizeCheck=1
     oCMenu.wait=500
     oCMenu.fillImg="cm_fill.gif"
     oCMenu.zIndex=0
    
     //Background bar properties
     oCMenu.useBar=1
     oCMenu.barWidth="menu"
     oCMenu.barHeight="menu"
     oCMenu.barClass="clBar"
     oCMenu.barX="menu"
     oCMenu.barY="menu"
     oCMenu.barBorderX=0
     oCMenu.barBorderY=0
     oCMenu.barBorderClass=""
    
     oCMenu.level[0]=new cm_makeLevel()
     oCMenu.level[0].width=150
     oCMenu.level[0].height=28
     oCMenu.level[0].regClass="clLevel0"
     oCMenu.level[0].overClass="clLevel0over"
     oCMenu.level[0].borderX=1
     oCMenu.level[0].borderY=1
     oCMenu.level[0].borderClass="clLevel0border"
     oCMenu.level[0].offsetX=0
     oCMenu.level[0].offsetY=0
     oCMenu.level[0].rows=0
     oCMenu.level[0].arrow="images/arrow.gif"
     oCMenu.level[0].arrowWidth=11
     oCMenu.level[0].arrowHeight=11
     oCMenu.level[0].align="right"
     oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.8)"
    
    	 oCMenu.level[1]=new cm_makeLevel()
    	 oCMenu.level[1].width=250
    	 oCMenu.level[1].height=14
    	 oCMenu.level[1].regClass="clLevel1"
    	 oCMenu.level[1].overClass="clLevel1over"
    	 oCMenu.level[1].borderX=1
    	 oCMenu.level[1].borderY=1
    	 oCMenu.level[1].align="right"
    	 oCMenu.level[1].offsetX=0
    	 oCMenu.level[1].offsetY=0
    	 oCMenu.level[1].borderClass="clLevel1border"
    	 oCMenu.level[1].align="right"
    	 oCMenu.level[1].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
    	 
    	 
    	 
    	 oCMenu.level[2]=new cm_makeLevel()
    	 oCMenu.level[2].width=250
    	 oCMenu.level[2].height=14
    	 oCMenu.level[2].regClass="clLevel1"
    	 oCMenu.level[2].overClass="clLevel1over"
    	 oCMenu.level[2].borderX=1
    	 oCMenu.level[2].borderY=1
    	 oCMenu.level[2].align="right"
    	 oCMenu.level[2].offsetX=0
    	 oCMenu.level[2].offsetY=0
    	 oCMenu.level[2].borderClass="clLevel1border"
    	 oCMenu.level[2].align="right"
    	 oCMenu.level[2].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
    	 
    	 
    	 
    	 oCMenu.level[3]=new cm_makeLevel()
    	 oCMenu.level[3].width=250
    	 oCMenu.level[3].height=14
    	 oCMenu.level[3].regClass="clLevel1"
    	 oCMenu.level[3].overClass="clLevel1over"
    	 oCMenu.level[3].borderX=1
    	 oCMenu.level[3].borderY=1
    	 oCMenu.level[3].align="right"
    	 oCMenu.level[3].offsetX=0
    	 oCMenu.level[3].offsetY=0
    	 oCMenu.level[3].borderClass="clLevel1border"
    	 oCMenu.level[3].align="right"
    	 oCMenu.level[3].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
    	 
    	 
     oCMenu.makeMenu('top_1','','Aqua','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=1')
    oCMenu.makeMenu('top_2','','Aries','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=2')
    oCMenu.makeMenu('top_3','','Base Nova','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=3')
    oCMenu.makeMenu('top_4','','Class','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=4')
    oCMenu.makeMenu('top_5','','Fay','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=5')
    oCMenu.makeMenu('top_6','','Gems','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=6')
    oCMenu.makeMenu('top_7','','Leo','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=7')
    oCMenu.makeMenu('top_8','','Promo','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=8')
    oCMenu.makeMenu('top_9','','Speciale','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=9')
    
    
     // create menu
     oCMenu.construct()
    
       <!--  Copyright 2002 www.dhtmlcentral.com  --  modified for PHP and osCommerce by Andreas Kothe - www.oddbyte.de	-->
    
     </SCRIPT><!-- coolMenu_eof //-->
    <!-- header //-->
    
    
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
    
    <body leftmargin="0" topmargin="0">
    
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr> 
       <td width="150" background="images/lines.bg.gif"></td>
       <td width="160" align="right" valign="top"><img src="images/cabinet2full.jpg" width="68" height="115"></td>
       <td width="320" align="right" bgcolor="#004890"><img src="images/cabinet1.top.jpg" width="102" height="115"></td>
       <td width="130"><img src="images/logo.gif" width="130" height="115"></td>
     </tr>
    </table>
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr> 
       <td width="448" bgcolor="A6B0D4"><img src="images/logo.jpg" width="448" height="108"></td>
    
       <td align="right" bgcolor="A6B0D4"><img src="images/cabinet1.bottom.jpg" width="102" height="108"></td>
       <td width="130" bgcolor="A6B0D4"> </td>
     </tr>
    </table>
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr> 
       <td width="150" valign="top" background="images/lines.bg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="3">
           <tr> 
             <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
    <!-- start coolmenubox //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
    
       <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
       <td width="100%" height="14" class="infoBoxHeading">coolMenu</td>
       <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
     </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
     <tr>
    
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
     <tr>
       <td class="boxText">
    <img src="images/trans.gif" width="150" height="23.85"></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
    
    </table>
    </td>
     </tr>
    </table>
    <!-- end coolmenubox //-->
    <br>
    <!-- start categorybox //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="14"></td>
       <td width="100%" height="14" class="infoBoxHeading">Categories</td>
       <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
    
     </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
     <tr>
       <td class="boxText"><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=1">Aqua</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=2">Aries</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=3">Base Nova</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=4">Class</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=5">Fay</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=6">Gems</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=7">Leo</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=8">Promo</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=9">Speciale</a><br></td>
    
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
    </table>
    </td>
     </tr>
    </table>
    <!-- end categorybox //-->
    </font> 
             </td>
           </tr>
    
         </table></td>
       <td width="160" align="right" valign="bottom"><img src="images/cabinets2full.jpg" width="139" height="97"></td>
       <td width="320" valign="top" bgcolor="004890"> 
         <table width="100%" border="0" cellspacing="0" cellpadding="3">
           <tr> 
             <td><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">
    <!-- start content //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
    
             <td class="main"><table width="320" border="0" cellspacing="0" cellpadding="0">
     <tr> 
       <td width="115" valign="top"><img src="front_image.jpg" width="115" height="146"></td>
       <td width="2" valign="top"> </td>
       <td valign="top"><div align="justify"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Lorem 
           ipsum dolor sit amet, consectetuer adipiscing elit. Integer blandit faucibus 
           magna. Nullam dictum hendrerit mauris. Donec eu nunc a nulla vestibulum 
           fringilla. Donec dui. Maecenas a nibh. Sed posuere sem et arcu. Nunc ullamcorper. 
           Nulla justo. Vivamus viverra ante quis justo. Morbi tempor aliquam leo. 
           Cum sociis natoque penatibus et magnis dis parturient montes, nascetur 
           ridiculus mus. Sed ut ante. Aliquam at ante nec augue vulputate ultricies. 
           </font> </div>
         <p align="justify"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Sed 
           luctus mauris vel odio. Etiam turpis nibh, cursus eu, mattis a, dignissim 
           et, neque. Vivamus turpis velit, sollicitudin non, nonummy nec, euismod 
           sed, ligula. Cras quam. Maecenas a eros ut dolor egestas porttitor. Aenean 
           in velit pharetra diam sollicitudin bibendum.</font>. 
         </p></td>
       <td width="2" valign="top"> </td>
    
     </tr>
    </table>
    </td>
             </tr>
             <tr>
               <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
             </tr>
             <tr>
               <td></td>
             </tr>
    
           </table></td>
         </tr>
       </table>
    <!-- end content //-->
    </font> 
             </td>
           </tr>
         </table>
       </td>
       <td width="130" align="center" valign="top"> <img src="images/right.gif" width="130" border="0" usemap="#Map"> 
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
    
           <tr> 
             <td align="center"><form name="quick_find" action="http://www.indigoonline.co.uk/websites/Hansons/catalog/advanced_search_result.php" method="get">
     <input type="text" name="keywords" size="15" maxlength="30" class="textboxes" >
                 <br>
                   
                 <input type="image" title=" Quick Find " src="images/search.gif" alt="Quick Find" width="42" height="16" border="0">
                 <br>
                 <font color="8398C8" size="1" face="Verdana, Arial, Helvetica, sans-serif">Use 
                 keywords to find the product you are looking for.</font><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><br>
                 <a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/advanced_search.php"><b>Advanced 
                 Search</b></a></font>
    
    </form></td>
           </tr>
           <tr>
             <td align="center"><img src="images/rightbottom.gif" width="130" height="1"></td>
           </tr>
         </table></td>
     </tr>
     <tr> 
       <td width="150"></td>
       <td width="160" align="right" valign="bottom"></td>
    
       <td width="310" background="images/footer.gif" bgcolor="004890"><img src="images/footer.gif" width="2" height="25"></td>
       <td width="130"></td>
     </tr>
     </table>
     
    <map name="Map">
     <area shape="rect" coords="2,17,72,32" href="account.php">
     <area shape="rect" coords="3,36,82,49" href="shopping_cart.php">
     <area shape="rect" coords="2,54,58,66" href="checkout_shipping.php">
    </map>
    
    </body>
    </html>


  3. I am having a little trouble with CoolMenu and STS..

     

    I have got as far as adding all the files onto the site and creating the new call for the coolmenu block. The call was working fine as far as i was aware. Here is the code i placed in the sts_user_code.php file:

     

     $sts_block_name = 'coolmenubox';
    require(STS_START_CAPTURE);
    require(DIR_WS_BOXES . 'coolmenu.php');
    require(STS_STOP_CAPTURE);
    $template['coolmenubox'] = strip_unwanted_tags($sts_block['coolmenubox'], 'coolmenubox');

     

    This allowed me to add the $coolmenubox variable into my sts_template.html file. This displayed an empty box and gave me the following error:

     

    'MakeCM' is Undefined

     

    On the following line:

     

    oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

     

    From what i can see the code is being created fine for the menu, here is my full index.php file which is created when it is accessed in internet explorer.

     

    hopefully this wont be too big:

     

    <!-- Page layout by Simple Template System (STS) v2.01 on osCommerce 2.2-MS2 - http://www.diamondsea.com/sts/ -->
    <!-- Using Template File [includes/sts_template.html) -->
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>osCommerce</title><base href="http://www.indigoonline.co.uk/websites/Hansons/catalog/">
    
    <!-- start get_javascript(applicationtop2header) //-->
    <script>
    
     oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
    
     //Menu properties
     oCMenu.pxBetween=0
     oCMenu.fromLeft=10
     oCMenu.fromTop=100
     oCMenu.rows=0
     oCMenu.menuPlacement="left"
    
     oCMenu.offlineRoot=""
     oCMenu.onlineRoot=""
     oCMenu.resizeCheck=1
     oCMenu.wait=500
     oCMenu.fillImg="cm_fill.gif"
     oCMenu.zIndex=0
    
     //Background bar properties
     oCMenu.useBar=1
     oCMenu.barWidth="menu"
     oCMenu.barHeight="menu"
     oCMenu.barClass="clBar"
     oCMenu.barX="menu"
     oCMenu.barY="menu"
     oCMenu.barBorderX=0
     oCMenu.barBorderY=0
     oCMenu.barBorderClass=""
    
     oCMenu.level[0]=new cm_makeLevel()
     oCMenu.level[0].width=150
     oCMenu.level[0].height=28
     oCMenu.level[0].regClass="clLevel0"
     oCMenu.level[0].overClass="clLevel0over"
     oCMenu.level[0].borderX=1
     oCMenu.level[0].borderY=1
     oCMenu.level[0].borderClass="clLevel0border"
     oCMenu.level[0].offsetX=0
     oCMenu.level[0].offsetY=0
     oCMenu.level[0].rows=0
     oCMenu.level[0].arrow="images/arrow.gif"
     oCMenu.level[0].arrowWidth=11
     oCMenu.level[0].arrowHeight=11
     oCMenu.level[0].align="right"
     oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.8)"
    
    	 oCMenu.level[1]=new cm_makeLevel()
    	 oCMenu.level[1].width=250
    	 oCMenu.level[1].height=14
    	 oCMenu.level[1].regClass="clLevel1"
    	 oCMenu.level[1].overClass="clLevel1over"
    	 oCMenu.level[1].borderX=1
    	 oCMenu.level[1].borderY=1
    	 oCMenu.level[1].align="right"
    	 oCMenu.level[1].offsetX=0
    	 oCMenu.level[1].offsetY=0
    	 oCMenu.level[1].borderClass="clLevel1border"
    	 oCMenu.level[1].align="right"
    	 oCMenu.level[1].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
    	 
    	 
    	 
    	 oCMenu.level[2]=new cm_makeLevel()
    	 oCMenu.level[2].width=250
    	 oCMenu.level[2].height=14
    	 oCMenu.level[2].regClass="clLevel1"
    	 oCMenu.level[2].overClass="clLevel1over"
    	 oCMenu.level[2].borderX=1
    	 oCMenu.level[2].borderY=1
    	 oCMenu.level[2].align="right"
    	 oCMenu.level[2].offsetX=0
    	 oCMenu.level[2].offsetY=0
    	 oCMenu.level[2].borderClass="clLevel1border"
    	 oCMenu.level[2].align="right"
    	 oCMenu.level[2].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
    	 
    	 
    	 
    	 oCMenu.level[3]=new cm_makeLevel()
    	 oCMenu.level[3].width=250
    	 oCMenu.level[3].height=14
    	 oCMenu.level[3].regClass="clLevel1"
    	 oCMenu.level[3].overClass="clLevel1over"
    	 oCMenu.level[3].borderX=1
    	 oCMenu.level[3].borderY=1
    	 oCMenu.level[3].align="right"
    	 oCMenu.level[3].offsetX=0
    	 oCMenu.level[3].offsetY=0
    	 oCMenu.level[3].borderClass="clLevel1border"
    	 oCMenu.level[3].align="right"
    	 oCMenu.level[3].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"
    	 
    	 
     oCMenu.makeMenu('top_1','','Aqua','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=1&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
    oCMenu.makeMenu('top_2','','Aries','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=2&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
    oCMenu.makeMenu('top_3','','Base Nova','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=3&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
    oCMenu.makeMenu('top_4','','Class','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=4&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
    oCMenu.makeMenu('top_5','','Fay','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=5&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
    oCMenu.makeMenu('top_6','','Gems','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=6&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
    oCMenu.makeMenu('top_7','','Leo','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=7&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
    oCMenu.makeMenu('top_8','','Promo','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=8&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
    oCMenu.makeMenu('top_9','','Speciale','http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=9&osCsid=e08a68827a3f03d431c5bcd9db9de14a')
    
    
     // create menu
     oCMenu.construct()
    
       <!--  Copyright 2002 www.dhtmlcentral.com  --  modified for PHP and osCommerce by Andreas Kothe - www.oddbyte.de	-->
    
     </SCRIPT><!-- coolMenu_eof //-->
    <!-- header //-->
    
    <!-- end get_javascript(applicationtop2header) //-->
    
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
    
    <body leftmargin="0" topmargin="0">
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr> 
       <td width="150" background="images/lines.bg.gif"></td>
       <td width="160" align="right" valign="top"><img src="images/cabinet2full.jpg" width="68" height="115"></td>
       <td width="320" align="right" bgcolor="#004890"><img src="images/cabinet1.top.jpg" width="102" height="115"></td>
       <td width="130"><img src="images/logo.gif" width="130" height="115"></td>
     </tr>
    </table>
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr> 
       <td width="448" bgcolor="A6B0D4"><img src="images/logo.jpg" width="448" height="108"></td>
       <td align="right" bgcolor="A6B0D4"><img src="images/cabinet1.bottom.jpg" width="102" height="108"></td>
       <td width="130" bgcolor="A6B0D4"> </td>
     </tr>
    </table>
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr> 
       <td width="150" valign="top" background="images/lines.bg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="3">
           <tr> 
             <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
    <!-- start coolmenubox //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
       <td width="100%" height="14" class="infoBoxHeading">coolMenu</td>
       <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
     </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
     <tr>
       <td class="boxText">
    <img src="images/trans.gif" width="150" height="23.85"></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
    </table>
    </td>
     </tr>
    </table>
    <!-- end coolmenubox //-->
    <br>
    <!-- start categorybox //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="14"></td>
       <td width="100%" height="14" class="infoBoxHeading">Categories</td>
       <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
     </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
     <tr>
       <td class="boxText"><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=1&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Aqua</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=2&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Aries</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=3&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Base Nova</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=4&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Class</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=5&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Fay</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=6&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Gems</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=7&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Leo</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=8&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Promo</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/index.php?cPath=9&osCsid=e08a68827a3f03d431c5bcd9db9de14a">Speciale</a><br></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
    </table>
    </td>
     </tr>
    </table>
    <!-- end categorybox //-->
    </font> 
             </td>
           </tr>
         </table></td>
       <td width="160" align="right" valign="bottom"><img src="images/cabinets2full.jpg" width="139" height="97"></td>
       <td width="320" valign="top" bgcolor="004890"> 
         <table width="100%" border="0" cellspacing="0" cellpadding="3">
           <tr> 
             <td><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">
    <!-- start content //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
    
             <td class="main"><table width="320" border="0" cellspacing="0" cellpadding="0">
     <tr> 
       <td width="115" valign="top"><img src="front_image.jpg" width="115" height="146"></td>
       <td width="2" valign="top"> </td>
       <td valign="top"><div align="justify"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Lorem 
           ipsum dolor sit amet, consectetuer adipiscing elit. Integer blandit faucibus 
           magna. Nullam dictum hendrerit mauris. Donec eu nunc a nulla vestibulum 
           fringilla. Donec dui. Maecenas a nibh. Sed posuere sem et arcu. Nunc ullamcorper. 
           Nulla justo. Vivamus viverra ante quis justo. Morbi tempor aliquam leo. 
           Cum sociis natoque penatibus et magnis dis parturient montes, nascetur 
           ridiculus mus. Sed ut ante. Aliquam at ante nec augue vulputate ultricies. 
           </font> </div>
         <p align="justify"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">Sed 
           luctus mauris vel odio. Etiam turpis nibh, cursus eu, mattis a, dignissim 
           et, neque. Vivamus turpis velit, sollicitudin non, nonummy nec, euismod 
           sed, ligula. Cras quam. Maecenas a eros ut dolor egestas porttitor. Aenean 
           in velit pharetra diam sollicitudin bibendum.</font>. 
         </p></td>
       <td width="2" valign="top"> </td>
     </tr>
    </table>
    </td>
             </tr>
             <tr>
               <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
             </tr>
             <tr>
               <td></td>
             </tr>
           </table></td>
         </tr>
       </table>
    <!-- end content //-->
    </font> 
             </td>
           </tr>
         </table>
       </td>
       <td width="130" align="center" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="3">
           <tr> 
             <td align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
    <!-- start cartbox //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
       <td width="100%" height="14" class="infoBoxHeading">Shopping Cart</td>
       <td height="14" class="infoBoxHeading" nowrap><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/shopping_cart.php?osCsid=e08a68827a3f03d431c5bcd9db9de14a"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a><img src="images/infobox/corner_right.gif" border="0" alt="" width="11" height="14"></td>
     </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox1">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents1">
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
     <tr>
       <td class="boxText">0 items</td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
    </table>
    </td>
     </tr>
    </table>
    <!-- end cartbox //-->
    <br>
               
    <!-- start informationbox //-->
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
       <td width="100%" height="14" class="infoBoxHeading">Information</td>
       <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
     </tr>
    </table>
    <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
     <tr>
       <td class="boxText"><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/shipping.php?osCsid=e08a68827a3f03d431c5bcd9db9de14a">Shipping & Returns</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/privacy.php?osCsid=e08a68827a3f03d431c5bcd9db9de14a">Privacy Notice</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/conditions.php?osCsid=e08a68827a3f03d431c5bcd9db9de14a">Conditions of Use</a><br><a href="http://www.indigoonline.co.uk/websites/Hansons/catalog/contact_us.php?osCsid=e08a68827a3f03d431c5bcd9db9de14a">Contact Us</a></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
     </tr>
    </table>
    </td>
     </tr>
    </table>
    <!-- end informationbox //-->
    </font></td>
           </tr>
         </table></td>
     </tr>
     <tr> 
       <td width="150"></td>
       <td width="160" align="right" valign="bottom"></td>
       <td width="310" background="images/footer.gif" bgcolor="004890"><img src="images/footer.gif" width="2" height="25"></td>
       <td width="130"></td>
     </tr>
     </table>
     </body>
    </html>

     

    As you can probably see the links are being created fine, it's just the outputting of these links that isn't working.

     

    Any help with this will be greatly appreciated..

     

    Kindest Regards

     

    Tim


  4. I have a problem with the script. I have spent all evening searching the forums and reading then re-reding the thread. I can't seem to find anything that my be able to fix my problem..

     

    The script seems to work fine but the guy i did the website for has just uploaded an image and it the thumbnail is white. The path looks fine, i just can't figure why its doing it..

     

    Here is a link to the page in question..

     

    http://www.meinhost.net/HeadTurning/produc...?products_id=52

     

    I am puxxled with this one, i have tried to upload a number of image files from my machine and i am not hitting problems unless i save the image he uploaded and upload that one.

     

    I have tested this on two seperate servers and i get the EXACT same problem. As you can see GD is working to some extent i guess its hitting a problem somewhere with the formatting of the image..

     

    Subsequently if i open the jpg in photoshop and save it for web under a different name the image works fine.

     

    Hopefullyy we can sort this some way or another.

     

    Kindest Regards

     

    Tim

×