Recent Topics

1 Nov 28, 2007 17:58    

Hi peoples,
In my site I used summary.php to show all blogs recent posts in the sidebar, but now I would like to exclude one of my blogs from it.

I don´t mean from the blog list, but simply that I don´t want the recent posts from one of the blogs to show up in my sidebar. I already went through the forum and tried the solution mentionned in http://forums.b2evolution.net/viewtopic.php?t=3591 but this solution didn´t work. As before, I run the 1.10.3 version.

I guess I would have to modify this code in some way, but I have no idea about PHP, and this is keeping me busy for hours... Thanks.

<?php	// Get the 3 last posts for each blog:
			$BlogBList = & new ItemList( $blog=1,  '', '', '', '', '', array(), '', 'DESC', '', 12, '', '', '', '', '', '', '', 'posts' );

			while( $Item = $BlogBList->get_item() )
			

			{

2 Nov 30, 2007 11:43

If you look again in summary.php you must have something like this :

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...

There you can exclude blogs...
so I gues that you are only showing a part of the code in your exemple


Form is loading...