I installed nicemenus on the 4.7b4 and found I couldn't use the nice menu settings option although it did display 2 menu blocks for me. I updated to the CVS head ... nothing.

Using the settings would give me an error on line 32 of the nice_menu.module about the form_textfield.

I then used the form updater for this line of code in nice_menu.module (line 32):
$form .= form_textfield(t('Number of Nice Menus'), 'nice_menus_number', variable_get('nice_menus_number', '2'), '2', false, t('The total number of independend nice menus you want. You configure them as normal in admin/blocks'));

and it spewed out this lcorrect ine:

$form['nice_menus_number'] = array(
'#type' => 'textfield',
'#title' => t('Number of Nice Menus'),
'#default_value' => variable_get('nice_menus_number', '2'),
'#size' => '2',
'#maxlength' => false,
'#description' => t('The total number of independend nice menus you want. You configure them as normal in admin/blocks'),
);

I put it in and it seems to work... will continue to test.

Comments

ridefree’s picture

another error ... when configuring the menu in the blocks admin.

Fatal error: Call to undefined function: form_textfield() in /var/www/projects/lampchc.org/public/modules/nice_menus/nice_menus.module on line 58

forms updater REPLACED:

$form .= form_textfield(t('Menu Tree'), 'nice_menus_menu_'.$delta, variable_get('nice_menus_menu_'. $delta, '1'), false, false, t('The menu tree number (ID) from which to show a nice menu. Find out what this is at admin/menu and noting the ID in the URL for the menu you want to use'));

WITH

$form['nice_menus_menu_'.$delta] = array(
'#type' => 'textfield',
'#title' => t('Menu Tree'),
'#default_value' => variable_get('nice_menus_menu_'. $delta, '1'),
'#size' => false,
'#maxlength' => false,
'#description' => t('The menu tree number (ID) from which to show a nice menu. Find out what this is at admin/menu and noting the ID in the URL for the menu you want to use'),
);

and then this error:
Fatal error: Call to undefined function: form_textfield() in /var/www/projects/lampchc.org/public/modules/nice_menus/nice_menus.module on line 67

forms updater REPLACED:

$form .= form_textfield(t('Menu Style'), 'nice_menus_type_'. $delta, variable_get('nice_menus_type_'. $delta, 'right'), false, false, t('down: menu items are listed side by side and expand down
right: menu items are listed on top of each other and expand to the right
left: menu items are listed on top of each other and expand to the left'));

WITH:

$form['nice_menus_type_'. $delta] = array(
'#type' => 'textfield',
'#title' => t('Menu Style'),
'#default_value' => variable_get('nice_menus_type_'. $delta, 'right'),
'#size' => false,
'#maxlength' => false,
'#description' => t('down: menu items are listed side by side and expand down
right: menu items are listed on top of each other and expand to the right
left: menu items are listed on top of each other and expand to the left'),
);

ok seems to work well now :)

Anonymous’s picture

Status: Fixed » Closed (fixed)