Recent Topics

1 Aug 31, 2005 23:19    

Greetings again ! I have some questions, maybe you can help.

Question #1

I'm simply wondering in which file does b2evolution check what the status of the various posts are so that it can decide wether to show them or not in the blogs ?

More precisions: If a post status is publicated, it will show it in the blogs and if the post status is draft it won't show. In which file does b2evolution check that ?

Question #2:

In which file does blog_all fetch all the posts from all the blogs to display them ? Is it summary.php ?

I ask this cause I would like to make it so blog_all fetches only publicated posts (instead of publicated + private posts).

Question #3:

I'd like to re-define what a private post is, so that it is exactly the same as publicated posts, but with the change made in Q #2 it wouldnt show in blog_all ... in which file could I achieve that ?

***********************************************

I hope I'm not asking too much.

2 Aug 31, 2005 23:52

I can't really say which specific file does the analysis to decide which posts to display, but I think you might be missing something about post statuses in general. Public is for all the world to see - everyone knows that. Draft is for the author to see on the edit tab - easy. Private and Protected are the odd ones. Private is for you and you alone, but you have to be logged in to see them. Protected is for members of the blog to see, but they have to be logged in to see them. Not just registered users in your blog - they have to be made a member of the blog on the blogs tab||select blog||permissions tab. As far as I know blog 1 doesn't do anything different with these rules - it's just a matter of (a) are you logged in and (b) if you are logged in are you a member of the blog the post is in.

To test this make a public and a protected and a private post, then log out and see what you get. Next create a new user on your blog but don't make them members of any specific blog. Log in as the new user and see what you get. Finally, go back in as admin and make the new user a member of the blog with the protected and private posts. Log in as the new user again and see what you get.

When I had a multiblogger environment running it was the hardest thing for me to explain to my users. I finally learned the best way was a demonstration like I just described.

Hey if you do the tests report back here so anything I'm saying that's wrong gets straightened out!

PS: Deprecated is so you can remove old stuff from ever displaying again without actually deleting the post. Its another oddball post type eh?

3 Sep 01, 2005 00:00

Oh I see I have confused private posts with protected posts.

also, I thought about what I want to do and once again I was complicating things.

The only thing I'd like to change is to make it so my blog_all only shows "publicated" posts and to make it stop showing "protected" posts, since right now it shows all "publicated" and "protected" posts from all blogs.

So how to make it so my blog_all stops showing "protected" posts ? Or in which file to do the changes, if you dont know how exactly ?

4 Sep 01, 2005 00:10

but the protected posts are only visible for the members.. you know that ?
so if nobody is member of blog all, they won't see the protected posts...

5 Sep 01, 2005 14:52

Thanks a lot Topanga, that's the answer I have been looking for :D.

I thought being a member of Blog X would allow you to see protected posts from Blog X on the Blog_all ... didnt think you'd have to be a member of Blog_all to see them.

So this case is solved, I'll make everyone member of every blog, except Blog_all.

I dont even need to hack, yay !


Form is loading...