Mobypicture for LifeStream WP plugin – Final

Are you using the great WordPress plugin ‘LifeStream‘  to add a LifeStream feed on your blog and want to include your Mobypicture posts into your feed? Here’s the solution:

Go to the the location of the LifeStream plugin (../wp-content/plugins/lifestream) and locate the file ‘feeds.inc.php’, this is the file that needs to be edited – don’t forget to backup the original; you never know, you might need it ;-)

Open ‘ feeds.inc.php’  in your favorite editor and insert the following code (can be right after the ‘<?php’  at the top of the file):

class LifeStream_MobypictureFeed extends LifeStream_PhotoFeed
{
    const ID            = 'mobypicture';
    const NAME          = 'Mobypicture';
    const URL           = 'http://www.mobypicture.com/';    

    function __toString()
    {
        return $this->options['username'];
    }

    function get_options()
    {
        return array(
            'username' => array('Username:', true, '', ''),
        );
    }

    function get_public_url()
    {
        return 'http://www.mobypicture.com/user/'.$this->options['username'];
    }

    function get_url()
    {
        return 'http://www.mobypicture.com/rss/'.$this->options['username'].'/user.rss';
    }

}
register_lifestream_feed('LifeStream_MobypictureFeed');

Secondly you need to add the Mobipicture icon () to the folder ‘.. /wp-content/plugins/lifestream/images/’. Make sure the image is saved as mobypicture.png.

There you go, you can now add Mobypicture in the LifeStream Feed settings! Check out mine

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Ping.fm Post to Reddit Post to StumbleUpon

This entry was posted in WordPress and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Tag Cumulus

  • Recent Posts

  • Categories