After a failed attempt at using action streams with Movable Type, I was very pleased to discover the Lifestream plugin for WordPress.
I set up my Family site to use Lifestream with various feeds from family members. Along with the P2 theme, it has been working great as a shared hub for family members…. except for some issues with the way Lifestream displays icons.
For some reason, the URL to icons (and thumbnails when available) includes the full base path of the icon file.
One solution ? Track down where path names are set and remove the base file path – until the real issue is resolved in a future version of this great plugin.
The piece of code to update is in the ‘lifestream/inc/core.php’ file, at line 2336.
[code] $file_path= $this->lifestream->get_absolute_media_url($path);$file_path= str_replace(str_replace(‘\\’,’/’,WP_CONTENT_DIR),””,$file_path);
return $file_path;
}
function get_public_url()
{
return $this->get_constant(‘URL’);
}
function get_image_url($row, $item)
{
$file_path= is_array($item[‘image’]) ? $item[‘image’][‘url’] : $item[‘image’];
$file_path= str_replace(str_replace(‘\\’,’/’,WP_CONTENT_DIR),””,$file_path);
return $file_path;
}
function get_thumbnail_url($row, $item)
{
// Array checks are for backwards compatbility
$file_path= is_array(@$item[‘thumbnail’]) ? $item[‘thumbnail’][‘url’] : @$item[‘thumbnail’];
$file_path= str_replace(str_replace(‘\\’,’/’,WP_CONTENT_DIR),””,$file_path);
return $file_path;
}
[/code]
I had to resort to some contortions because, since my server is running on Windows, WP_CONTENT_DIR looked something like : “C:\inetpub\wordpress\home/wp-content”.