11

Nov

Filed in Code, PHP, WordPress |

Tonight I finally took the chance to finish up the sidebar widgets in LifeStream, and I think everyone who’s been waiting for them will be satisfied. The widget allows you to place one or more, using the dynamic widgets feature which is in WordPress, for any supporting themes. Each widget let’s you customize the title, the number of items to display, and an optional list of feeds.

The optional list of feeds is where the real power of LifeStream comes in to play. Many people use different plugins to display their Twitter updates, their Delicious updates, and whatever else they may be doing. Before now, it was somewhat difficult for the average WordPress user to do this with LifeStream, but the ability was already there. The sidebar widget will let you replace these single-use plugins, and take it a step further.

Now if you’re like me, and you use custom HTML for your sidebar, don’t worry! You can still gain this same functionality from a small piece of code. To do this, let’s take a look at what the dynamic sidebar widget does in Lifestream:

    lifestream_sidebar_widget(array(
        'number_of_results'=>$options['amount'],
        'feed_ids'=>$options['feeds'],
        'event_total_max'=>-1,
        'date_interval'=>-1,
    ));

We have a few options here (there are many more), which specify the number of results, an array of feed ids, the “event_total_max” (set this to 1 to hide grouped events), and date interval (-1 disables date restrictions). You can simply throw this snippet somewhere in your sidebar, and you’ll gain the same effect as you would using the dynamic sidebar.

Create a box for just your delicious links, just your tweets, or maybe combine all of your bookmarking services into their own widget. The power is yours :)

Update: I iterate so quickly, that 0.81 is now available with shiny new options.

  • Greg

    This is a great plugin but I can not find: 1) Documentation to add my own service and 2) documentation on the functions.

    Where are these? I know they must be somewhere.

  • http://pinayspeak.com/pinaytest/ seotest

    it look nice, maybe i should try this one later

  • Renee

    What a great plug-in!

    Is it possible to have 2 seperate Lifestreams configured on one WordPress blog? (one in each sidebar)

    Is it possible to add a label to the incoming feeds? (For instance, if 2 twitter accounts are in one Lifestream, add the account username to each tweet?)

    Thanks!

  • jon

    Can you adapt it as a buddypress plugin?

    BuddyPress will transform an installation of WordPress MU into a social network platform.
    the site
    http://buddypress.org

  • Boots

    It is a good timberland 6 inch boots thing that the God Who made us is not impatient with people like me with my timberland shoe company orchid. He lovingly thinks about us all the time timberland boots and he even temporarily gave up His heavenly home and his timberland traditional handsewn hold on diety to die for the sins of timberland mens custom world nearly 2,000 years ago. His death back then covered the sins of every cheap timberland boots person who will ever live. He then rose to life after three mens timberland chukka? days and ever since has wanted us to accept His gracious act by loving Him and also those around us. When we do this, we will see people in a totally different timberland womens premium boots light — one that redefines what it means to be ugly or different or weird or strange. Instead, we see people with ugly timberland shoes store problems in whom God is working so they can bloom beautifully — just like I now see in my orchids whether they are “lumps” or blossoms! On a certain timberland work shoes day at a certain hour, we will pull into the station. Bands will be playing and flags waving. Once we get there, so many wonderful dreams will come true and the pieces of our timberland wheat shoes lives will fit together like a completed jigsaw puzzle. How restlessly we pace the aisles, *ing the minutes for timberland for you loitering –waiting, waiting, waiting for the station. http://www.timberland4you.co.uk/ QL

blog comments powered by Disqus