As has been documented, I have been playing around with putting a presence aggregator on this site. I've hacked around with the drupal activitystream module and came up with this. It's still very alpha, and subject to change but as time goes by. For example, I'm pretty sure I'm removing the list controls to get rid of the useless bullets (the icons are much better then the bullets in this case). When I have all my changes in place I'll post the code.
I have uncovered a bug in the feed stream module of activity stream which I have shipped over to the maintainer, but in the mean time I figured I'd post it here in case anyone looks this way. The problem is simple, any feed imported using feed stream will have a date of December 31,1969. This is because feed stream is using PHP's strtotime() to convert the RSS's date / time stamp to a unix timestamp. An RSS feed returns the time stamp as "DD MMM YYYY, HH:MM AM" (example 15 April 2008, 1:54 pm). Strtotime () trips over the comma so the simple fix is to remove it while converting. I'd post the module here but I've hacked it further for my own purposes. Simply go to line 30 of activitystream_feed.module and replace this
$activity['timestamp'] = strtotime($item->get_date());
With
$activity['timestamp'] = strtotime(str_replace(',','',$item->get_date()));
I'm sure the developer will get it in his next build but that's a short term fix.
Sean Reiser, 40, is a developer, technologist, and amateur photographer. Sean has spent the past 20 years as a programmer, system architect and development manager. He is a life long New York resident.
Sean currently serves as the President and Chief Geek Officer of Repair Sense, Inc.. Please go to that site with any professional inquiries.
Sean can be found using a number of social networks. These are the ones he's most active on:
This only seems to be a bug with certain systems. As far as I can tell, it's a php 4 thing. In general, I'm not going to spend a lot of time ensuring that the module works in obsolete environments (php5 is 4 years old and php4 was declared unsupported almost 3 years ago). However in this case, it's an easy change with little chance of impacting anything else, so I'll get it in.
Thanks for taking care of it!
FYI, I was seeing this behavior in my testbed which is an MAMP environment running PHP 5.2.5, so it's not entirely a 4 thing (of course throwing OSX into the mix adds some complexity)
I'm working on a friend feed plugin when it's done I'll shoot you a copy.