This is a discussion on Problem installing Cool Menu mod within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; I have made all the modifications except for adding the menu_automation.js in the header. The problem is that I cannot ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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. Here are the instructions but with MS2-MAX the header is not defined as described in the modification instructions. Can someone point me in the right direction as to how to add the menu_automation.js to the header section in MS2-MAX? Modification INSTRUCTIONS for oscommerce default installation: 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"> Thanks... |
|
#2
| |||
| |||
| Maybe a better question would be : Where is the <head> tag setup or defined in OSCMAX? -OR- What file has the java script defined for each page? |
|
#3
| ||||
| ||||
| Would you be looking for main_page.tpl.php in the template directory?
__________________ JPF - osCMax Fourm Moderator Try out our osCMax at: Live Catalog Demo Limited access Admin: Live Admin Demo Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped! |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding cool menu and keeping the catorory menu??? | Kyle_Bassett | osCMax v2 Customization/Mods | 0 | 10-18-2005 09:17 AM |
| Cool Menu disappears behind Attrib Drop down box | cacooke | osCMax v2 Customization/Mods | 2 | 08-08-2005 06:53 PM |
| DHTML cool menu problem | leeb | osCommerce 2.2 Modification Help | 0 | 01-13-2005 06:22 PM |
| Dhtml Menu Problem | kolamon | osCMax v1.7 General Mods Discussion | 3 | 01-10-2005 03:24 PM |
| Cool menu install question. | Craig | osCommerce 2.2 Modification Help | 5 | 09-18-2004 07:01 PM |