Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

coolMenu


Keyser Soze

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

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 ?

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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 //-->

Link to comment
Share on other sites

<?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>

Link to comment
Share on other sites

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 by hjp
Link to comment
Share on other sites

ok, I put the cool menu link right under the categories tag

now 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.

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by hjp
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by a233856
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...