Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 11:35:19 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155406 Posts in 21698 Topics by 7732 Members
Latest Member: hd6ffycn267kn
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Show_menu2() help needed  (Read 803 times)
bgg

Offline Offline

Posts: 101



« on: July 17, 2008, 12:13:09 PM »

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?
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
}
?>

Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7972



WWW
« Reply #1 on: July 17, 2008, 12:15:51 PM »

Hello,

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

Matthias
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!