Introducing LINICKX LifeStream V0.1

 
Tags: , ,

UPDATE: This Plugin has been updated, the below links to the new file, but please comment on the new post, thanks.

I’m proud to share with the WordPress community my new plugin, LINICKX LifeStream :)

I’ve been trying to get more LifeStreaming into LINICKX.com for a while, as I’ve struggled to find an appropriate solution I’ve decided to write my own.

Plug-in Features:

  • Stream Any Feed.
    Most internet services like digg, twitter, lastfm and the like support RSS feeds of your activity, so you can stream any service even if I haven’t heard about it yet!
  • Posts are created from the feeds/stream.
    Each Feed item creates a new post, you can tag & categorise your posts to give each stream a different look & feel in your WordPress templates.
  • No dependencies.
    LINICKX LifeStream uses WordPress functions to do it’s work, so yes it’ll work on PHP4 & PHP5 and you don’t need to update simplepie or an-other dependancy.
  • Flexible updating.
    By default LINICKX LifeStream should just work, WordPress will fetch the feeds every 5 minutes and store them in the WP Database, but you can change that. If you want to cron your updates every 1 minute you can, if you want the DB store in a file not in MySQL that’s not a problem either.

LINICKX Lifestream is currently feeding both my Digg & Google Reader posts; in general I’m pretty poor at updating my plug-ins as this is a hobby, but since this project is part of my website and not a favour for a friend (like the others) I’m hoping to do a better job.

I’m looking for help too!
The admin interface is a bit “clunky”, the reason being I don’t know javascript, if you do please consider writing a patch :)
I also think this plugin would work well for WordPresMU users, but I don’t use it so if you do what changes need to be made to make this work for you?

You can download the source from here: http://plugins.svn.wordpress.org/linickx-lifestream/ or Browse Trac

Disclaimer
As with my other plug-ins this is a hobby, I have a full time job that takes priority. Feel free to leave comments here but ask support questions to the WordPress community. I will update this plugin as and when I need features to improve linickx.com but will consider any patches submitted and any good ideas you have.

If this plugin has been some use to you, please consider donating as I give this code away for free and giving something back will make you feel good :cool:

UPDATE(s):

  • Pushed version 0.1.1 as the directory path changed when wordpress.org created their .zip file… all should be working again.
  • Pushed version 0.1.2 to fix error in dashboard reported by Markus below.
  • Pushed Version 0.1.3 more bug fixes; 0.1.2 broke auto updates, so 0.1.3 fixes it again!
    linickx.com was having execution timeout issues, so theres a patch to fix that for other users
    I’ve also introduced a config.php so that upgrades do not overwrite $WPDIR set by users.
nick

 

12 Responses to “Introducing LINICKX LifeStream V0.1”

  1. Markus says:

    Hi,

    thanx for this WP Plugin. Think it is a great idea.

    Just installed it and inserted a busy google blogsearch RSS feed. But no posts created since.
    Do I have to do something special before it works? ;-)

    • Nick says:

      Hi Markus, there is a bug in the V0.1 code that stopped auto-updating working in the WordPress.og Package.

      I have fixed the issue in V0.1.1 and upgraded linickx.com to use the wordpress.org package rather than my code so I should now be able to spot these kind of issues :)

      • Markus says:

        Hi Nick,

        thanx for your response. I run the Version 0.1.1 at the moment.

        The error comes from $WPDIR ind run.php
        This variable needs to be set on the certain server path. (???)

        • Nick says:

          Either: Set your update method to “WordPress” or Set your method to “Cron” and change the variable $WPDIR at the top of run.php from /wp to where-ever your wordpress is installed such as /wordpress or “” for nothing.

  2. Markus says:

    It seems there is a file missing. Got this message inj different Administrator Windows/Boxes after the update interval time was reached.

    Can’t find Wordpress, edit $WPDIR in run.php

  3. Markus says:

    Hi Nick,

    now, I changed the $WPDIR to “” because my Wordpress runs in the root folder.
    Selected WordPress Automatic as Update Method.

    Interval time to 5 Minutes.

    After 5 Minutes, I got the Message “Not Configured to run as Cron” in the bottom row on the dashboard.

    I go to bed now. Will have a look tomorrow.

    Thanks for your help

    • Nick says:

      “Not Configured to run as Cron” in the Dashboard…. oh, something is going wrong. That message is only supposed to appear when run.php is called outside of wordpress… if the dashboard is to call it then wordpress is loaded… I will see what I can find.

  4. Tony says:

    Hello Nick,
    Thanks for your plugin, I have a question:

    I have selected “Cron” and revised the run.php file to $WPDIR = “”; as my wordpress was installed in the root path.
    When I access to the run.php file in the browser, it pull me an error as below:


    ***quote start***
    Warning: gzinflate() [function.gzinflate]: data error in pathwp-includeshttp.php on line 1787
    Warning: strpos() expects parameter 1 to be string, array given in pathwp-includesclass-simplepie.php on line 12197
    Warning: substr() expects parameter 1 to be string, array given in pathwp-includesclass-simplepie.php on line 12199
    Warning: strpos() expects parameter 1 to be string, array given in pathwp-includesclass-simplepie.php on line 12197
    Warning: substr() expects parameter 1 to be string, array given in pathwp-includesclass-simplepie.php on line 12199
    Warning: strpos() expects parameter 1 to be string, array given in pathwp-includesclass-simplepie.php on line 12197
    Warning: substr() expects parameter 1 to be string, array given in pathwp-includesclass-simplepie.php on line 12199
    Fatal error: Call to undefined method WP_Error::get_items() in pathwp-contentpluginslinickx-lifestreamrun.php on line 86
    ***quote end***

    So no new post appears in the dashboard (I guess there should be?).

    I’m running on XAMPP 1.7.2 with LINICKX LifeStream 0.1.2. Please help how to get rid of it, thanks in advance.

    Sorry for my bad paste here, please del it if disturb. :( .

    Best regards,
    Tony

    • Nick says:

      The plugin uses wordpress’s fetch_feed (which is built on simplepie) function to download feeds, looking at your error the issue initially appears to be with this rather than the plugin, but I will install XAMPP next week and see if I can troubleshoot.:)

 

Some other things that might interest you...

---