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.

Comments

jody lynn’s picture

StatusFileSize
new2.48 KB
jody lynn’s picture

StatusFileSize
new2.67 KB

I added block configuration to this block as well.

Christefano-oldaccount’s picture

Status: Active » Needs review

Oooh this looks nice. I'll definitely test this the next chance I get.

jonas28’s picture

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

jody lynn’s picture

Version: 5.x-3.x-dev » 5.x-2.x-dev
Status: Needs review » Needs work

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.

jonas28’s picture

Version: 5.x-2.x-dev » 5.x-3.x-dev
Status: Needs work » Needs review

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

jody lynn’s picture

Version: 5.x-3.x-dev » 5.x-2.x-dev
Status: Needs review » Needs work

Jinx.

scedwar’s picture

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.

sirkitree’s picture

Status: Needs work » Closed (won't fix)

5.x-2.x-dev is not supported anymore.

scedwar’s picture

Status: Closed (won't fix) » Needs work

Why can't the patch be reworked into 3.x.dev? OG support would be very useful.

sirkitree’s picture

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.

scedwar’s picture

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).

jaydub’s picture

Version: 5.x-2.x-dev » 5.x-3.x-dev
StatusFileSize
new1.66 KB

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?

geodaniel’s picture

Subscribing to this one as I think it could be a very useful feature.

icecreamyou’s picture

Also subscribing. Any news on whether this actually works?

Anonymous’s picture

Sorry, shameless subscribe.

+1
Looking for that block activity functionality.

I'm more than willing to test out anything thats put up.

jaydub’s picture

Version: 5.x-3.x-dev » 5.x-4.x-dev

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...

jaydub’s picture

Component: Code » Activity Contrib
dgtlmoon’s picture

subscribing

dgtlmoon’s picture

StatusFileSize
new1.7 KB

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!

dgtlmoon’s picture

StatusFileSize
new1.79 KB

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?

zilla’s picture

is this going to come to D6!!?? would love this!!

jaydub’s picture

OG itself hasn't reached official release yet for d6 so perhaps there's no rush for the OG activity contrib...

zilla’s picture

@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...

dgtlmoon’s picture

i'm itchin for a d5 OG Activity module

jaydub’s picture

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?

jaydub’s picture

Added Organic Groups activity to d5 and d6 branches. Checkout a dev snapshot dated 10/31 or later.

zilla’s picture

@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....

jaydub’s picture

Status: Needs work » Active
zilla’s picture

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.

@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...

JonGirard-1’s picture

Hmm, so DOES this work with 5.x-3.x-dev or 5.x-4.x-dev?? I installed it along with either version of og, and it seems to display everyones activity, even if they are or aren't in the group.

I'm using this code:

<?php
$block = module_invoke('ogactivity', 'block', 'view', 'og');
print $block['content'];
?>

to output onto my group pages.. is there anyway I could modify this code and perhaps using a custom sql query get feeds for users only in the group?

Thanks..

Jon.

JonGirard-1’s picture

*BUMP*.. loving the 4x version of activity, now only If I could divide it to show activity for my og groups it would be PERFECT..

sissi1212’s picture

Version: 5.x-4.x-dev » 6.x-2.x-dev

For version 6.x-2.x do you know how make?

Scott Reynolds’s picture

Version: 6.x-2.x-dev » 5.x-4.x-dev

Please leave this thread by sissi1212

dugh’s picture

Version: 5.x-4.x-dev » 6.x-2.x-dev

subscribe

Scott Reynolds’s picture

Version: 6.x-2.x-dev » 5.x-4.x-dev

This thread is for 5.4

#442238: Activity Integration with OG is for 6.2. Please respect version numbers.

As maintainers we do this on purpose to keep track of what changes go where and also to keep the discussion on track

sirkitree’s picture

Status: Active » Closed (fixed)

5.x unsupported please see 6.x-2

plan9’s picture

Status: Closed (fixed) » Active

Subscribing

sirkitree’s picture

Status: Active » Closed (fixed)

why would you do that? I closed this as 5.x is unsupported, there is nothing to subscribe to.