i use Activity Stream to aggregate content from my user's blogs, as you would do with a Planet. Very little modification is needed to do this. Maybe the module could be modified for both use. But for the moment, here are the modification i made.
On activitystream.module, in the activitystream_view function, i commented out this line:
$node->body = check_markup($node->body, $node->format, FALSE);
I know, that line was used to remove potentially armful code, it could be a security risk blah blah.. I dont know about you, but i think i can trust my bloggers... And beside, if you dont remove this line the images are removed... Maybe someone has an idea on a better way than just remove the filter.
On activitystream_feed.module, in the activitystream_feed_streamapi function, i replaced this line:
$activity['body'] = $item->get_description();
With this:
if ($item->get_content()) {
$activity['body'] = $item->get_content();
}
else {
$activity['body'] = $item->get_description();
}So now, when the full content is available on the feed, it is used instead of the description. I didn't touch the other submodules because i don't need them. Now the only problem left was that some of the image i get from the feeds where to large. This is easily fixed using css, so i just put this on one of the .css file of the theme i use:
.node div.content img {
max-width: 475px;
height: auto;
}Of course the max-width length is adjusted for the theme i use.
That's it, i hope you like it. Great module by the way, once you include the latest patches of course... ;)
Comments
Comment #1
akalsey commentedThe changes described here would alter the purpose of the module. Use of the FeedAPI modle or one of the other aggregators wold probably be better suited to this purpose.