Recent Topics

1 Feb 05, 2011 20:07    

My b2evolution Version: 4.0.3

below is the code that i have been using in v3 , to make a menu with categories from blogs i select,
but now when i upgraded to v4 its not working , and i got no clue,
any help is appreciated

<?php

		$blog_array = array("17","1","4","13","16");
	 $item_u = '1' ;
				foreach( $blog_array as $blog )
	{	
	$l_Blog = & $BlogCache->get_by_ID( $blog );
	$te = $BlogCache->get_by_ID( $blog );
		$inum = $item_u++;		
 { 
		?>

<li style="min-width:100px"class="level1 <?php echo 'item',$inum;?> first parent active current"><a style="min-width:100px"href="<?php echo $l_Blog->gen_blogurl(); ?>"  class="level1 <?php echo 'item',$inum;?>  current"><span><span class="title">
  <?php $l_Blog->disp( 'longdesc', 'htmlattr' ); ?>
  </span><span class="sub">
  <?php $l_Blog->disp( 'name', 'htmlattr' ); ?>
  </span></span></a>
  <ul class="level2">
    <?php $i_level2 = '1' ;
				 ?>
    <?php
					$blog = $blog ;
require $inc_path.'_blog_main.inc.php';
		skin_widget( array(
				'widget' => 'coll_category_list',
				'title' => '',
					'option_all' => '',
	'list_start' => ' ',
				'list_end' => '',
'item_start' => '<li class="level2 item1 first"><span style="background-image: url(images/stories/submenu_new.png);">',		

'item_end' => '</span></li>'

			) );
	?>
  </ul>
</li>
<?php }
	}

		?>

2 Feb 17, 2011 13:56

do you get any error/warning or does it just silently fail?


Form is loading...