Hi Folks,

Ok I spent the night on this but I'm just not good with PHP. I've been copying and pasting what I read here but still no luck.

I'm using Drupal 5.5 with the Garland theme. I have 'Nice Menu's' uploaded and enabled and now I also have 'Nice Primary Links' uploaded and enabled. Then per the instructions I changed the code in the theme on the page.tpl.php. Here is what I have changed it too:

print theme('nice_menu_primary_links', $primary_links, array('class' => 'links primary-links'))
endif;
if (isset($secondary_links)) :
print theme('nice_menu_primary_links', $secondary_links, array('class' => 'links secondary-links'))
endif;

What I'm getting now is no Primary Menu at all. I have existing items that I'd like to show up but I've also tried adding new menu items and still nothing shows up.

Could someone please take a look at this and let me know what you think? Thanks much!

Comments

jburnard’s picture

One more thing.... I don't know anything about checking tables, mysql etc but... I went to myphpadmin and checked out the tables in my database. There appears to be one for nice_primary_links BUT it doesn't appear to have any content. Again, I'm very clueless when it comes to that stuff but I'm pretty sure there are no entries in that table....

jburnard’s picture

Thought I'd relate everything else I've done so far.... wow this is frustrating. All I want is a simple menu that has children that don't have to be expanded all the time. If I have to have them on the side I guess that's ok but I'd rather have them on the top where the Primarys are.

Anyway, sorry to ramble... I read more and just tried to make a change to the module itself (nice primary links). In the instructions on page http://drupal.org/node/215142

Under bug fixing I changed this:

function nice_primary_menus_form_submit($form_id, &$form) {
$delta = db_result(db_query("SELECT delta FROM {nice_primary_menus} WHERE mid = %d", $form['mid']));
if (isset($delta)) {

to this:

function nice_primary_menus_form_submit($form_id, &$form) {
$delta = db_result(db_query("SELECT delta FROM {nice_primary_menus} WHERE mid = %d", $form['mid']));
if (isset($delta) && $delta!=NULL){

Re-uploaded the module but still to no avail. when I make the first change on the page.tpl.php in the theme section STILL nothing shows up.

I also get the error on the page:

active_mid is not defined
[Break on this error] last_active_mid = active_mid();

Any thoughts are most appreciated. I have to stop working on this for a while lest I pull out all my hair.

jburnard’s picture

Folks,

Please tell me if I'm posting in the wrong place or providing the wrong info etc. I really need to get my menu's up and running and I've gotten no response. If I'm in the wrong place please let me know. I can't believe that nobody has had to have expandable (drop down) menu's where the primary links go.

Please let me know your thoughts and thank you.

add1sun’s picture

I'm not familiar with Nice Primary Menus but you can have simple dropdown menus using just Nice Menus. If all you want is a regular Primary Links menu as a dropdown, then try using Nice menus plain instead and see if that does what you need. You can either make it a block you can place in a region or you can use the theme('nice_menu_primary_links'); function in your template.

Lullabot loves you | Be a Ninja, join the Drupal Dojo

Drupalize.Me, The best Drupal training, available all the time, anywhere!