Download & Extend

Does Lucid Menus work with Drupal 6.1 ?

Project:Lucid menu
Version:6.x-1.1
Component:Miscellaneous
Category:bug report
Priority:minor
Assigned:jramby
Status:closed (fixed)

Issue Summary

I used Lucid Menus on Drupal 5, and now I am using Drupal 6.1 so I wondered if Lucid Menus will work on this version, or if not, when it will be made available for Drupal 6.1 sites ?

Comments

#1

Status:active» needs review

Looks like there is a 6.x release now.

#2

Status:needs review» closed (fixed)

Yup, a 6.x release is available. This is closed.

#3

Version:5.x-1.0» 6.x-1.1
Category:support request» bug report
Priority:normal» critical
Assigned to:Anonymous» jramby
Status:closed (fixed)» active

Hello,

I was trying to use lucid_menu 6.x-1.1 on my Drupal 6.17.
I followed the instruction in the README.txt :

- I installed, jQuery_update 6.x-1.1 (because of course 5.x-2.1 doesn't work on 6.x).
- I "Simply" enabled the module, but my drupal broke out :'(

on this page : "http://localhost/drupal6.17/admin/build/modules/list/confirm"

These code is shown :

$title) { $blocks[$mid]['info'] = t('Lucid: ') .$title ." ($mid)"; } return $blocks; } else if ($op == 'view') { $path = drupal_get_path('module', 'lucid_menu'); if (variable_get('lucid_hover', 1)) drupal_add_js("$path/superfish/js/hoverIntent.js"); $bgIframe = ''; if (variable_get('lucid_bgiframe', 1)) { $bgIframe = ".find('ul').bgIframe({opacity:false})"; drupal_add_js("$path/superfish/js/jquery.bgiframe.min.js"); } drupal_add_js("$path/superfish/js/superfish.js"); $block_settings = variable_get("lucid_menu_$delta", ''); if (!empty($block_settings)) $block_settings = unserialize($block_settings); $speed = $block_settings['speed'] == LUCID_SLOW ? 'slow' : ($block_settings['speed'] == LUCID_NORMAL ? 'normal' : 'fast'); $auto_arrows = $block_settings['auto_arrows'] ? 'true' : 'false'; $drop_shadows = $block_settings['drop_shadows'] ? 'true' : 'false'; $disable_hi = $block_settings['disable_hi'] ? 'true' : 'false'; $animation = $block_settings['animation'] ? $block_settings['animation'] : "height: 'show'"; $time_to_close = $block_settings['time_to_close'] ? $block_settings['time_to_close'] : 800; $hover_class = $block_settings['hover_class'] ? $block_settings['hover_class'] : 'sfHover'; $active_trail_class = $block_settings['active_trail_class'] ? $block_settings['active_trail_class'] : 'active_trail'; $init = $block_settings['init']; $before_show = $block_settings['before_show']; $show = $block_settings['show']; $hide = $block_settings['hide']; $path_levels = $block_settings['path_levels'] ? $block_settings['path_levels'] : 0; if ($path_levels == 0) // just using the defaults { $active_trail_class = 'overideThisToUse'; $path_levels = 1; } $menu_specific_settings = << 'select', '#title' => t('Please choose the desired menu style'), '#default_value' => $values['style'] ? $values['style'] : LUCID_HORIZONTAL, '#options' => array ( LUCID_HORIZONTAL => t('Horizontal'), LUCID_VERTICAL => t('Vertical'), LUCID_NAV_BAR => t('Navigation Bar') ), ); $form['auto_arrows'] = array( '#type' => 'checkbox', '#title' => t('Auto Arrows'), '#description' => t('if checked, arrow mark-up generated automatically = cleaner source code at expense of initialisation performance.'), '#default_value' => isset($values['auto_arrows']) ? $values['auto_arrows'] : 1, ); $form['drop_shadows'] = array( '#type' => 'checkbox', '#title' => t('Drop Shadows'), '#description' => t('completely disable drop shadows by unchecking this.'), '#default_value' => isset($values['drop_shadows']) ? $values['drop_shadows'] : 1, ); $form['disable_hi'] = array( '#type' => 'checkbox', '#title' => t('Disable HI'), '#description' => t('check to disable hoverIntent detection.'), '#default_value' => isset($values['disable_hi']) ? $values['disable_hi'] : 0, ); $form['speed'] = array( '#type' => 'select', '#title' => t('Please choose desired animation speed'), '#description' => t("speed of the animation. Equivalent to second parameter of jQuery's .animate() method"), '#default_value' => $values['speed'] ? $values['speed'] : LUCID_NORMAL, '#options' => array ( LUCID_SLOW => t('Slow'), LUCID_NORMAL => t('Normal'), LUCID_FAST => t('Fast') ), ); $form['time_to_close'] = array( '#type' => 'textfield', '#title' => t('Popup delay (milliseconds)'), '#description' => t('The time before a popup closes when cursor is outside it.'), '#default_value' => $values['time_to_close'] ? $values['time_to_close'] : 800 ); $form['hover_class'] = array( '#type' => 'textfield', '#title' => t('Hover class'), '#description' => t('Class created for hovered over items.'), '#default_value' => $values['hover_class'] ? $values['hover_class'] : 'sfHover' ); $form['active_trail_class'] = array( '#type' => 'textfield', '#title' => t('Active trail class'), '#description' => t('Class assigned to active trail menu items.'), '#default_value' => $values['active_trail_class'] ? $values['active_trail_class'] : 'active_trail' ); $form['path_levels'] = array( '#type' => 'textfield', '#title' => t('Path levels'), '#description' => t('Number of levels of popup to keep open (0) disables it.'), '#default_value' => $values['path_levels'] ? $values['path_levels'] : 0 ); $form['animation'] = array( '#type' => 'textfield', '#title' => t('Animation (advanced)'), '#description' => t('This determines the animation and is the focal point for this module. Try opacity: \'show\' or mix animations as you like.'), '#default_value' => $values['animation'] ? $values['animation'] : "height: 'show'" ); $form['init'] = array( '#type' => 'textfield', '#title' => t('Init function (advanced)'), '#description' => t('Function to be called on menu initialization, will be passed the surrounding ul. DO NOT include braces () in the function name!'), '#default_value' => $values['init'] ? $values['init'] : '' ); $form['before_show'] = array( '#type' => 'textfield', '#title' => t('Before show function (advanced)'), '#description' => t('Function to be called before a popup animation starts, will be passed the ul about to show up. DO NOT include braces () in the function name!'), '#default_value' => $values['before_show'] ? $values['before_show'] : '' ); $form['show'] = array( '#type' => 'textfield', '#title' => t('Show function (advanced)'), '#description' => t('Function to be called after a popup animation starts, will be passed the ul that became visible. DO NOT include braces () in the function name!'), '#default_value' => $values['show'] ? $values['show'] : '' ); $form['hide'] = array( '#type' => 'textfield', '#title' => t('Hide function (advanced)'), '#description' => t('Function to be called after a popup fades, will be passed the ul that just closed. DO NOT include braces () in the function name!'), '#default_value' => $values['hide'] ? $values['hide'] : '' ); return $form; } else if ($op == 'save') variable_set("lucid_menu_$delta", serialize($edit)); } /** * Implementation of hook_menu(). * */ function lucid_menu_menu() { $items = array(); $items['admin/settings/lucid_menu'] = array( 'title' => t('Lucid Menu'), 'description' => t('Controls lucid menu global settings').'.', 'page callback' => 'drupal_get_form', 'page arguments' => array('lucid_settings'), 'access arguments' => array('administer lucid menu'), 'type' => MENU_NORMAL_ITEM, ); return $items; } function lucid_settings() { $form = array(); $form['lucid_hover'] = array( '#type' => 'checkbox', '#title' => t('Enable hoverIntent'), '#description' => l('Click here for more info.', 'http://cherne.net/brian/resources/jquery.hoverIntent.html', array(), NULL, NULL, TRUE, FALSE), '#default_value' => variable_get('lucid_hover', 1), ); $form['lucid_bgiframe'] = array( '#type' => 'checkbox', '#title' => t('Enable bgIframe'), '#description' => l('Click here for more info.', 'http://brandonaaron.net/jquery/plugins/bgiframe/docs/', array(), NULL, NULL, TRUE, FALSE), '#default_value' => variable_get('lucid_bgiframe', 1), ); return system_settings_form($form); } function lucid_menu_theme(){ return array( 'lucid_menu_item' => array( 'arguments' =>  array( 'mid' => NULL, 'children' => NULL, ), ), 'lucid_menu_tree_root' => array( 'arguments' =>  array( 'pid' => NULL, 'style' => NULL, ), ), 'lucid_menu_tree' => array( 'arguments' =>  array( 'pid' => NULL, ), ), ); } function lucid_menu_tree($tree) { foreach ($tree as $i => $data) { //print_r($data); if ($data['link']['hidden'] == 0){ $childe =''; if ($data['below']){ $childe = lucid_menu_tree($data['below']); } $link = theme('menu_item_link', $data['link']); $output .= theme('lucid_menu_item', $link,$childe); } } //print_r($tree); //die(); return $output; } function theme_lucid_menu_tree_root($pid = 1, $style = LUCID_HORIZONTAL) { $string = ''; //die($pid); if ($style == LUCID_VERTICAL) $string = ' sf-vertical'; else if ($style == LUCID_NAV_BAR) $string = ' sf-navbar'; $tree = theme('lucid_menu_tree',$pid); return "

      ". $tree ."

# "; } function theme_lucid_menu_tree($pid = 1) { $tree = menu_tree_all_data($pid); if ($tree = lucid_menu_tree($tree)) { return $tree ; } } function theme_lucid_menu_item($mid,$children='') { $menu.=''; $menu.=$mid; if ($children != ''){ $menu.="

      "; $menu.=$children; $menu.="

"; } $menu.="
"; return $menu; }

Don't know why or what to do with!!!

Please help!

thanx for U'r answers

#4

Priority:critical» minor

Hi again,

It was just a problem of "<?" in stead of "<?php" on the first line of ".module" file

Sorry for disturbing!! but it'll be nice if someone can fix it on the online version.

Thanx again.

mj_ramby.

#5

Status:active» closed (fixed)

This is fixed in 6.x-1.2... closing...