Recent Topics

1 May 24, 2007 10:45    

My b2evolution Version: 1.9.x

Hi.

I was wondering if someone could't help me with this one.

I have a special summery page with this code:



<?php // --------------------------- BLOG LIST -----------------------------
for( $blog=blog_list_start();
$blog!=false;
$blog=blog_list_next() )

{ # by uncommenting the following lines you can hide some blogs
// if( $blog == 1 ) continue; // Hide blog 1...
if( $blog == 2 ) continue; // Hide blog 2...
if( $blog == 3 ) continue; // Hide blog 3...
if( $blog == 4 ) continue; // Hide blog 4...			
if( $blog == 5 ) continue; // Hide blog 5...
if( $blog == 6 ) continue; // Hide blog 6...
if( $blog == 7 ) continue; // Hide blog 7...
if( $blog == 8 ) continue; // Hide blog 8...
if( $blog == 9 ) continue; // Hide blog 9...
if( $blog == 10 ) continue; // Hide blog 10...
if( $blog == 11 ) continue; // Hide blog 11...			
?>
<ul>
<?php	// Get the 20 last posts for each blog:
$BlogBList = & new ItemList( $blog,  '', '', '', '', '', array(), '', 'DESC', '', 20, '', '', '', '', '', '', '', 'posts' );
while( $Item = $BlogBList->get_item() )
{
?>
<li lang="<?php $Item->lang() ?>">
<?php $Item->issue_date() ?>:
<?php $Item->permanent_link( '#title#' ) ?>
</li>
<?php
}
?>
</ul>
<?php
}

As you can se, I have 11 blogs, and display them all together.

Now I want the exact same function, all of the headlines, but I want to leave out post from 2 of the blogs, say blog 5 and blog 8.

How do I do that ?

Any help are appriciated.

Hans,


Form is loading...