// $Id: UPGRADE.txt,v 1.7 2010-04-22 18:48:18 add1sun Exp $ NICE MENUS UPGRADES =================== 5.x, 6.x-1.x ---> 6.x-2.x ------------------------- There is an update hook and you should run update.php to get things moved around properly. Aside from the minor database changes, there are a number of things you should be aware of, especially in light of any customizations you may have made. THEME FUNCTIONS RENAMED The theme functions have all been renamed to be more in line with Drupal standards, so if you are overwriting the functions in your theme's template.php or calling the functions anywhere in your theme, you should update the function names. The old functions were called theme_nice_menu_* and the new ones are theme_nice_menus_*, with an "s" to match the module name. NEW JAVASCRIPT The old JS has been completely removed and replaced with JS that uses the Superfish jQuery plugin. It now fires for ALL browsers by default, unless you turn the JS off in your settings at Administer > Site configuration > Nice menus (admin/build/nice_menus). If you had "Enable IE support" checked under older versions of NM, then the new JS will be on by default. If it was unchecked in your older version, then the update will turn JS off for you by default. If you turn JS off on the site (or a visitor comes without JS enabled), IE6 will no longer get the dropdown effect, but all other browsers will fall back to CSS-only dropdowns. CSS IDs and CLASSES The menu-$menuid ID has been changed to a CLASS to avoid invalid HTML when displaying the multiple menus which use the same menu ID. If you have custom CSS that depends on the menu ID then you need to change it to a class. For example: #menu-3 {color: #ff0}; would need to be changed to .menu-3 {color: #ff0}; 4.7 ---> 5.x ------------ The CSS class has changed to change the underscore (_) to a dash (-) The 4.7 version of class="nice_menu" is now class="nice-menu" in version 5. You will need to adjust any Custom CSS you have added to account for this. The default CSS that comes with nice_menus uses this new convention already. Also note that the layout CSS for the module has been broken out into a separate CSS file (nice_menus_default.css). You have the option of replacing this file by creating a separate customized CSS file, and overriding the default CSS file at Administer -> Themes -> Configure -> Global settings -> "Path to custom nice menus CSS file".