You are hereActivity Stream Module
Activity Stream Module
Adding an ActivityStream block in Drupal
As regular readers of my blog know I'm using Drupal's ActivityStream module to power the Life Stream page on my site. I've wanted to add an activity stream block and remove the twitter / lastfm blocks for a while now, but haven't gotten around to it until tonight. It's a short function but I figure I'll post it in case someone else is looking for it.
Just add the following function to activitystream.module
Statistics Module Change
I noticed that items from my activity stream were popping up in the last viewed (and potentially most popular content). As I'd rather not show these items I've changed statistics_title_list in drupal's statistics.module as follows:
function statistics_title_list($dbfield, $dbrows) {
return db_query_range(db_rewrite_sql("SELECT n.nid, n.title, u.uid, u.name FROM {node} n INNER JOIN {node_counter} s ON n.nid = s.nid INNER JOIN {users} u ON n.uid = u.uid WHERE %s <> '0' AND n.status = 1 and (n.type = 'story' OR n.type = 'page') ORDER BY %s DESC"), 's.'. $dbfield, 's.'. $dbfield, 0, $dbrows);
}
Why I Am Reinventing the Wheel and Rolling My Own Lifestream
A couple of folks have asked why I am basically reinventing friendfeed and presenting my lifestream on seanreiser.com.