Recent Topics

1 Aug 15, 2009 11:42    

My b2evolution Version: 2.x

I've set up a generic b2 installation on my Siteground account, and am wondering if it's possible to do a couple of things.

1. Is it easy to configure index.php to display the most recent posts from each blog (instead of just one blog)?

2. Does each blog maintain a separate RSS feed?

I'd like to have a front page that's got something like a newspaper layout, with the latest story from each of the blogs, but maintain separate feeds for each of them.

I've looked at [url=http://forums.b2evolution.net/viewtopic.php?t=17304]b2evolution :: View topic - [2.x] Summary Blog as Front Page[/url] which gives me an initial idea of how to go about it - but I'm not entirely sure what I'm seeing when I go to the 'aggregate' page. I'm supposing that if I have two text logs and a photoblog, I need to rework the page layout, but I also need to identify which post is from a given blog, and ensure that they are the most recent.

I'm guessing that the page layout would need to allocate a blog number to a specific division/container. If so, I'm on the lookout for a template that's done the work for me!

2 Aug 15, 2009 20:29

Definitely.

This is exactly the layout we have in our blog http://www.TheChristianAlert.org

We have 4 blogs (sections) and the BlogAll (aggregates the other ones).

Each blog has its own rss feed something like this:

http://www.thechristianalert.org/index.php/TheBlog/index.php?tempskin=_rss2

the rss setting for each blog is found in the advanced tab.

but you can create a blog (usually the blog all) that aggregates (displays) a # of blogs (1, 3, 6, 8, etc) again - found in the advanced tab "blogs to aggregate"

good luck and leave us a link to check out your layout/design. always looking to learn what others do w/ their blogs.

3 Aug 15, 2009 22:06

Thanks Edgar!

I had a look - and now have even more questions.

I just see the one blog, and cannot make out which of the sections are the other blogs.

Did you modify the template yourself, or is it pretty much off the shelf?

I'm wondering what I should be looking at in any given template.

4 Aug 15, 2009 23:45

i did create my own skin if that's what you mean.

i have 4 blogs.

http://www.thechristianalert.org/index.php/TheBlog/
http://www.thechristianalert.org/index.php/TheNews/
http://www.thechristianalert.org/index.php/Bibliography/
http://www.thechristianalert.org/index.php/WatchList/

These are each blog - you can set permissions for each and each has its own rss.

http://www.thechristianalert.org/index.php (this is the main one).

There's a similar template (aka skin) called: evocamp: http://skindemo.b2evolution.net/2/index.php?tempskin=evocamp that will give you 3 columns to work with.

The sections on my site (except for the list of posts in the middle: are all html widgets)

the widgets are very powerful.

5 Aug 16, 2009 00:52

dglp wrote:

... 1. Is it easy to configure index.php to display the most recent posts from each blog (instead of just one blog)? ...

For that look at summary.php ;)

Aggregating blogs into a blog means you will get the most recent NN from all blogs even if that means all from one particular blog. With summary.php you can basically tell it "three from each blog no matter how old or new they are".

I think not many people use summary.php but I don't know why. Maybe because it doesn't show up inside a skin?

6 Aug 16, 2009 15:15

Okay, good stuff!
This is getting me some distance.

EdB, I have modified the $BlogBList value in summary.php, changed it from 3 to 1.

That does part of what I'm hoping to accomplish, but leaves something else unresolved.

I'd like my end result to look like this:
http://i25.tinypic.com/90ppvq.jpg

But at the moment I get something like this:
http://i26.tinypic.com/mlrolg.jpg

Leaving aside the matter of container positions, it looks as though summary.php puts the most recent 3 posts rather than the last post from each blog.

For example, if I post to blog 3 at 8:58, Blog 2 at 8:59, Blog 1 at 9:00 and then again at 10:00, the post from Blog 3 drops off the front page, and I get two posts from Blog 1. What I want to see is the previous (9:00) post to Blog 1 drop off, so that I only see one post from each blog.

Any suggestions?

7 Aug 16, 2009 17:18

For your layout : wrap each blog in a <div id="blog_##"> and then style with css

¥

8 Aug 16, 2009 20:31

dglp - the layout looks real nice.

You could try creating 3 summaries and then including each 'summary.php' into each region you want to have (one region for 1, another for #2, and #3, etc)

Then your index.php.main.php would ahve these 3 regions and the <include summary_#.php> that would read those sections and would automatically post the content.


Form is loading...