SimpleLife

SimpleLife is a (getting not very) simple Wordpress Plugin adapted from my own custom php script for my own lifestream.

Excited? See it in action: Here

NOTE: As of 1.1a Simplelife is currently backwards compatible with PHP4 but timezones may not display correctly. Upgrade to PHP5. PHP4 has now been “end-of-life’d” - its dead.

Features

  • Works With All Feeds - even del.icio.us feeds. MagpieRSS, provided by Wordpress and used by other plugins doesn’t work correctly with del.icio.us feeds.
  • Feed Icons - provided by the feeds themselves (using appropriate site favicon) or custom icons (provided by you).
  • Install And Go - no settings to play with, uses existing wordpress cache, just insert your usernames and choose your color schemes (or don’t).
  • Compact/Lightweight - you won’t get lifestream specific CSS on every page where its not needed and you get one function - its all handled on the lifestream page itself.
  • Widget Ready - Add your lifestream to your sidebar widget style!
  • Themeable - WYSIWYG Styling Options, see examples in the options page “right here, right now”.

As you may have gathered SimpleLife takes its name from the underlying feed parsing software used, SimplePie. SimplePie is included with the plugin (its one of the files you need to upload) and provides safe, fast and compliant parsing technology.

SimpleLife started off an unsupported hack I made available - it worked for my site and that was good enough for me. However.. people started sking awkward questions, and seemed genuinely interested - so I’ve made the whole thing into a proper plugin. The trouble is the more i added the more i needed to add, and the more I thought about adding.

I have included a link to this page in the code and would appreciate it if you would keep the link as is. Afterall, its only fair to give credit for the many hours I’ve spent providing you with an ace lifestream plugin that works, that you can download and use and that works out of the box ;)

FAQ

Is there a database - will this plugin archive my life?
No! Its really beyond the scope of this plugin - no one really cares what you did on Jan 16th 2004 on the internet. It is kinda cool what you did yesterday though. See?
:| So it polls the feeds everytime the script is executed?
No! The cache you set determines how long before it repolls the feeds (in seconds). The default is 15 minutes. That doesn’t mean it repolls every fifteen minutes. That means it repolls when the script is run, unless the script was run less than 15 minutes ago. Now I’m confused.
Why doesn’t simple life do/say/look like X/Y/Z?
Sigh. CTRL-F and search through the comments. Check the “To Do” list. If its not been mentioned before request it :)
Is it free?
Yes, but why not send me something like sweets through the post. That would be a nice gesture.
OMG Why is it doing this?
Sigh. CTRL-F and search through the comments. Check the “To Do” list. If its not been mentioned before ask about it :)
I’ve loaded it up and there is code all over the plugin management page?
Looks like a line break issue - if you’re competent enough, open the plugin in a text editor, and convert unix linebreaks. Otherwise download the most recent version. Also - if you do experience this problem, DON’T UPLOAD AND EXTRACT A ZIP. Extract the Zip and upload the files seperately - some servers apparently don’t make zip love like they used to.
Can you make it work on PHP4?
I’ve tried, tried til my fingers were blue in their faces. Simplife is PHP5 - as of August this year PHP4 will be unsupported by all including PHP themselves… so there is no motivation to develop for a dead platform! Unless you fancy paying me :)?!
OK, so my server is PHP4 default, but i can force PHP5 - why is it not working?Why is it PHP4 by default? Change it! PHP5 is better. Its newer. Its shinier. Its a bigger number - and bigger is better. If you absolutely have to do this, make everything inside the wordpress directory run as php5 (some servers let you specify directories) or you will get issues.
Whats a page/template/tag?
Read This. Otherwise, use the widget.
I set up the template but its blank?
Does the widget work? That will narrow down whther or not the plugin is playing up or your template is borked.
The code doesn’t work, it doesn’t it doesn’t it doesn’t it doesn’t it just shows up, fix it for me, FIX IT FOR ME.
Put. It. In. A. Page. Template.
My feed doesn’t format properly, it doesn’t recognise my style options…
Feedburner, Google Reader, Delicious and any other service that links a feed item to a different domain than its source will not work. Don’t use feedburner tbh.

History

  • 1.1a Twitter Feed - Currently truncated, needs to be fixed.
  • 1.1a Fix Stripos in PHP4 - Not available on PHP4 installations.
  • 1.1a Date Formats - Allow user to display DAY and TIME how they like.
  • 1.1a Allow Users To Change Timezone - Optional for PHP5 users to correct times. tz settz
  • 1.1a Experimental: Allow PHP4 Users To Change Timezone - Would really be useful even though PHP4 is end-of-life’d furtherreading
  • 1.1a Date/Time Display Formats - Including date time display options for each feed item.
  • 1.1a Option & Function Tidy Up - Some of the options I’ve used are a bit non specific, which could clash with a similarly badly written plugin :)
  • 1.1a Last.FM Bug - Typo leading to no background color for last.fm
  • 1.1b Timezone Bug - Typo leading to call of non PHP4 function in PHP4 installs.
  • 1.2 Uploaded To Wordpress.org - Plugin updates should now appear in wordpress.
  • 1.3 PHP Version Indicator - Because people don’t know how to check
  • 1.3 Twitter is broken! - fixed fixed
  • 1.3 Remove Stripos Completely - moved to pregmatch as there were still some issues. Fingers crossed with PHP4.
  • 1.3 Flickr Image Display - Optional setting to allow you to show photos for flickr feeds.
  • 1.3 Flickr Title Display - Optional setting to allow you to show titless for flickr feeds - useful if showing thumbnails as they are sometimes ugly together.

To Do

  • Different Encapsulation? - Requested. Possibly look at using divs instead of lists. I’m not keen on this, I’d rather offer more styling options for the list such as width/height etc.
  • Date Cut Off - Only show feed items for last ‘n’ days for example.
  • Extra Display Options - Full control over borders etc
  • Flickr Tag - Show flickr feed with only one flickr tag.
  • Relative Dates - 1 day ago, 2 days ago….
  • Fix Line Ends Issues - Assuming thats whats causing the trouble!
  • Update SimplePie - Use new basic simplepie plugin.
  • Cache Path - Need to update the cache path for root installations.
  • Deviant Art Feed - Yes

Updates

blue feed icon Subscribe to this feed for plugin updates

Examples

Lifestream Screen Shot
Brian Graves
Apollo
Kevin Donahue
2by4
Daniel Sale
Dabelo.com
Anthony Chivetta
Kieran’s Lifestream

Download

Simplelife 1.0
Simplelife 1.1
SimpleLife 1.1a
SimpleLife 1.1b
SimpleLife 1.3 is closed for testing.

Installation Instructions

  • Unzip download
  • Upload simplelife directory to your plugins directory
  • Activate the simplife plugin
  • Go to Options -> Simplelife….. Fill them out. Choose your colors. La La.
  • Either add your lifestream to your sidebar with the Widget (might want to limit the items ;) or place <?php simplelife(); ?> in a template file. I’ve included an example you can upload to your current theme directory, which contains title, blurb (when you type it in the page content box) and comments (if you enable them).
  • Enjoy

Please comment here with a link to your page if you use SimpleLife, I’d love to see everybody’s implementations.

116 Comments »

RSS feed for comments on this post. TrackBack URI

  1. Brian wrote:

    Hey - This is great! I have been developing a standalone app using PHP, MySQL, and SimpleXML and then I found your WP plugin.

    I am going to be updating the CSS to suit my needs, but it is working far better than any tumblr or gelato or whatever.

  2. Apollo wrote:

    Thanks for sharing this with the world. I’m enjoying it very much and have tweaked it to work on my site.

    Do you know if there’s any way to limit the number of items grabbed from each feed?

  3. Kieran wrote:

    Guys,

    Thanks for the comments - if your blog theme is public domain, do you mind sending me your altered files so i can make them available for others.

    These will be more useful when simplelife becomes a fully fledged plugin.

    Apollo, there is indeed a way to limit the feeds, but it requires a fair bit of code changing.

    To keep you guys up to date i am aiming to create an options panel under plugins where you can insert the feed address, choose the foreground and background colours, choose the limit for that feed and assign an icon.

    Unfortunately time being short this is not like to hit until January.

    Cheers.

  4. Mike Hedge wrote:

    it’s a bit over my head… so it’ll exciting when the plug in is done.

  5. nibaq wrote:

    Great plugin! Much easier than hacking simplepie for wordpress.

    One thing to note that the timestamp only works with PHP5+. My PHP was 4.x and was giving errors so had to upgrade it to 5.

    Only got one problem my blog entries are listed as delicious entries. I’ve tried changing the css and even the code in the php but still sees it as a a delicious feed. Any idea why?

    http://www.2by4.org/simplelife/

  6. nibaq wrote:

    Ah figured out the problem. I have my blog feed at Feedburner.com. So had to change the simplelife.php to filter out “feedburner”.

    This could cause an issue with people who use multiple feeds via feedburner.

  7. Kieran wrote:

    Nibaq

    On this line:
    if (stripos($url, ‘flickr’) !== false) {

    Instead of ‘flickr’ use:
    ‘feeds.feedburner.com/~r/SaviorMachine’ or
    ‘SaviorMachine’ etc

    for you blog. All stripos does is check the URL for the keyword in quotes. The keyword you check can be a whole url if you want. Using ‘Feedburner’ isnt a good idea because as you say its not unique to the feed, so use another part or a longer part…

    That make sense?

  8. Jeffro2pt0 wrote:

    I tried to view your demo Live Steam page and it appears to be broken.

    Fatal error: Cannot redeclare class SimplePie in /home/.skippy/pictureg/kierandelaney.net/blog/wp-content/themes/plaintxtBlog/simplepie.inc on line 346

  9. Kieran wrote:

    Jeffro, I’m currently turning SimpleLife into a full wordpress plugin, and the plugin/lifestream page were clashing. I’ve tidied up the code in the plugin, so there should be no further clashes in future for anybody with any instance of SimplePie.

  10. Jeffro2pt0 wrote:

    Ok. Kieran. Do you have any sort of time table for the release of the FULL plugin? I’d like to write up a review of it but if you’re close to releasing the full version, I’d be happy to wait it out.

  11. Brian wrote:

    Meh - That didn’t take long. I am going back to the templated version. Although I really like this project you’re working on and LOVE the fact that you’ve given the option to limit the number of items and the frequency that they are pulled at, I do have a few things that broke the deal for me.

    Why I dislike the plugin version:
    1. Still no option to display actual Flickr photos
    2. I’ve made customizations and like the flexibility of CSS over the ease of the color picker.
    3. I don’t want ALL of my flickr photos showing up…just the ones that I’ve tagged to show up. I know that I can use one of the custom fields, but that sorta defeats the purpose.

  12. Mike Hedge wrote:

    ok… so I saved my color settings…. but seems like I’m doing something wrong…

  13. Kieran wrote:

    Brian -

    Thanks for the thoughts.

    1) Flickr photos is coming. I was working on it late last night and broke the plugin. In an effort to get it out before a very busy weekend, I rolled back and left it to the next version.
    2) You can still add hex colours to the boxes, they are text fields. What other customisations have you made, as I am looking to increase the flexibility of the styling.
    3) I will add the option to show only specific tags - easy to do. Great idea. :)

  14. Steven wrote:

    Have you tested your plugin with Wordpress 2.3+? I was using Chris J. Davis’ Lifestream code for 2.2 but found it died with 2.3+. Now I’ve enabled yours, set all the settings, etc., etc., but I get the following error anytime I try to create / edit a post (or any admin page for that matter):
    Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/simplelife/simplepie.inc:1) in /wp-includes/pluggable.php on line 391

    Hope to see a fix for this soon, in the meantime I suppose I’ll backup my settings and disable it / make my own unless I can find a Wordpress 2.3+ compatible lifestream that actually works somewhere…

    This one looked so promising :(

  15. Kieran wrote:

    14. Steven

    This plugin works on my installation of wordpress, which is 2.3.

    Google says this error is something to do with spaces in php files, and so far you are the only person who has had this error - can you delete and reupload the files to see if the probem persists? It could also be that the files corrupted when you downloaded them?

    I will investigate further after xmas.

  16. Dan Ray wrote:

    Hi Kieran,

    Looks like a great plugin! Unfortunately, I’m heaving the same “cannot modify header” problem that Steven reports. It shows up on both my entries and comments feeds when SimpleLife is activated, and goes away when deactivated.

    I had the Feedsmith (FeedBurner) plugin activated originally; the message referenced a different file when I deactivated that plugin, but it was the same basic error.

    Also, every time I would try to deactivate SimpleLife, I got the same error referencing pluggable.php. Every time, though, this one would go away after a reload.

    I didn’t think to test out the symptom that Steven complained of (creating/editing posts), but I imagine we’re both having the same problem.

  17. Kieran wrote:

    Hmmm…..

    I wonder if one of the files is corrupt? I will triple check.

  18. Dan Ray wrote:

    After looking at it a little more, I think my problem *might* be with my PHP version. When I actually put simplelife(); on one of my pages, every line but the last.fm entries displayed an error on line 146 of compat.php, which is within a PHP5 function (stripos).

    Turns out my host (A Small Orange) has PHP4 and 5 installed concurrently, and to use the 5 engine, I’ve gotta rename the file in question to whatever.php5. Of course, renaming the plugin to simplelife.php5 means that WP can’t find it, and I don’t know what file is referencing it. But, at least that means the problem is on my end.

  19. Dan Ray wrote:

    Alright, last post: I got PHP5 working on my end, and that cleared up the compat.php problems.

    Unfortunately, the other issues are still there: RSS feed is broken, publishing a new post returns an error (though the post does go through), and, as it turns out, I think the Twitter feed field is prematurely truncated — my feed is http://twitter.com/statuses/friends_timeline/2198761.rss, but the plugin only permits the first 50 characters.

    Thanks for your work on this plugin, by the way! I don’t mean to fill up this post with complaints.

  20. Kevin Donahue wrote:

    I am getting the same error as Dan Ray (Warning: strpos() [function.strpos]: Empty delimiter. in …location… compat.php on line 146.) and this may be related to php4/5 locations.

    One caveat - I may not be calling the code correctly, as I am attempting to call the simplelife() php command on a “Page”, and the instructions say “a template file”, so maybe I need to try that route? (Seems odd, but I’ll give that a go).

    Implementing here (hopefully):
    http://blog.kevindonahue.com/lifestream/

  21. Kevin Donahue wrote:

    One additional question, as it now appears that I have corrected my php errors (somehow)… is the plugin setup to run as a cron job or refresh itself in some way?

    Also, whenever I am updating any template file/page file/plugin, I am now getting a php error from simplepie.

    For example, after editing a template file:

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/9/d92507477/htdocs/kevindonahue/wp/wp-content/plugins/simplelife/simplepie.inc:1) in /homepages/9/d92507477/htdocs/kevindonahue/wp/wp-admin/theme-editor.php on line 55

    WP still saves my updates to the db, but it is not able to load the page. If I go to my admin bookmark and verify the changes, they are showing as updated - so it is just impacting the refresh.

    Suggestions?

  22. Doug Stewart wrote:

    I echo Dan’s complaint in re: Twitter. It doesn’t work correctly (mine truncates the “ss” on the end of “.rss”, thus giving the incorrect “.r” as the file extension.

  23. Kieran wrote:

    Guys,

    It appears that yes most of the errors people have received are due to PHP4/5. There are functions being used which are PHP5 only. I will get round to seeing if i can reimplement the offending functions with php4 compatible code sometime this week.

    As for Twitter, I don’t use the service and so testing was pretty much a non option - i will correct this bug.

    Thanks for the feedback!

  24. Kieran wrote:

    Kevin - re comment 21.

    I believe there may well be an issue with simplepie and the way it creates headers.

    I will dig into this a bit more. The irritating thing is, it doesn’t do this everywhere all the time, so its difficult to pinpoint the exact issue.

  25. Kevin Donahue wrote:

    Thanks, Kieran. Obviously this has great potential — your implementation makes me drool!!

    Let me know if I can assist in testing!

  26. Doug Stewart wrote:

    A few suggestions, if I may:

    1) Break the style information out into a separate .php file. Go ahead and include() it from within the plugin if you wish, but this will allow folks to customize things further without potentially messing with the core plugin.

    2) Sanitize/namespace all your options. Use a prefix, like “simplelife_” or “sl_” or “wpsl_” or somesuch so that there’s less chance of your plugin clobbering or being interfered with by other plugins’ stored options.

    3) Keep the ULs. Fight the div pushers!

  27. Kieran wrote:

    Doug -

    1) Do you mean the css to style the list entries? Nearly all of this is editable in the options area. If not which bits exactly?
    2) Yess… I did this with some but not all options and i will be renaming them as part of the next release over the next day or two. I have a feeling that this is whats causing a glitch with another plugin someone reported by email.
    3) Yeah I’m all up for keeping UL’s. However i think i will let people choose outline styles, widths heights etc. So they can completely customise the way their lifestream looks.

  28. Doug Stewart wrote:

    Kieran:
    1) I mean, what if someone wants to have borders the whole way around an entry? Or wants to style the time span differently per CSS class? Or wants to make the hover style have background-color set only, so that the favicons continue to display? Flexibility is always a good thing when it comes to styling and breaking the actual CSS out into a separate .inc.php Just Makes Sense to me.

    2) Good to hear.

    3) Also good to hear.

    Another thought to consider: each get_option() call should be executed only once and then stored in a variable in order to reduce total DB call-outs. It ought to help with overall page load speed, if only slightly.

  29. Alexander Radsby wrote:

    instead of using stripos for those who have php4.

    why not use a regular expression?

    if (preg_match(’/\bfacebook\b/’,'facebook’)) {
    $class = ‘facebook’;
    }

  30. Kieran wrote:

    28. Doug - All those things will be options in the options page. I am trying to keep the plugin as simple for non coders as possible and whilst i could split them out to a separate file, those who would find this useful are already competent to make this changes themselves.

    29. Alexander - Thanks for the input, I have already fixed this issue (and some others for PHP4) which you can see in the change log above. The next release will be available sometime this weekend and (fingers crossed) will be fully compatible.

  31. Alexander Radsby wrote:

    Alright, I’m getting this error when I try to post comments or page/post.

    Do you know how to fix this?

    Warning: Cannot modify header information - headers already sent by (output started at /mnt/gs02/herd02/20851/domains/alexanderradsby.com/html/wp-content/plugins/simplelife/simplepie.inc:1) in /mnt/gs02/herd02/20851/domains/alexanderradsby.com/html/wp-includes/pluggable.php on line 391

  32. nibaq wrote:

    Any chance of a relative date system? If I recall correctly there was some code already on simplepie website to enable it.

    That would really be cool.

  33. Kieran wrote:

    31. Alex - Several other people have reported this issue. If you google the error, it appears to be generated by an extra space at the beginning of a php file. I hope it is something to do with a corrupt file coding as it only affects 30% of people. I hope this will be fixed next release.

    32. Nibaq - Excellent idea will add to the todo list.

  34. Kevin Donahue wrote:

    Thank you again for the amazing plugin. My implementation is up & working!

    http://blog.kevindonahue.com/lifestream

  35. Stacy wrote:

    I’ve implemented it as well…very cool!

    I am experiencing a couple of quirks, though. First…my Twitters don’t seem to be updating. and secondly, my Google Reader RSS feed is displaying with the de.licio.us icon instead of google.ico. I uploaded the file to the SimpleLife directory and also indicated the icon in the feed. One example is at 10:14 AM today - the “Striking writers threaten Oscars” link. That’s something I shared in Google Reader.

    Any thoughts?

    http://snarkwife.com/simplelife/

  36. Kieran wrote:

    35. Stacy:

    Unfortunately google reader links directly to the articles, as does del.ico.us. There is no way to check whichfeed each item comes from, only its link destination - as these could be from delicious or google reader the plugin defaults to delicious.

    There isn’t really a fix for this… unless something like feedburner will run through your google reader feed.

    Is your twitter feed not working at all? Are you sure you’ve copied the feed correctly? I haven’t had any other issues since Twitter since the last fix.

  37. Kieran wrote:

    35. Stacy:

    There is indeed a flaw with the twitter component of the code. I will address this ASAP. Meanwhile, you can get around this by using the extra feed for your twitter udates. You can even point the extra feed icon at the twitter icon supplied.

  38. Thomas wrote:

    Keiran,

    I’ve got a weird thing going on where if I place on a page the lifestream appears as just a bulleted list, without any formatting except hover states. BUT if I activate the SimpleLife Widget then the formatting is visible for both the widget and the page. Any thoughts on what’s going on and what I’ve done wrong?

  39. Stacy wrote:

    Thanks for the information! I’ll play around a bit with seeing how I could get Google Reader to integrate and display the Google icon instead of delicious.

    I don’t seem to have Twitter icon in my folder…did I miss that in the download?

    Many thanks!

  40. Kieran wrote:

    Thomas - no idea - i can’t see a lifestream page i’m not sure if i can help without further info.

    Stacy - Dan Camerons Lifestream rather neatly addresses the delicious and google reader clash by reffering both together as outside links.

  41. Kevin Donahue wrote:

    Just wanted to put in my 2 cents for an option to output a feed in xml format.

  42. Thomas wrote:

    Kieran - the lifestream page is here http://ttrumble.com/links/ (it was a draft when I left my original comment) I have the widget de-activated so that you can see the lack of formatting, but am happy to add the widget again to show you that. Any feedback is appreciated.

  43. Thomas wrote:

    Kieran - found the problem, stupid mistake on my part, and the plugin is working brilliantly and I’m playing with the CSS to clean up my implementation. Thank you. Will you be posting version 1.2 soon? Nice, clean, new theme.

  44. Giles wrote:

    I uploaded the folder .. .. my plugins page looks all messed up due to HUGE amounts of text from the simplelife .. and when i go to activate it i get an error on line one … am i being really stupid ?

  45. Kieran wrote:

    44. Giles, probably :)

    You’re the only person this is currently happening to so it is probably a mistake at your end…. but it could be one of a few things.

    1) Are you using php 5?
    2) Is there a simplelife folder with lots of files including simplelife.php inside it, and is that folder in your plugins directory?
    3) Have your tried deleting the plugin and reuploading it?

  46. Thomas wrote:

    Giles - I saw this too. Do you have SimplePie installed? I did and found that uninstalling it cleared up the problem. Give it a shot.

  47. Jason wrote:

    Hi,

    Nice looking plugin, I also have the same problem as Giles tho the plugin still seems to work. How do I change the text sizes for it in my sidebar. Sorry not very technical.

    Thanks

    Jason

  48. Kieran wrote:

    47. Jason, do you have simplepie installed?

    Or any other simplepie based plugin?

  49. Jason wrote:

    Hi Kieran

    I don’t have simplepie installed no, I do have

    inline google maps
    wpg2
    spam karma
    lightbox.

    As I say it still all seems to work ok despite show alot of code in my plugins admin. Is it possible to change to font size when using the widget?

  50. Kieran wrote:

    Jason,

    Font sizes are an option i will add - apart from editing the css within the plugin not at the moment.

    Not sure what is causing the code :s

  51. Alan wrote:

    Great plugin, thanks for the great work!

    I’m running v1.2 and most of my items are showing up as class=”delicious” even though they are actually coming from other feeds (Twitter, Digg, Google Reader, etc). Last.fm is the only feed that is *not* showing up as class=”delicious”.

    Also, it would be really great to be able to add additional feeds beyond just the 4 extras.

    Thanks!

  52. Alan wrote:

    @Kieran, I see now that you are using the permalink for each item in a feed to determine that item’s class… why not use the feed itself?

  53. Kieran wrote:

    51. Alan

    Twitter should show up correctly, i will check that if you can supply me your twitter feed.

    As you will read in the comments above, and probably identified, the link dictates the class and google reader, delicious etc all link directly to articles. There is no way around this, delicious is a catch all.

    Simplepie does not let you assign names when merging feeds, hence the match to check links to classes.

  54. Alan wrote:

    @Kieran, I only know enough PHP to be dangerous… but…

    I played w/ your code a bit a did a print_r($item) in your loop… and saw that each item printed a data structure that looks like it *does* contain a reference to the feed that it came from.

    Can you look at that and see if there is a way of getting to that feed value? Then you could check against that instead of the item itself to determine which feed it came from?

    wrt twitter my feed is http://twitter.com/statuses/user_timeline/3975231.rss

    Thanks!

  55. Kieran wrote:

    Alan,

    Tested you twitter feed and it works for me!

  56. Rick wrote:

    Hi Keiran

    I’m having the same issue than Giles (he is not lonely anymore :) ), and the answers is yes to all the questions… I’ve done also a lifestream plugin and wanted to sneak yours a little bit, but seems I can’t :)

  57. absolon wrote:

    Hi!
    Plugin looks very promising. But I got similar problem to Giles (comment no 44). After I uploaded I got huge list of simplelife code etc. on Plugins page.

    Please look at screenshot

    I’m using PHP5
    I’ve tried disable all plugins but nothing happen.
    I got just 7 plugins:

    AddQuicktag
    Akismet
    dDeviantArt
    More fields
    Search Regex
    SimpleTags
    WassUp

    Any ideas?
    Thank you in advanced.

  58. Kieran wrote:

    Ok - I’ll officially admit to being baffled - I’ve contacted some other plugin makers to see if they can shed any light… it doesn’t make sense that this should happen to some and not others! :(

  59. Thomas wrote:

    Alan - if you have no fear of hacking the plugin you can have up to 9 total additional feeds. It’s not hard to do.

  60. Anthony Chivetta wrote:

    I had the same problem of Giles (44). It was a line ending issue, for me. I opened the .php and .ini files up in my text editor and told it to convert to unix line endings. That seemed to fix the issue. Hope that works for you!

    Also, if it helps shed any light, the first time (when it didn’t work), I wget-ed the zip straight to my server and extracted there. But, I SCPed the converted files up.

  61. Kieran wrote:

    This sounds on the money actually, because i’ve had trouble uploading the plugins to the repository, similar things happened with code appearing in the description.

    Hmmph! Anybody got any suggestions for a code editor in OSX? I’m using Smultron, but its clanky, and appears to bork line endings!

  62. absolon wrote:

    Hi again!

    Plugin works great now! I’d like to back to icons display issue. I got feed from deviantart.com with recent favourites (as shown below)

    http://backend.deviantart.com/rss.xml?q=favby%3Aabsolon&type=deviation

    Simplelife displayed deviantart’s items with delicious icon.
    In all cases destionation address is always http://deviantart.com/...
    Is it possible to fix it and make display with right icon?
    Thanks in advanced

  63. Kieran wrote:

    Great idea I will add a deviantart feed.

  64. absolon wrote:

    Thanks for quick response.
    I’m looking forward to deviant’s feed.

    Greetings!

  65. Rick wrote:

    Hi Kieran, some suggestions:

    - You can construct the twitter feed by: ‘http://twitter.com/statuses/user_timeline/’.$username.’.rss’

    - You should assign a CSS class to every element (ie, main ul) and provide a class to avoid collisions, or maybe use a table (hey, its tabular data after all :) )

    - In FF 2.0.0.11, the JS colorpicker appears in the top of the page

    - You can add Pownce service (but I warn you, the pownce feed is horrible)

    - Maybe the blog feed could be auto-configurable (by bloginfo(’rss_url’); )

    Thanks

  66. creeva wrote:

    I’m currently using the plugin here - http://creeva.com/life-stream/

    have you considered a method for databasing the streams locally and long term - so you have historical data going back over a longer period of time - also this would definetly speed up the script IMO. I haven’t dugg too far into the script but it would seem that it polls the RSS feed everytime the script is loaded

  67. Kieran wrote:

    Rick:
    1) I will look at the twitter feed construction - I didn’t realise there was a feed with usernames available (not using twitter myself!).
    2) I’m not sure what you mean - every element has a class (tables meh!)
    3) Yes, FF does appear to behave strangely, waiting for a fix for that.
    4) We are limited to 15 feeds in total, so i am going to try and avoid pownce and let people use the extra feeds up if they want to include it.
    5) The reason I’ve constructed the blog feed like it is, is because some people would rather use a different blog, some use wordpress for just important updates etc - this gives more flexibility - however, i do like the idea of an overiding “Use this blogs feed” option…

    Creeva
    As you will probably have seen above there are vague ideas of databasing up the entries, but it seems like overkill - i have already mentioned in these comments its quite unlikely that I’ll do it. The effort involved would be large and it is beyond the scope of the plugin.

    That said, the plugin polls the feeds as frequently as you set under the cache. The cache determines how often to refresh. The default is ten minutes.

  68. Abhi wrote:

    Hello,
    I have been looking for this plugin for the longest time. I am running Wordpress 2.3 on a PHP5 ‘enabled’ server, so it all requires me to declare php as php5.

    But when I do that it doesn’t appear anywhere on the plugin list. Is there a native php4 version of this plugin?

    That would be just awesome.
    Thanks.

  69. Anish wrote:

    I added the code to a template and created a new page, but any page that has that code shows up blank.

    Any ideas what the issue may be?

    I’m running PHP v5.2.5

  70. Rick wrote:

    Kieran, I have a PHP feed’s time relative function for my plugins, maybe could be useful for you, let me know…

  71. Kieran wrote:

    Abhi
    Simplife is PHP5 - as of August this year PHP4 will be unsupported by all including PHP themselves… so there is no motivation to develop for a dead platform! Try setting the entire wordpress directory to PHP5 - just running the plugin file as PHP5 can cause issues…

    Anish
    The lifestream page is giving me a peculiar zero sized reply error - does the sidebar widget work? This may help narrow down whether the issue is plugin/template related….

    Rick
    Cheers :) am looking.. I hope to add this option for 1.3 and release ity soon :)

  72. Anish wrote:

    Kieran - the widget doesn’t work either.

    * What is SimplePie() supposed to return? The issue is certainly something in the simplepie.inc file…

    I don’t think SimplePie() is returning the right value [at the “$feed = new SimplePie()” line in simplelife.php]. I checked the variables prior to that function call… the array has the right values and the cache dir and refresh timer values are valid.

    * If I comment out the “$this->init();” (around line 670 in simplepie.inc), then the function returns a value and loads the webpage — but, of course, not with any value at that point. If I uncomment that line, I get the blank page… I’m not capable of tracing through the code very effectively, but hopefully this will be of some use in pinpointing the issue.

    Additional info on things I checked up to this point:
    * I added a cache check to the code (like simplepie for wp) and verified that the cache exists and is writable. I don’t see anything in the cache, but I attribute that to the fact that I don’t get far along in the simplelife code to write to cache.

    * I don’t know how much PHP memory is needed, but I increased the size to 32M

    Any insight you can provide would be appreciated.

  73. Anish wrote:

    Kieren, the Blank Page issue I was seeing was indeed related to SimplePie. The issue is discussed on their forums at http://simplepie.org/support/viewtopic.php?id=1334

    I overwrote the SimplePie.inc with the latest release (v1.1, available at http://simplepie.org/downloads/) and things are working as expected now. v1.1 has been out for a few weeks now so maybe it would be worth updating in your SimpleLife 1.3 release.

    Thanks for your efforts.

  74. Abhimanyu Chirimar wrote:

    Hey Kieran,
    Thanks, so I figured out that Site5 does support folder specific php5 which I activated, and now I get these 2 different errors -

    Warning: /home/public_html/wp-content/themes/cache/eae9aed99f945b5f5f4090cde6a8abc2.spc is not writeable in /home/public_html/wp-content/plugins/simplelife/simplepie.inc on line 1623
    # Feb 2nd

    Warning: strpos() [function.strpos]: Empty delimiter. in /home/public_html/wp-includes/compat.php on line 146

    Any ideas?

  75. Giles wrote:

    Just anted to come back and say that the fix of resaving in UNIX line ndings worked for me. I just opened them up in Dreamweaver and resaved .. Bam orks great !

    will set about implementing it soon !

  76. Kieran wrote:

    Anish - I will update SimplePie to 1.1 in the next version

    Abhi - Your cache directory appears not to be set properly - It’s trying to write to a cache directory in your themes folder… let me check why this might happen. Not sure why strpos is playing up, it could be because the cache is causing errors further up.

  77. Abhimanyu Chirimar wrote:

    Hey Kieran,
    That would be great. I was running Elliot Back’s script but it was too buggy for me. I really wanna let this rock and roll. Lifestreaming … ah

  78. Guillermo López wrote:

    I activated Simplelife, and I get this error:
    Warning: /web/sites/vhbu3/3/3/81971/public/www/wp-content/cache/402772c87e8926669d42be5fc9e88995.spc is not writeable in /web/sites/vhbu3/3/3/81971/public/www/wp-content/plugins/simplelife/simplepie.inc on line 1623

  79. Austin wrote:

    The plugin seems to work great, but it doesn’t have any formatting (icons or color).
    I’m running the exec-PHP plugin for some other stuff…does that interfere?

  80. Anish wrote:

    Feeds I’d like to see added by default.

    goodreads.com
    linkedin.com
    my youtube favorites
    amazon wishlist
    netflix

  81. JC wrote:

    Hi!
    Having the same problems as Abhi relating to cache and compat errors. Using it only for Delicious. Weirdly the links do show up but it seems that each single call to Delicious returns 5 compat errors (the same one 5 times). Pasted it only once below (under the “# Feb 11th” text which was pulled from Delicious).

    Thanks,
    JC

    Errors on blog page calling simplelife();
    ————————
    Warning: /home/jcnescic/public_html/portfolio/wp-content/cache/87bba3ad56ce3422900d566d4ae5520a.spc is not writeable in /home/jcnescic/public_html/portfolio/wp-content/plugins/simplelife/simplepie.inc on line 1623
    # Feb 11th

    Warning: strpos() [function.strpos]: Empty delimiter. in /home/jcnescic/public_html/portfolio/wp-includes/compat.php on line 146
    ————————

    Errors in WP admin after saving said page:
    ————————
    Warning: Cannot modify header information - headers already sent by (output started at /home/jcnescic/public_html/portfolio/wp-content/plugins/simplelife/simplelife.php:3) in /home/jcnescic/public_html/portfolio/wp-includes/pluggable.php on line 391
    ————————

  82. JC wrote:

    Hi again,
    PHP version was the source of the strpos error.
    However, pluggable and cache errors persist.

    Hope this helps,

    JC

  83. Ian Delaney wrote:

    Also getting the cache error at

    http://twopointouch.com/lifestream-beta/

    Warning: /home/twopoint/public_html/wp-content/themes/cache/57e725510c4a148cbc86163033a5c24b.spc is not writeable in /home/twopoint/public_html/wp-content/plugins/simplelife/simplepie.inc on line 1623

    It’s not picking up custom colours either.

    Great work on developing the plug-in, though, look forward to future advances.

  84. Kieran wrote:

    The cache issue will be fixed in the next version.

  85. Guillermo López wrote:

    Hi,
    I can´t download the latest version of SimpleLife in WordPress.org

  86. Nick Taylor wrote:

    Hi Kieran,

    Great work on the plugin. For some reason I can’t see any of the icons, and my colours are being ignored. Also, it seems to have broken the header of my blog (using K2)… http://nicktaylor.co.uk/simplelife/

    What have I done wrong? :)

    Thanks,
    Nick.

  87. Nick Taylor wrote:

    Hmm, something funny making the PHP not return anything when generating the CSS. Worked around by cutting and pasting what the CSS should be. Not sure why it wasn’t working automagically, but no need to look into it unless someone else is stuck too…

    Thanks again :)

  88. Robert wrote:

    Having the same problem as Giles and Rick. Have FTP’d the plugin and used wget / copy to get the files to the server.

    Both methods result in the plugin page becoming swamped with code.

    PHP v5.2.3
    All other plugins disabled

    :(

  89. Joel wrote:

    yeah, is WP.org not hosting the download anymore?

    btw. super-cool project.

  90. Ryan Parman wrote:

    This is Ryan from the SimplePie project. We’re planning to make some WordPress-related changes that might affect your plugin, and we wanted you to be aware. I would encourage you to adopt some of the changes we’re suggesting because we believe that many users of SimplePie-based WordPress plugins will benefit. Feel free to direct any feedback to me. Thanks! :)

    http://simplepie.org/wiki/plugins/wordpress/simplepie_core

  91. Kitta wrote:

    I was wondering if you knew what’s causing the cache issues. I’ve had a look at the code and I tried editing with the cache path, but it still says that it can’t write to the file. Is there meant to be a ‘cache’ file in the ‘wp-content/plugin/simplelife’ directory?

  92. Kieran wrote:

    Kitta,

    The cache issue is present because of the non uniform structure of some wordpress installations. I will be addressing this in the next release.

  93. Jessica wrote:

    Would the cache issue affect some feeds and not others? I’ve noticed that my last.fm feed, which was okay a few days ago, has stopped updating. Others, like my Twitter/blog/netflix feeds, never worked at all, but del.icio.us and flickr seem to work fine.

  94. annmolly wrote:

    I got this error message:
    …Warning: /www//wp-content/cache/ee6f6364ba52ceee93de7e6fc12beae7.spc is not writeable in …htdocs/wp-content/plugins/simplelife/simplepie.inc on line 1623

    How to fix it?

  95. oddEvan wrote:

    I’m working on my lifestream; it’s at http://www.oddevan.com/lifestream/ . Thanks for the good plugin.

  96. Benji wrote:

    @Jessica
    I agree twitter and facebook doesnt work for me…

    I love the idea, but why not add class for css instead of inserting the style… it makes my page not valid…

  97. db0 wrote:

    I’m afraid to activate it like that so I’m waiting for the next version :)

    Update, Not exactly how but I managed to fix it. It seems that your plugin description fields create problem (Although I can’t see how since they in comment tags)

    I removed some newlines and now the plugin page seems ok

    Now the plugin seems to work :)
    http://dbzer0.com/about

  98. db0 wrote:

    I have now a similar problem like Nick Taylor where the css style I’ve defined is not used. Even though the css is loaded in the page, the link, border and icons are not displayed as they should.

    I tried various things (like putting #simplelife in front of all .a classes and then wrapping the display function with a div) but nothing worked.

    Any idea?

  99. Kieran wrote:

    db0:

    As described in the FAQ, the plugin description fields need their unix line breaks fixed, you can do this by choosing to edit the plugin and saving it without changes - wordpress converts the linebreaks on save.

    As for the CSS, i suggest !important for each declaraion, but if you have defined your own CSS I’m afraid I can’t help - i can only support what I have written, extra CSS could be failing for 100 different reasons!

  100. db0 wrote:

    I’ve kept the !important declarations but it does not work. Nevertheless with trial and error I’ve managed to trace the problem to your

    if (stripos($url, substr(get_option('s_blog'), 5,9)) !== false)

    Statements
    It does not match anything other than the last.fm and facebook urls.

    I couldn’t understand was getting everything with the delicious class for everything else until I looked at the code where it defaults to that.
    I created a new class for default and now it looks better but I still cannot make the if functionality work.

    Any idea what might be causing this?

  101. db0 wrote:

    Ok, I think I’ve figured out what the problem is.

    You’re using this statement
    if (stripos($url, substr(get_option('simple_feed1'), 5,9)) !== false) {
    $class = 'simple_feed1';
    }

    To match a link provided by my feed to the domain name of the feed itself.

    Unfortunately, I use feedburner who’s addresses are in the form of http://feeds.feedburner.com/Db0

    Thus, when looking for the 5th to 9th character you just get “//fe” which is not included in the actual url link of any single entry of the feed.

    So this plugin not compatible with feedburner. Not compaining mind you, just something to warn of ;)

    I’ll try to work around this now by hacking :P

  102. Kieran wrote:

    Sorry, I should have put that in the fact, I’m sure it was mentioned in the comments above - feedburner causes problems.

    Feedburner feeds act like google reader and del.ico.us feeds. The only way to make them behave otherwise is to hardcode the string you want to match, ie match the true target rather than the feed source.

    I could get round this by adding an option to allow people to add a keyword, so for a feedburner feed they could add an optional keyword or string from the target. However, this isn’t reliable if the feedburner feed targets different sites for example, and it further increases the complexity of this “simple” plugin!

    Let me know how you fare!

  103. db0 wrote:

    The only way to make them behave otherwise is to hardcode the string you want to match, ie match the true target rather than the feed source.

    Hmm, for feedburner perhaps you can ask the alias of the feed instead of the whole url (i.e. in feeds.feedburner.com/db0 the alias is db0) This can act as the keyword which you append to the feedburner address to get the feeed.

    Google reader also has a unique ID which you can use as a keyword instead of the whole feed. In a Reader shared items feed, the url is as such http://www.google.com/reader/shared/13245328054084406047 and the ID is the bolded part.

    This can be your unique ID.

    And the same for twitter: http://twitter.com/statuses/user_timeline/7105242.rss

    I hope these might point you to the right direction. I’m not a php coder but I’ll attempt to see if I can figure something out as well

    For the moment mine looks good but I’m really looking to expand it more with YouTube, Digg, Wikipedia etc.
    You can see it here: http://dbzer0.com/about

  104. db0 wrote:

    Got it!

    Replace your variable setting and if statements with this

    $feedurl = $item->get_feed()->subscribe_url();

    if ($feedurl == $ff) {$class = 'flickr';}
    if ($feedurl == $df) {$class = 'delicious';}
    if ($feedurl == $bf) {$class = 'blog';}
    if ($feedurl == $tf) {$class = 'twitter';}
    if ($feedurl == $lf) {$class = 'last.fm';}
    if ($feedurl == $fbf) {$class = 'facebook';}
    if ($feedurl == $f1) {$class = 'simple_feed1';}
    if ($feedurl == $f2) {$class = 'simple_feed2';}
    if ($feedurl == $f3) {$class = 'simple_feed3';}
    if ($feedurl == $f4) {$class = 'simple_feed4';}

    This is a 100% comparison as it checks the original url the person put in with the feed’s url.

    With this you can use feedburner, google reader and delicious without losing formatting and without hacking the plugin code.

    Now, gimme more options!!! :D

  105. A Division by Zer0 » Blog Archive » Where’s my damn icons? wrote:

    […] part of the class. For some reason, initially the last.fm and facebook icons stopped loading after I hacked the SimpleLife plugin to make it play with all kinds of feeds. Then, I discovered why the colours of the custom feeds […]

  106. db0 wrote:

    Ok, how cool is this now?

    http://dbzer0.com/about#chart

    :D

  107. Lifestreaming in Wordpress | David Bisset: Web Designer, Coder, Wordpress Guru wrote:

    […] Davis’s Lifestream Lifestream For Wordpress (Looks nice) SimpleLife For Wordpress (Updated, but appears to be PHP5 only although using […]

  108. How to track anything and everything in your lifestream » A Division by Zer0 wrote:

    […] this point, (with only free software tools mind you: getboo, wordpress, simplepie and simplelife) I have a lifestream that is much more inclusive than, I believe, any other option out there, and […]

  109. Self Hosted Lifestream Gallery #2 | Lifestream Blog wrote:

    […] Site: A Division by Zer0 Code: Custom version of Simplelife Wordpress Plugin […]

  110. WP-Profilactic 1.0 | Opindian wrote:

    […] searched for a solution to aggregate my lifestream to my blog, I came across Kieran Delany’s WP-SimpleLife plugin for WP.  It did exactly what I wanted; however, adding new services was somewhat tedeous (others […]

  111. 35 Ways to Stream Your Life « DesignWorksAtlantic wrote:

    […] SimpleLife - More for the DIY set, SimpleLife is a lifestreaming plugin for Wordpress. […]

  112. Links 2008-05-02 - Adam Crowe wrote:

    […] kierandelaney — SimpleLife Lifestreaming plugin for wordpress plugin wordpress aggregator feeds lifestreaming […]

  113. Hexy wrote:

    @db0
    I’ve tried your new code about fixing other feeds’s class problem.It do works,but the LAST.FM,FACEBOOK(maybe
    more I didn’t find out) lost their class.

    I know little about the coding,so I just tried to combine your and Kieran’s method like this:

    /* Kieran’s */
    $url = $item->get_permalink();

    if (stripos($url, ‘flickr’) !== false) {$class = ‘flickr’;}
    if (stripos($url, ‘facebook’) !== false) {$class = ‘facebook’;}
    if (stripos($url, ‘last’) !== false) {$class = ‘lastfm’;}
    if (stripos($url, substr(get_option(’s_blog’), 5,9)) !== false) {$class = ‘blog’;}

    /*if (stripos($url, substr(get_option(’simple_feed1′), 5,9)) !== false) {$class = ’simple_feed1′;}
    if (stripos($url, substr(get_option(’simple_feed2′), 5,9)) !== false) {$class = ’simple_feed2′;}
    if (stripos($url, substr(get_option(’simple_feed3′), 5,9)) !== false) {$class = ’simple_feed3′;}
    if (stripos($url, substr(get_option(’simple_feed4′), 5,9)) !== false) {$class = ’simple_feed4′;}
    */

    /* Your */
    $feedurl = $item->get_feed()->subscribe_url();

    /*if ($feedurl == $ff) {$class = ‘flickr’;}
    if ($feedurl == $df) {$class = ‘delicious’;}
    if ($feedurl == $bf) {$class = ‘blog’;}
    if ($feedurl == $tf) {$class = ‘twitter’;}
    if ($feedurl == $lf) {$class = ‘last.fm’;}
    if ($feedurl == $fbf) {$class = ‘facebook’;}*/

    if ($feedurl == $f1) {$class = ’simple_feed1′;}
    if ($feedurl == $f2) {$class = ’simple_feed2′;}
    if ($feedurl == $f3) {$class = ’simple_feed3′;}
    if ($feedurl == $f4) {$class = ’simple_feed4′;}

    It do work now,check:http://hexy.cc/lifestream
    But it’s not the best solution,is it?

  114. 嘿!嘻嘻… » Blog Archive » WP LifeStream Plugin—SimpleLife wrote:

    […] SimpleLife是一款为WP设计的LifeStream插件,你可以用它将自己在其他网站的一举一动(last.fm、del.icio.us…或者其他feed)以时间轴的形式显示在你的blog页面或侧边栏。这里有更多介绍。这里是我的成果。 […]

  115. db0 wrote:

    Hexy, I’ve since improved the code some more. You can download the hacked version here

  116. Hexy wrote:

    THX to db0,I’m trying this….

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress with GimpStyle Theme heavily modified by Kieran Delaney.
Entries and comments feeds. Valid XHTML and CSS. 11,856 spam comments ignored.