25

Aug

Filed in Code, PHP, WordPress |

This weekend I took the opportunity to implement a bunch of changes, and fixes, into the wp-lifestream plugin which I created. It got a quick overhaul on the extensibility end, allowing you to do much more with complex feeds. To demonstrate the power, I went ahead and built the much-requested Pandora feed plugin.

The plugin itself, pulls from three different feeds, and displays different labels based on which feed the data comes from. The new feed format allows you to store a key, which specifies the a sort-of sub-feed within the feed. The changes also allow you to make the labels on all feeds dynamic, by overriding two new functions: get_label_single() and get_label_plural().

I also went ahead and moved the LifeStream administration into its own tab, instead of trying to integrate my CSS into WordPress. This allows it much better integration with custom administration themes.

You will find that the links to feed sites are now replaced with links to your profiles on those sites (on most feeds). This will make it easier for your visitors to interact with you on the many social networks out there which exist.

And finally among the changes, are more internal changes geared towards hackers who want to customize the output of their feed. The function lifestream_get_events() was added, which accepts the same parameters as the default lifestream() function, but instead returns an array of Event instances. This allows you to do anything from putting your lifestream in a custom sidebar template, to sticking your recent tweets on the homepage.

Among the TODO, when I get more time, is support for WPMU, and as always, more feeds.

If you think there’s something that would make a good addition, feel free to let me know. Either drop me an email or post a comment on the project page.

View Comments Responses to "WordPress LifeStream Plugin Updates"

Subscribe to this topic with RSS or get the Trackback URL
Austin Storm (Aug 25th):

WPMU support would be neat, but could you throw in support for multiple users on the same blog? That is, either multiple lifestreams on the same blog, or assigning a user / e-mail address to each feed and putting a gravatar next to their entries?

David (Aug 25th):

The WPMU support (should) affect things the same way as just having multiple users on the same blog.

It will contain a hook for showing a users lifestream (passing the user_id), which should be usable in any template. It will also change the database so a feed has a user_id bound to it, and some of the unique constraints will change. This would allow you to show a global lifestream feed, or individual streams. I will also include the option to show the user’s name in the event.

Pavan Chander (Aug 27th):

I just recently discovered your plugin, but when I upload and activate the plugin it doesn’t show up anywhere in the administrative panels.

I am using php5.

Demods (Aug 28th):

There seems to be a conflict with the Lighter Menus (http://wordpress.org/extend/plugins/lighter-admin-drop-menus/) extension. If “Lighter Menus” is enabled, LifeStream links don’t work, they point to http://domain.com/wp-admin/lifestream.php?page=lifestream.php, which is not correct. But after disabling Lighter Menus, LifeStream links do work.

All other extensions work properly, so there might be a problem with LifeStream.

Fyi..

Pablo DiCiacco (Sep 2nd):

Just updated. Any action performed in the plugin admin returns the error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /home/onewalru/public_html/FORUMS/wordpress_walrus/wp-content/plugins/lifestream/lib/simplepie.inc on line 14189

Every time!

Pablo DiCiacco (Sep 2nd):

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122014 bytes) in /home/onewalru/public_html/FORUMS/wordpress_walrus/wp-content/plugins/lifestream/lib/simplepie.inc on line 14074

davidconnell (Sep 14th):

This looks excellent. I am on WP 2.6.1 and do not see the configuration link under settings. Is there a compatibility issue?

RaiulBaztepo (Mar 28th):

Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I’v just started to learn this language ;)
See you!
Your, Raiul Baztepo

air jordan 10 (Jun 5th):

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/

air jordan 10 (Jun 5th):

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/

UGG boots (Jun 11th):

I am also a XX fan who really like this! I also like XX, and purchase lots of it every time,
<a href=” http://www.eeadie.com“ >eeadie
like-minded friends can have a look ,we can communicate by the way~~

gucci outlet (Jul 5th):

Mark S. is definitely on the right track. If you want to get a professional looking email address, Id recommend buying your name domain name, like or
ajf 3
If its common it might be difficult to get, however, be creative and you can usually find something.

gucci handbags (Jul 14th):

Mark S. is definitely on the right track. If you want to get a professional looking email address, Id recommend buying your name domain name, like or
gucci muffler
If its common it might be difficult to get, however, be creative and you can usually find something.

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.
blog comments powered by Disqus