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.

  • http://www.erikankrom.com erikankrom

    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

    The plugin requires PHP5. That sounds like your problem.

  • http://www.designingthenews.com Dave Bowker

    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.

  • http://www.alainalemany.com alain

    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

    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>.
    
  • http://www.alainalemany.com alain

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

  • http://www.alainalemany.com alain

    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

    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

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

  • http://www.alainalemany.com alain

    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.

  • http://www.alainalemany.com alain

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

  • David

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

  • http://www.alainalemany.com alain

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

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

  • http://www.alainalemany.com alain

    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

    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.

  • http://www.digitalthom.com Thom Allen

    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.

  • http://www.digitalthom.com Thom Allen

    Oh, my bad, that was Facebook. Sorry.

    Any change we can get a FriendFeed entry?

  • David

    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

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

  • David

    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

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

  • http://www.verdoold.com Wilco

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

  • David

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

  • http://lifestreamblog.com/new-lifestream-plugin-for-wordpress-released/ New Lifestream Plugin for Wordpress Released | Lifestream Blog

    [...] 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

    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

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

  • http://discussedhere.com grumpyjacksa

    Absolutely brilliant…..

    thanx a million !

    pj

  • http://www.semanticblog.eu Chris

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

  • http://davealsobrooks.com dalsobrooks

    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!!!

  • http://davealsobrooks.com dalsobrooks

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

  • http://www.bronsonharrington.com Bronson

    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.

  • http://www.bronsonharrington.com Bronson

    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?

  • http://yasinansari.co.za/wordpress yasinansari

    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.

  • http://woodyhouse.org/ ryan

    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

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

  • beachbum

    After activation on a wpmu2.9.2/bp site the manager plugin page loads but shows no plugins. It stops after the add new button on top. Any idea whats causing this?

  • http://twitter.com/yasirmturk Yacir M Turk

    on WP 2.9.2
    Doesnt install from wp-admin
    after installation thru FTP it seems woking fine except for links of icons, themes etc are weired

    play with setting of the URLs and it ll get you to the white page of death of your blog

  • http://www.air-jordan-10.com/ air jordan 10

    Well , the view of the passage is totally correct ,your details is really reasonable and you guy give us valuable informative post, I totally agree the standpoint of upstairs. I often surfing on this forum when I m free and I find there are so much good information we can learn in this forum! http://spoon8.net/

  • http://www.air-jordan-10.com/ air jordan 10

    Well , the view of the passage is totally correct ,your details is really reasonable and you guy give us valuable informative post, I totally agree the standpoint of upstairs. I often surfing on this forum when I m free and I find there are so much good information we can learn in this forum! http://spoon8.net/

  • nike air max

    air max shoes is an extremely comfortable shoe that uses a large air cushioning unit that can be seen from the side. This technology combined with the design of the shoe which is meant to compliment the spinal cord makes. Air Max shoes the ideal shoe for walking, running, playing basketball, or any other sport. nike air max ,nike air max 2009, nike air max 95, nike air max 90 and so on.Nike introduced its Air Cushioning Technology in 1979. By embedding Air Cushioning in the midsoles of its running shoes, it changed the way athletes approached and reacted to athletic performance forever.

  • timberland shoes

    now,Timberlandlive is online store that professional supply best and newest timberland mens boots,Women timberland boots and Kid’s Timberland Boots and Shoes.We have over 10 years online shopping expeciences,our timberland shoes are no wonder your best choice,we promised to offer you genuince Timberland Boots uk,waterproof boots.We are firmly hold the “Customer is God” and “Your Satisfactions,Our Pursuit”princicals,we have a good Customer service teams and best after-service.We hope our professional can satisfy your requirments.Now cheap Timberland Boots sale,We have Timberland 6 Inch Boots,timberland uk,Timberland Chukka Boots and others 2010 newest Timberland work shoes for you!It’s a good chance to order now.Hope you have a good experience on shopping form us.

  • jordan shoes

    The air Jordan brand is a household name and people of all ages and social strata line up eagerly for the release of the latest model. Some of this success can be attributed to the fact that the shoes, from the Jordan III to the most recent model, have always started with their namesake, Michael Jordan. The designers take his ideas, hobbies, and life into account and incorporate these feelings into the air jordan shoes .The “jumpman” is the logo of jordan shoes.Now, we sell cheap jordan shoes. You can find wholesale jordan shoes.for example lebron james shoes ,kobe bryant shoes ,michael jordan shoes and so on, Welcome to our homepage.

  • http://www.vip-plaza.com/ cheap nike air max

    very useful

  • http://www.vip-plaza.com/ cheap nike air max

    very useful

  • http://gossipkings.com/ celebrity fuck you

    Sign: zdbrw Hello!!! stexp and 58vgneypqbus and 4836 : Sorry, what did you mean?? A??

  • http://gossipkings.com/ celebrity fuck you

    Sign: zdbrw Hello!!! stexp and 58vgneypqbus and 4836 : Sorry, what did you mean?? A??

blog comments powered by Disqus