Recent Topics

1 Mar 23, 2006 00:22    

Hello all!

I'm using b2evo 1.6 alfa. Let's say that I use 4 blogs. Blog 1 is the main blog, that shows up all posts of blogs 2, 3 and 4.
I am able to create such configuration easly. The problem is if I want only the posts from blogs 2 and 3 to show up in blog 1.
I don't want posts from blog 4 to show in blog 1.

Can someone help me?

2 Mar 23, 2006 00:28

I hope Topanga shows the links to the hacks/methods required to do this in "pre 1.6" versions, but the short answer is that you can't stop stuff from showing up in blog #1. Oh wait: any post that is posted as 'protected' will not show up in blog 1 unless a registered blogger who is a member of the specific blog happens to be visiting. That's an exception to the "blog 1 shows all" rule, but it's notable if you're using another blog for content intended for a limited audience.

3 Mar 23, 2006 00:37

But I want Blog 4 to be shown when I open it's url

4 Mar 23, 2006 00:40

Such is life eh? If all goes well Topanga will link to posts that show you how to hide stuff from blog 1 in versions prior to 1.6 OR show you how to do it in 1.6. Straight out of the box, ALL published posts in ALL blogs show up in blog #1. That is the nature of blog #1 - it aggregates all posts from all blogs.

5 Mar 23, 2006 08:19

Resolved!

in index.php, before
require( dirname(__FILE__).'/'.$core_subdir.'_blog_main.inc.php' );
I added:

global $force_blogs;
$force_blogs = array(2,3);

then in my _main.php file of my skin after:

while( $Item = $MainList->get_item())
{

I added

if (!in_array($Item->blog_ID,$force_blogs) && $blog == 1) continue;

where Blog #1 is the "global" blog showing posts for all blogs.
In this way it only shows posts from blogs #2 and #3 in the "global" Blog #1

:P

Lorenzo

6 Mar 23, 2006 08:51

Nice that you found the answer yourself!

Because 'my' solution was only to not show particular categories..

@EdB : I have no experience with 1.6 since I only have 1 site in 1.6 and it is not doing what I want ;)
I'm patience enough (yeah realy) to wait for the official next release ;)

7 Mar 23, 2006 09:32

FIX ALREADY!
:)

better change
if (!in_array($Item->blog_ID,$force_blogs) && $blog == 1) continue;
in
if (isset($blog) && isset($force_blogs))
if (!in_array($Item->blog_ID,$force_blogs) && ($blog == 1)) continue;

I'm using alfa version because I'm still working on my site... and it will take a some time before I finish working at it.


Form is loading...