Lifestream WP Plugin for Wordpress
I liked the idea of a Lifestream view for my blog, so I took at Chris J. Davis’ Lifestream plugin. Unfortunately, it was limited to a small subset of RSS feeds, which I did not find useful. So, I rewrote the “engine” behind the lifestream to produce my own lifestream plugin. Enjoy!

Version 0.1 BETA! Use at own risk! Not production code!
Features: What it does
You might wonder what this lifestream implementation offers over others. The primary differences are:
- Pluggable, auto-detected data-source modules
- Disk-based caching interface
- RSS, Database, Facebook, Flickr API integration
WP-Lifestream ships with the following modules: Wordpress, Flickr, Facebook, Last.fm, and Wordie. Here’s a screenshot of it in action:

Download & Installation
This is the hard part. Download lifestream.zip. You’ll need to do the following, then:
- Put wp-cron.php in your plugins folder and activate it
- Put the entire data folder into your theme folder
- Put stream.php and life.php into your theme folder
- Customize stream.php to fit your template
- Put images/lifestream somewhere sensible and change the references to it
- If you want to use the Facebook or Flickr widgets, edit data/lib/common.php with your credentials
- Make things writable that need to be. Things like data/lib/flickrcache, data/lib/cookie.txt, and data/cache are good places to start
That’s a pain. I’ll make it easier in the future, I promise.
Adding a new source
Adding a new source is the easiest and most fun part of the new infrastructure. There are just three things to do:
1) Write a class which implements a method called Refresh(){…} which will be called whenever the caches need to be refreshed and a method called Items(){…} which should return an array[time] = array(title, link), and has a member name defining its unique display name.
2) Create a file for your new source, and put it in the data directory. It should call $lifestream->AddService with your class, like $this->AddService(new YourDataSource());
3) Create a nice icon and add it to the images/lifestream folder and in stream.php. In the future module classes will be fully encapsulated with their own styles and icons.
If you do create a new class of source, please email me and I’ll include it immediately!
Changelog
.01 – initial version
| This entry was posted on Thursday, December 14th, 2006 at 1:53 am and is tagged with theme folder, source modules, plugins folder, facebook, data cache, flickr, data directory, data source, widgets, caches, member name, wordpress, subset, credentials, screenshot, lib, array, infrastructure, lifestream, ships. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback. |
40 Responses to “Lifestream WP Plugin for Wordpress”
Leave a Reply



is it work?
sorry for the comments back to back.
figured it out. turned off facebook source and it works. hopefully there will be a php4 version soon.
Great plugin, I've been using it for some time and only have one request.
Is there any way to put the icons on a transparent background? I dont have “white” as the bg color for my content section, therefore I have these icons with a white background on my page.
Cool plugin! I can't wait to try this!
BTW, why have you not included your own lifestream page? I would like to see a demo page.
thanks your plugin
Hi,
Elliot, I was interested in lifestreaming, and i found your app.
However, it was a little frustrating to get to grips with, so I hacked together my own…. taking inspiration from your idea but using SimplePie.
Its now hit fully fledged plugin status, with admin options page etc, and WYSIWYG feed styling etc.
Cheers for the inspiration
http://kierandelaney.net/blog/projects/simplelife/
I agree with Pete, it is indeed rather a nice little hack than a plugin… cool work anyway man! Visit my site sometime!
http://www.skinned.co.nr
Godspeeeeed!
Wow, well, this plugin ended up being way too complicated for me. I’m not sure how anyone has gotten it to work, but hey more power to you if you did get it to work. I guess I’m confused because this isn’t really a plugin. It’s more of a hack or work-around. Ah well, thanks, anyway!
thank you for your work, all works deserves a thank you
I am using a different lifestream now, but thanks for contacting me back then in march elliott!!
[...] Si quieren crear su lifestream en su blog desarrollado en Wordpress, les aviso que los plugins por ahora disponibles son bastante complejos de configurar e implican meter mano en sus templates. Pero si se animan, pueden ver en los blogs de Elliott Back y Chris Davis. También hay un plugin para Expression Engine, el sucesor de Pmachine. [...]
sorry for the comments back to back.
figured it out. turned off facebook source and it works. hopefully there will be a php4 version soon.
thank you.
shoot.
i only have php4, i think thats the issue.
figured it out. turned off facebook source and it works. hopefully there will be a php4 version soon.
sorry
got the page template up. but i get this error
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in lib/facebookapi_php5_restlib.php on line 17