The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
two different menus for site
#3
Perhaps you want to show child pages in the sidebar what I also tried hard to find out how, but found rather easy programming it in the template (see http://de.humanet.tk/about for the result) (plugin would be the more elegant place to do such a thing at, but this still works) (thanks to the useful page "Theme: Template Tags"):
Code:
// get children in the array $childli
$childli=array();
foreach(menu_data() as $page){
  if($page['parent_slug']==return_page_slug()){
    $childli[$page['slug']]=$page['title'];
  };
};

// create html-ul list of linked child pages in $men
if(array()<$childli){
  $men='  <h2>'.return_page_title().'</h2><ul>';
  foreach($childli as $chslug=>$chtitl){
    $men.=('
<li><a href="'.$chslug.'">'.$chtitl.'</a></li>');
  };
  $men.='</ul>
';
}else{
  $men ='';
};

Then add <?php echo($men);?> within the html-div element you styled as a sidebar.
Reply


Messages In This Thread
two different menus for site - by diosmedia - 2011-01-21, 21:30:58
two different menus for site - by mvlcek - 2011-01-21, 22:03:50
two different menus for site - by yuwash - 2011-01-22, 06:53:08
two different menus for site - by Oleg06 - 2011-01-22, 07:16:14
two different menus for site - by diosmedia - 2011-01-22, 07:50:42



Users browsing this thread: 1 Guest(s)