Recent Topics

1 Jan 12, 2006 15:20    

Hello,

We have a blog we are going to use for folks to comment on headlines that we'd like to keep out of the aggregated "All Blogs" page and RSS feed.

I've looked aorund a bit and $MainList seems to come up, but I can't figure out how to keep blog ID "57" being included - yet still display if a person goes to it directly.

Thanks for any advice you can offer...

2 Jan 12, 2006 21:10

Think I may have found my own answer...

In the _class_itemlist.php of b2evocore, go down to about line 485 or so and find:

if( $blog == 1 )
{ // Special case: we aggregate all cats from all blogs
   $this->request .= 'WHERE 1 ';
}


and change the

$this->request .= 'WHERE 1 ';


to:

$this->request .= 'WHERE 1 AND cat_blog_ID != 53';


... replacing the "53" with the blog ID of the blog you want to exclude from your "All Blog" posts and RSS feed.

The only oddity I noticed is that the blog appears in the bloglist even though I've set the option not to. I've modified my list though to sort blogs by the most recent poster, so I have the feeling that's my fault ;)

If anyone has a better way to accomplish the above, I'm certainly open to suggestions, though it *seems* to be working so far...

(Note: I use b2 .9.0.12)


Form is loading...