Guest Posted July 5, 2004 Share Posted July 5, 2004 OK, still nothing.. here is what I have done I added all of the original content for this upgrade. EXCEPT for the coolmenu.php under left colum. I added all 3 upgrades HJP posted, then I went back and took out all the cool menu thing's out of each file under the catalog folder. Still nothing. I'm sure it is something simple and small that I'm just not seeing any help would be great Thansk chris Quote Link to comment Share on other sites More sharing options...
mix Posted July 5, 2004 Share Posted July 5, 2004 I have tested numerous coolmenu sites at anybrowser.com, and most simply display a blank white box with the javascript disabled. However, the coolmenu author's site (www.geraeteland.de) somehow manages to dispaly coolmenu even with anybrowser. Any ideas how that can be achieved ? Even on the author's site www.geraeteland.de I can't see coolmenu when I've javascript disabled... I'm using a non javascript menu when it's disabled. Anyway, anyone knows how I can set the cache function to work with the coolmenu when the cache is enabled ? Quote Link to comment Share on other sites More sharing options...
hjp Posted July 5, 2004 Share Posted July 5, 2004 OK, still nothing.. here is what I have doneI added all of the original content for this upgrade. EXCEPT for the coolmenu.php under left colum. I added all 3 upgrades HJP posted, then I went back and took out all the cool menu thing's out of each file under the catalog folder. Still nothing. I'm sure it is something simple and small that I'm just not seeing any help would be great Thansk chris Have you indeed.  What about the catalog/includes/boxes/coolmenu.php  I don't see: <div id="topm">  anywhere in the source code of your site.  So maybe you could show me the file:  catalog/includes/boxes/coolmenu.php Quote Link to comment Share on other sites More sharing options...
Guest Posted July 5, 2004 Share Posted July 5, 2004 cat/incl/boxes/coolmenu.php  <?php /* ------------------------------------------------  coolMenu for osCommerce   author: Andreas Kothe  url:  http://www.oddbyte.de  Released under the GNU General Public License   ------------------------------------------------ */ ?> <!-- coolMenu //--> <!-- copyright 2003 Andreas Kothe - www.oddbyte.de // -->  <TR>   <TD> <?php  $info_box_contents = array();  $info_box_contents[] = array('align' => 'left',      'text'  => 'coolMenu'     );  new infoBoxHeading($info_box_contents, false, false);  $info_box_contents = array();  if (MAX_MANUFACTURERS_LIST < 2) { $cat_choose = array(array('id' => '', 'text' => BOX_CATEGORIES_CHOOSE));  } else { $cat_choose = '';  } //the code below ajusts the height of the coolmenu dynamically according to the number of categories in the main menu $result=tep_db_query("select parent_id from " . TABLE_CATEGORIES . " where parent_id = '0'"); $height.= A*mysql_num_rows($result)-A; //where A is the height of your oCMenu.level[0].height //experiment with the multiplyer denpending on the size of your menu $info_box_contents[] = array('text' => '<ilayer id="tlayerm"><div id="topm"><img src="images/trans.gif" width="'. BOX_WIDTH .'" height="' . $height . '"></div></ilayer>'); //BOX_WIDTH you set in .../includes/application_top.php $info_box_contents[] = array('text' => '<ilayer id="tlayerm"><div id="topm"><img src="images/trans.gif" width="'. BOX_WIDTH .'" height="' . $height . '"></div></ilayer>'); //BOX_WIDTH you set in .../includes/application_top.php  new infoBox($info_box_contents); ?>   </TD>  </TR> <!-- coolMenu_eof //--> Quote Link to comment Share on other sites More sharing options...
hjp Posted July 5, 2004 Share Posted July 5, 2004 The contents of /includes/boxes/coolmenu.php seems to be right, so  how do you then show that box?  show me your  /includes/column_left.php Quote Link to comment Share on other sites More sharing options...
Guest Posted July 5, 2004 Share Posted July 5, 2004 <?php /*  $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $  osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  Copyright (c) 2003 osCommerce  Released under the GNU General Public License */ require(DIR_WS_BOXES . 'information.php');  if ((USE_CACHE == 'true') && empty($SID)) {   echo tep_cache_categories_box();  } else { include(DIR_WS_BOXES . 'categories.php');  }  if ((USE_CACHE == 'true') && empty($SID)) {   echo tep_cache_manufacturers_box();  } else {  // include(DIR_WS_BOXES . 'manufacturers.php');  }  //require(DIR_WS_BOXES . 'whats_new.php');   require(DIR_WS_BOXES . 'search.php');   include(DIR_WS_BOXES . 'specials.php'); ?> <td><CENTER><img src="http://winksonline.com/catalog/images/monstergarage.jpg"></CENTER></td> Quote Link to comment Share on other sites More sharing options...
hjp Posted July 6, 2004 Share Posted July 6, 2004 (edited) That is I suppose the reason why the coolmenu don't display. Â You don't show the /includes/boxes/coolmenu.php anywhere. Â You MUST show it somewhere, either in the colum_left or right or whereever. Â Otherwise it makes no sense. Edited July 6, 2004 by hjp Quote Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2004 Share Posted July 6, 2004 so how do i actually mount it in the box??? like what code do i mess with Quote Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2004 Share Posted July 6, 2004 ok, I put the cool menu link right under the categories tag now I have a poinltess box on the left side Quote Link to comment Share on other sites More sharing options...
hjp Posted July 6, 2004 Share Posted July 6, 2004 ok, I put the cool menu link right under the categories tagnow I have a poinltess box on the left side Well aren't you up and running now. Â The rest is up to you. Â You must ajust the coolmenu's css and collmenu javascript to fit your needs. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2004 Share Posted July 6, 2004 ok, I think I worked out the mounting part, right now I can not figure why this empty box is here and also I can not find where in the style sheet I can change the color's.. Quote Link to comment Share on other sites More sharing options...
indigo11 Posted July 6, 2004 Share Posted July 6, 2004 HI, I'm using STS and trying to use coolmenu with no sucess...does anyone had the same problem? Â Thanks Quote Link to comment Share on other sites More sharing options...
hjp Posted July 6, 2004 Share Posted July 6, 2004 HI,I'm using STS and trying to use coolmenu with no sucess...does anyone had the same problem? Â Thanks I don't use the STS but were curious and played around with it for ? an hour. Â When using my own solution of coolmenu I could get something to work with STS also. Quote Link to comment Share on other sites More sharing options...
hjp Posted July 6, 2004 Share Posted July 6, 2004 (edited) ok, I think I worked out the mounting part, right now I can not figure why this empty box is here and also I can not find where in the style sheet I can change the color's.. You will have to do some homework and learn about CSS and maybe javascript.  To find out about changing stylesheet colors, you simply have to change some colors in your stylesheet. From the coolmenu contribution, it should be easy to see what part is related to coolmenu. I suggest you make a backup of the stylesheet first.  I can give you som hints on coolmenu.  The origin of coolmenu and explanation on how it works yu'll find on  http://www.dhtmlcentral.com/   But shortly it is like this:   .clLevel0 is top level .clLevel0over is toplevel on mouse over .clLevel0border is top level border .clLevel1 is first sub level .clLevel1over is first sub level on mouse over .clLevel1border is first sub level border etc.  You can make your own for the next and next and next sublevels  (I can see you have many) Edited July 6, 2004 by hjp Quote Link to comment Share on other sites More sharing options...
hjp Posted July 6, 2004 Share Posted July 6, 2004 I can give you another hint: Â In the CSS Â COLOR is the text color whereas background-color, layer-background-color (have to be the same color) are obviously color of the background. Â So color and background color has to be different. Quote Link to comment Share on other sites More sharing options...
Yiorgis Posted July 6, 2004 Share Posted July 6, 2004 (edited) Hi all, Â I was wondering if there is a way to limit how many levels (subcategories) to have the menu expand? Edited July 6, 2004 by Yiorgis Quote Link to comment Share on other sites More sharing options...
Guest Posted July 7, 2004 Share Posted July 7, 2004 OK, how do I add my image above the new box that cool menu created?? my old one's are in my cat/inc/lang/eng.php Quote Link to comment Share on other sites More sharing options...
indigo11 Posted July 7, 2004 Share Posted July 7, 2004 Hi, Â Does anyone installed Coolmenu with STS? i'm trying but i can't. Â Thanks Quote Link to comment Share on other sites More sharing options...
a233856 Posted July 8, 2004 Share Posted July 8, 2004 (edited) I have made all the modifications except for adding the menu_automation.js in the header. The problem is that I cannot find where to add this. The instruction indicates that is should be : Â 4.) Add the following line to EVERY SINGLE file in your catalog-directory between <HEAD> and </HEAD>. (only in the /catalog directory, NOT in any further subdirectories like /catalog/includes !!). Â <script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT> Â but I don't have a php script that has the head defined like this. ANy help will be appreciated. Â Link: http://www.sichallenge.org/catalog/index.php Edited July 8, 2004 by a233856 Quote Link to comment Share on other sites More sharing options...
hjp Posted July 8, 2004 Share Posted July 8, 2004 Hi, Does anyone installed Coolmenu with STS? i'm trying but i can't.  Thanks Yes as I told you when answering your first question, similar to this.  I have done it. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 8, 2004 Share Posted July 8, 2004 I have made all the modifications except for adding the menu_automation.js in the header. The problem is that I cannot find where to add this. The instruction indicates that is should be : 4.) Add the following line to EVERY SINGLE file in your catalog-directory between <HEAD> and </HEAD>. (only in the /catalog directory, NOT in any further subdirectories like /catalog/includes !!).  <script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT>  but I don't have a php script that has the head defined like this. ANy help will be appreciated.  Open every PHP file in you Catalog-directory (the root directory of your shop)  Here is a copy of the top section of the default.php file.  I've highlighted the sections between the <HEAD> and </HEAD> in ORANGE so you can see where they are.  I've also highlighted where I have this line of code in GREEN  <?php /* $Id: default.php,v 1.79 2002/11/23 02:08:10 thomasamoulton Exp $  osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com  Copyright © 2002 osCommerce  Released under the GNU General Public License */  require('includes/application_top.php');  // the following cPath references come from application_top.php $category_depth = 'top'; if ($cPath) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . $current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . $current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } }  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT> </head><body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">   Hope this helps. Quote Link to comment Share on other sites More sharing options...
a233856 Posted July 8, 2004 Share Posted July 8, 2004 Thanks Mark for your reply. Yes, that is very helpful. I discovered that since I'm using OSCMAX version of oscommerce I will need to find where the header gets generated to add the menu_animation.js. Â In the OSCMAX version all the files in the root directory for oscommerce have been modified and the head code has been moved. Where it has been move to is what I can't figure out. Â Any suggestions would be helpful. - thanks Quote Link to comment Share on other sites More sharing options...
hjp Posted July 8, 2004 Share Posted July 8, 2004 Thanks Mark for your reply. Yes, that is very helpful. I discovered that since I'm using OSCMAX version of oscommerce I will need to find where the header gets generated to add the menu_animation.js. Â In the OSCMAX version all the files in the root directory for oscommerce have been modified and the head code has been moved. Where it has been move to is what I can't figure out. Â Any suggestions would be helpful. - thanks could it be in main_page.tpl.php ? Quote Link to comment Share on other sites More sharing options...
a233856 Posted July 8, 2004 Share Posted July 8, 2004 That looks like it! Man, never thought to look there. Thanks very much. Quote Link to comment Share on other sites More sharing options...
vmaster Posted July 10, 2004 Share Posted July 10, 2004 Has anyone tried creating a Category Menu with CSS as per http://www.alistapart.com/articles/horizdropdowns/. The benefit would be 100% compatibility, as it does not rely heavily on Javascript/DHTML, and degraed very well with older browsers/javascript disabled. Â The end result would look just like CoolMenu, but just a lot more compatible and universal. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.