Show_menu2() help needed

ruebenwurzel

Hello,

why not simply replace it with the code wich works for you?

Matthias

bgg

This is working for me: <?php show_menu2(0, SM2_CURR+1); ?>

How to modify the following to do the same as the above code?

<!--
<?php ob_start();     // start output buffer
show_menu2(0SM2_CURR+1,'<li style="list-style-type: none">[a][menu_title][/a]</li>','','','','','');    // call menu
$foo=ob_get_contents();    // put outputbuffer in $foo
ob_end_clean();             // clear outputbuffer
if ($foo<>"") {  // some code to execute cause there is some block
echo '<ul><li>';
//  echo '<div class="block block-user" id="block-user-1">';    
  
echo '<img src="http://www.chsj.org/templates/fresh/images/nav_menu.png" alt="sub menu" />'
 
// echo '<div class="content"><div class="menu" >';
  
echo '<br />';
  echo 
$foo;                                // show the block (as saved in $foo)
//  echo '</div>';
 // echo '</div>';
  
echo '</li></ul>';
} else { 
// some code for no info
}
?>