Re: Activity widget
Well, without looking into this in more detail, this at the very least
$user_id=$bp_loggedin_user_id
should be replaced with this
$bp->loggedin_user->id
You will also need to actually have a function called bp_activity_get_sitewide_activity().