OG Activity Module
Jody Lynn - January 18, 2008 - 21:57
| Project: | Activity |
| Version: | 5.x-4.x-dev |
| Component: | Activity Contrib |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Integration for organic groups. It allows you to list when a user joins a group. It also includes a block for 'My group activity' which is to show activity by users who are in your groups.

#1
#2
I added block configuration to this block as well.
#3
Oooh this looks nice. I'll definitely test this the next chance I get.
#4
Hey Lynn,
after installing your module, i get the following error when i try to join a group:
user warning: Unknown column 'a.tokens' in 'field list' query: SELECT DISTINCT(a.aid), a.tokens, a.uid, a.module, a.timestamp, a.type, a.action, a.scope FROM activity a INNER JOIN og_uid o ON o.uid = 3 INNER JOIN og_uid o2 ON o2.nid = o.nid WHERE o2.uid = a.uid ORDER BY a.timestamp DESC LIMIT 0, 5 in /home/jonas28/mms/includes/database.mysql.inc on line 172.When i look into the table `activity` via phpMyAdmin i don´t see tokens, too.
there are only the following columns:
aid, module, type, operation, created, data
greeting from hamburg, germany
jonas
#5
This module was written for the 5-2 branch of activity and will not work for the new 5-3 branch since the module has changed a lot. (I see it originally says it was for 5.x-3.x-dev, but during that dev period many changes to activity were occuring.)
Also since using this ogactivity on a live site with many groups I've come to not be happy with the performance of the complex queries I wrote in it. Ultimately I think if this was reworked that we would want to be storing gid (organic group id) in the activity table directly when group-related activity occurs.
I can't recommend anyone uses ogactivity at this point.
#6
After the Complete rewrite of the Activity Module (5.x-3.0-beta) on January 20, 2008 your code doesn´t work.
The release activity 5.x-2.1-2 from December 12, 2007 works with your Module, because there the needed columns:
tokens, uid, module, timestamp, type, action, scope
greetings from hamburg, germany
jonas
#7
Jinx.
#8
I've just come to Activity - can full support for the relevant og tokens be added in this (if it isn't already) in the same way that pathauto can access all the og values.
For example I would like to be able to do something like "A Page was added to the group Groupname" for different node types.
#9
5.x-2.x-dev is not supported anymore.
#10
Why can't the patch be reworked into 3.x.dev? OG support would be very useful.
#11
It could be. Please do. I'm just not sure anyone else has time or that this is a priority to anyone else is all.
#12
Ok, leave it open and hopefully someone can take up the gauntlet (I might know someone I could get on to this, but no promises).
#13
I've updated the oroginal patch to work with 5.x-3 although not yet the
ogactivity_block. So far this just records user group join
activity.
By the way anyone know if the hook_og $op of user insert implies
that the user has successfully joined a moderated group or is
there a status flag to check if they are in moderation?
#14
Subscribing to this one as I think it could be a very useful feature.
#15
Also subscribing. Any news on whether this actually works?
#16
Sorry, shameless subscribe.
+1
Looking for that block activity functionality.
I'm more than willing to test out anything thats put up.
TIA
txcrew
#17
Anyone know the answer to my earlier question:
'By the way anyone know if the hook_og $op of user insert implies
that the user has successfully joined a moderated group or is
there a status flag to check if they are in moderation?'
I can proceed with updating the og-activity module that I had
hacked up before regardless but it's been awhile since I
jumped in the OG waters...
#18
#19
subscribing
#20
Worked great for me, tested blocks too.
Tweaked the default name of the [og-list] to the correct token
tarballed this to include the subdir
great work!
#21
if a user request to join a moderate group, $args is called with "is_active => 0"
function ogactivity_og($op, $gid, $uid, $args) {switch ($op) {
Once the group admin approves a user for a group-id, og.module then calls with $return_args set with "is_active => 1"
module_invoke_all('og', 'user update', $gid, $uid, $return_args);see attachment, this is an updated version of the previous post to handle this case
also a tweak for join/left og actions
ps: where do you get the token [user-link] from?
#22
is this going to come to D6!!?? would love this!!
#23
OG itself hasn't reached official release yet for d6 so perhaps there's no rush for the OG activity contrib...
#24
@jaydub - aside from some elements like OG notifications (which is still a bit buggy), the core of OG seems to be getting very close and moshe and others seem to be working like mad to move it out the door, hence the interest (meaning that it looks like no 'massive all hell is breaking loose' changes are coming in schema or otherwise)
is there an experimental port for this? i don't write code, so no idea how to do a convert-to-d6 thing, but am happy to test and beat on it within a dev site...
#25
i'm itchin for a d5 OG Activity module
#26
Ok I've got something usable for d6 for recording group join/exits.
For activity blocks or pages for OG activity, what exactly do you all think should be shown? Given the design of the activity module that typical result for this block or page would be to show all activity generated by users who happen to be in groups that you as the user are also in.
Does that make sense to people?
#27
Added Organic Groups activity to d5 and d6 branches. Checkout a dev snapshot dated 10/31 or later.
#28
@jaydub - i think if the group is public or content in the group is public, then the joins should be shown to all - it would promote people clicking through to see what the group is all about....and also call into 'my friends activity' for specific friend stuff as well....
#29
#30
@jaydub - i believe that a simple "join" note, "created a group" note (maybe 'group name' in there) and "exited/left" group note - not sure what else you would want to show...group activity may be made public but considered 'isolated' so by default may not want all group stuff rolling into a public activity stream - just my opinion of course...