30

Jul

Filed in Code, PHP |

I had recently installed a plugin on my blogged called “RSS Stream”. The idea of the plugin is that it can use RSS feeds (and only RSS feeds) from sites to display a mini-feed, or mini-blog, of what you’re doing. Not being quite content with the plugin, I decided to write my own.

A few hours later, wp-lifestream was born. It’s a very extensible plugin that works with any kind of feed, even if it’s not XML. The default generic plugin handles both RSS and Atom feeds perfectly, but I had to drop the usage the built-in Magpie and include SimplePIE (since Magpie kept erroring).

By default it includes all of the extensions which were in RSS Stream, as well as a Digg plugin.

35 Responses to "WordPress LifeStream Plugin: wp-lifestream"

Subscribe to this topic with RSS or get the Trackback URL
erikankrom (Jul 31st):

I checked out the latest svn, and got this error when activating. I am also on the latest wordpress svn.

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/.alina/erikankrom/erikankrom.com/wp-content/plugins/lifestream/lifestream.php on line 122

David (Jul 31st):

The plugin requires PHP5. That sounds like your problem.

Dave Bowker (Aug 1st):

Couldn’t get it to work.

I’d be interested in future versions to have it cache all the data in the database, and append a count to the items. So lastfm1 lasftfm2 lasfm3 etc…

Would allow anchors for styling specific ones.

alain (Aug 2nd):

Hi, i’m very interested on this plugin. The problem is this:

I made a god installation of it on my Wordpress, I’ve activated it, I put all my feed info on the Options. Then I go to make a simple Wordpress page, and I put “” (without the quotes) on it, then when I publish it, nothing happens, all I see is a page with a blank content. Then I went and installed wp-exec plugin and I’ve activated it, because you recomend it. All this is correct, is like you say.

Now, with wp-exec, i’ve tried to see the text inserted before in a Wordpress page: “” and nothing happens, just a post with a blank content.

Can you tell me what can I do exactly to make my lifestream work? What command, line text, etc. before put “” ???? Please HELP ME.

I have PHP5 correctly installed.

HELP ME to have my Lifestream please.

David (Aug 2nd):

Here is what I use:

<exec type="function" name="LifeStream" />

Want your own Lifestream? Try my <a href="http://www.davidcramer.net/my-projects/lifestream">LifeStream Wordpress Plugin</a>.
alain (Aug 2nd):

It’s your Lifestream what i want. Thanks, let me see if what you said work for me.

alain (Aug 2nd):

OK, the Lifestream is running perfectly. Sincerely, is the best, congratulations for your hard work.

The only problem that i have now, is that all my blog posts looks duplicated go into my site, click on lifestream tab and look for yourself; Twitter looks good, but the entries of my blog looks duplicated. The other problem is that i don’t see my delicious details neither. Do i have to write some extra command to ‘call’ my delicious to my lifestream?

Please, help me again.

David (Aug 2nd):

Check in your feed management. Do you have 2 feeds for your blog there?

Also, can you give me your delicious username, and I will verify that it’s working.

(The feed only shows entries that are newer than 1 month by default, I’m adding options for this stuff right now)

David (Aug 2nd):

Oh, also, you can manually “refresh” the feed in the feeds management, see if that adds any events too.

alain (Aug 2nd):

Well, about the manual refresh, you’re right…..but, in my lifestream, Twitter don’t refresh in real time? Do i have to refresh it manually everytime? The thing is that i can’t see my last Twitter post until i refresh it manually.

…. It’s been a loooong time since i saved a page on my delicious, maybe you’re right on that, however, i’m checking that by saving a page.

Thanks again.

alain (Aug 2nd):

By the way, nop, in my feed management i have just one feed for my blog.

David (Aug 2nd):

Ya I just experienced the bug myself. I’m working on solving it right now, plus a new update with some stuff.

alain (Aug 3rd):

Oh great! I’ll be waiting for it’s launching.

Another thing, with your lifestream plugin can I use picasaweb photos? just like Flickr?

alain (Aug 3rd):

David [can i call you David?], it seems that the bug is getting serious, at least in my personal case. I have correctly injected Twitter, Delicious, and my personal blog. Twitter and Delicious must be refreshed manually otherwise the lifestream don’t update the process…… The lifestream, let’s say, wait for a certain time (seconds, minutes, etc.) to update the process?

Other thing is that i can’t add Facebook, the error is this:

Warning: Invalid argument supplied for foreach() in /home/fearlex/public_html/alainalemany/wp-content/plugins/lifestream/lifestream.php on line 201

David (Aug 3rd):

Are you using the right feed url for facebook? I still have to add validation to stuff.

I also uploaded a new version last night, but I don’t think I solved the issue of sometimes it inserting the wrong urls.

I will check into wordpress’ cron stuff and try to figure out what’s going on.

Thom Allen (Aug 4th):

I noticed in lifestream you have an entry for friendfeed, however I don’t see that as an option in the WordPress admin screen? Am I missing something? Thanks.

Thom Allen (Aug 4th):

Oh, my bad, that was Facebook. Sorry.

Any change we can get a FriendFeed entry?

David (Aug 4th):

I won’t add FriendFeed as they aggregate everything and it would be difficult to handle that.

I will however, add additional feeds such as Reddit and Google Reader.

David (Aug 4th):

I just committed a revision which includes support for Reddit, Google Reader, and Yelp.

David (Aug 4th):

I committed version 0.2 earlier. Pretty massive overhaul. It lets you group events together that happened on the same day from the same feed.

The update also fixes Jaiku support, tweaks Yelp support, and quite a few minor tweaks underneath.

Scot (Aug 6th):

Plugin installed, but nothing showing in the settings area. Any ideas?

Wilco (Aug 6th):

Hi, I have the same problem as Scot, the settings area is empty. Thanks.

David (Aug 6th):

I slipped up with the localization and there was a syntax error. It’s fixed now.

[...] a few weeks ago simply called “Lifestream”. It’s written by David Cramer. He apparently began using the RSS Stream Lifestreaming plugin and decided to roll his own version shortly after. You can view [...]

midbach (Aug 20th):

Hi David,

I just found your plugin and it’s looks very cool so I’ve given it a try. So far no luck. Here’s what I have found after activation:

I get this error: SELECT t1.*, (SELECT COUNT(1) FROM `wp_lifestream_event` WHERE `feed_id` = t1.`id`) as `events` FROM `wp_lifestream_feeds` as t1 ORDER BY `id`

Now I believe the problem is that the tables which get created don’t get the ‘wp_’ prefix. My tables came out as lifestream_event, lifestream_event_group and lifestream_feeds.

Any advice on how to proceed? Much appreciated and thanks for your work on the plugin!

midbach (Aug 20th):

Ok, I guess I could have tried renaming the tables before I bugged you about it. :)

grumpyjacksa (Jan 24th):

Absolutely brilliant…..

thanx a million !

pj

Chris (Mar 2nd):

A great plugin. Thank you very much. How does your roadmap look like?

dalsobrooks (Mar 12th):

Hi — thanks for your work on this plugin. Newbie to WP here.

I’ve installed the plugin and everything works… except the flickr pull. This is the error I get after attempting to pull in my Flickr stream:

Please correct the following errors:

* Error fetching feed from http://api.flickr.com/services/feeds/photos_public.gne?id=dave.alsobrooks&format=rss_200 (XML error: syntax error at line 1, column 62)

I’m in WP 2.7.1 — what can I do. My theme is based on this plugin and I’ve spent some time customizing already. Thanks!!!

dalsobrooks (Mar 13th):

Very sorry — have the flickr feed working now. User error! Thanks again for an awesome plugin!

Bronson (May 2nd):

I’m having the same problem with Lifestream as midbach did.

I also get the following error: SELECT t1.*, (SELECT COUNT(1) FROM `wp_lifestream_event` WHERE `feed_id` = t1.`id`) as `events` FROM `wp_lifestream_feeds` as t1 ORDER BY `id`

I checked my DB tables and all the prefixes seem ok – did anyone else manage to get this one sorted out?

Any help in this regard would be greatly appreciated, thanks.

Bronson (May 4th):

I have just migrated all my clients sites and mine to new servers running latest php and mysql versions and am still having the same issues with this plugin — and I’m not managing to get them sorted out.

Not only do I have the problem with the SQL syntax as highlighted above, but the plugin is posting to the stream twice – so there’s two of everything in the widget.

Any bright ideas on how I can squash these two bugs?

yasinansari (Jul 6th):

Good Evening – for some reason I dnt get the settings option in the plugins management section of WP. I see that the lifestream is pulling the latest stuff from my blog but now want to add feeds and cant seem to get this done anywhere. Please help.

ryan (Jan 1st):

it seems to be that the plugin refuse to work when i upgrade to WP2.9…and i have to fresh it from dashboard. i tested different servers and deactived it but it still not work.

Dave (Jan 4th):

Not working in WP 2.9. I have to manually refresh it.

Leave A Reply

 Username (*required)

 Email Address (*private)

 Website (*optional)

Note: Comments moderation may be active so there is no need to resubmit your comment.