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…
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…