I need to create the following activity blocks:
- Activity in a single OG group
- Activity on a single specific node

I can't filter directly by node nid, because it's rolled up into the serialized data field. So how can I accomplish this?

I've considered altering the activity table to add a 'node-id' column, and the insert query to insert the node-id (if any). But I haven't got it to work yet, and anyway, I imagine there's a very, very good reason why the nid is serialized.

Can anyone suggest a smart way I can adapt activity.module to my needs?

Comments

jaydub’s picture

this is getting into the territory where OG + Views is going to be able to do a lot more for you than Activity.

Activity isn't really meant to be a fine-grained slicer and dicer of content for display but more of a site-level or user-level aggregator of activity. For example, activity in a single OG group, well OG already should be able to get you a list of nodes created in a particular group (node). Anything that starts to look like Views territory is going to be best served by Views especially in d5 since Views d5 isn't able to operate on non-node related tables which it can in Views 2.

sirkitree’s picture

Status: Active » Closed (won't fix)

5.x unsupported