Recent Topics

1 Oct 14, 2005 06:39    

Can someone please tell me if there is a way to create an rss/atom feed that displays all posts from a blog or all posts from all blogs in b2evo?

Is there a hack/plugin that can do this?

2 Oct 14, 2005 15:47

No hack needed. This is already built into b2evolution. Each blog should have links to several types of RSS feeds that show all posts from that blog, or all comments from that blog. Then you can get the RSS feed from the Blog All blog to get a feed with posts from all blog. If you're having trouble finding the links, then post your URL and I'll help you locate them.

3 Oct 14, 2005 19:55

OK, here is my rss 2.0 feed url: http://kraemers.us/xmlsrv/rss2.php?blog=5.
I want to include all of my other blogs in the feed url too. For example: http://kraemers.us/xmlsrv/rss2.php?blogs=5,6,7,8,9. The only problem is that it doesn't work.

The other thing I want to be able to do is to include all posts ever posted in my blogs in an rss/atom feed.

For example: http://kraemers.us/xmlsrv/rss2.php?blog=5 only displays the last 5 posts. I want another feed url that can display all posts such as http://kraemers.us/xmlsrv/rss2.php?blog=5&posts=all or http://kraemers.us/xmlsrv/rss2.php?blogs=5,6,7,8,9&posts=all.

What is the correct way to do all of this?

Note: The rss 2.0 feedurl that displays the last post from each blog is http://kraemers.us/xmlsrv/rss2.php?blog=1 if that helps.

edit: Is this what I'm looking for? (from the rss2.php file)

$show_statuses = array();			// Restrict to published posts
	$timestamp_min = '';					// Show past
	$timestamp_max = 'now';				// Hide future

4 Oct 14, 2005 20:22

blog=1 will get the 5 latest posts across all blogs, with the limit being set by the value on your back office settings tab. Getting it to include ALL posts would be a heck of a hack. Basically you have to convince the appropriate file in the xmlsrv folder to have no limit. I think the only way to do that is to trick it into having an incredibly high limit. MAYBE with something like this in the appropriate file?

	$timestamp_min = '';					// Show past
	$timestamp_max = 'now';				// Hide future

becomes

	$timestamp_min = '';					// Show past
	$timestamp_max = 'now';				// Hide future
	$posts = '9999' // trick the feed into delivering 9999 posts


I don't know if you would use 9999 or '9999', and I'm not even sure $posts is the correct variable to tweak.

I'm curious why you would want everything in your feed? Seems to me if someone subsribed to it they'd get mighty upset after finding out you feed *everything* every time they look for updates. Anyway I think this is where you need to go and I think this is the hack you'll need and I'm curious.

6 Oct 14, 2005 20:58

EdB:

Thanks. To satisfy your curiosity I'm embedding my Talkr.com account into my b2evo blog. Talkr needs an rss feed in order to convert each text post into a podcast that you can listen to. It can only convert posts whose permalinks are listed in the rss feed. I want my readers to be able to listen to ALL posts in ALL blogs, including those in the past. I will not be offering this feed url on the blog itself, just for my Talkr account.

I decided to use the follow url without modifying rss2.php:
http://kraemers.us/xmlsrv/rss2.php?blog=1&posts=1000

This will be displayed on each post:

<img style="border:none;" src='http://www.talkr.com/images/speaker_20.gif' alt='Listen to this article' border='0' />
<a href='http://www.talkr.com/app/fetch.app?feed_id=7060&perma_link=[permalink url (has to be listed in that feed url)]'>
    Listen to this article 
</a>

Thanks again.

7 Oct 14, 2005 22:06

¥åßßå's answer is, of course, much easier. Glad you're hooked up.

8 Oct 15, 2005 02:37

EdB wrote:

¥åßßå's answer is, of course, much easier. Glad you're hooked up.

it could also be seen as a bug ;)

¥


Form is loading...