maintainer has documentation here, but it seems to be out of date, or at least it doesnt match the options I am presented in my config?
http://heartbeat.menhireffect.be/docs/how-create-heartbeat-activity-view...

I would like for OG group members to be able to see all of the 'same group' activity on the group homepage., with sitewide public activity to be visible on site homepage.

there doesn't seem to be any consensus on whether this module works as described .i.e
"Features - Heartbeat logs activity for nodes, comments, users/profiles and organic group activity" it seems like lots of people are having the same problem
has anyone managed to solve it? I would be grateful for any assistance..

thanks..

Comments

Stalski’s picture

This should work out of the box when the OG streams are ported. However, it's very very easy to just create your own stream class (follow heartbeat.api.php).
The query in that class will be your own! If you do so, please post the stream here as patch as I will include it in the project.

markotoole’s picture

Hi Stalski,

I cannot get this working. it would be a great enhancement to the heartbeat module if it could work with and recognise OG and it seems there are quite a lot of people also looking for this functionality in D7.

Im not a developer , but am quite familiar with D7 , if you got a chance, I would be grateful for some more detailed advice/pointers?

thank you..

rogical’s picture

Title: Cannot create hearbeat activity view per organic group » Integrate with organic group
Category: support » feature

+1 Is this title would be better?

Stalski’s picture

Status: Active » Fixed

Hi,
Can you test this again please. It is now included in the extra heartbeat_og module. All streams seem to work fine for me.
1) A stream for all activity for all groups
2) A stream for activity within a group (where nid or nid_target is the group in context)
3) A stream for activity of all the members of a group in context (even activity outside the group)

There is even a nodeactivity stream added (generic one for all nodes) but you could use that for your group as well.)

I used it with panels or with normal blocks yet and it worked for me. If it's not fixed for you, reopen the issue and add steps to reproduce the problem.

cherrysuede’s picture

hi i tried above to view activity for all members in a group in panels

i get the following error

Notice: Trying to get property of non-object in MembersActivity->detectGroup() (line 32 of /home/cherrysu/public_html/sites/all/modules/heartbeat/modules/heartbeat_og/streams/membersactivity.inc).

is there something else i need to do? using dev from march 20

siteactivity for the WHOLE site is working fine

Thanks!

Stalski’s picture

Dunno what happened there, but seems if a og context is found, the etid is set (no matter which entity type).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Sylense’s picture

Status: Closed (fixed) » Active

I can't seem to get node activity to display on the "Group Activity" stream that is provided. The only activity that is shown is if the "group" node itself is updated. None of the group content type nodes are displayed when new content is published or updated.

- I have a group page with group activity loaded in panels
- I have 2 group content types "Articles" and "Documents"
- I post a new article and select a group in the group audience field
- The heartbeat activity displays on the sitewide stream but not the "Group Activity"

I've even tried editing the rule and checking the box "Add the "In-Group" tag to track OG activity" (not sure what exactly this does)

newold’s picture

Hi,

Same case that Sylense.

The in_group field value is always 0 in the table heartbeat_activity.

Thanks

Stalski’s picture

Status: Active » Postponed (maintainer needs more info)

I've even tried editing the rule and checking the box "Add the "In-Group" tag to track OG activity" (not sure what exactly this does)

Since latest change, you must set this "in_group" variable to true in rules if you need to. This might very much result in cloning the rules for 1) in og context and 2) not in og context.

I'll add a description on the field as well to explain that its value needs to be "1" in you want to add "in_group" context.

Can you guys tell me if the problem is solved when configuring it like that? (it works for me)

Stalski’s picture

Well, I just checken again, forgot that it is a checkbox already. So enable to add group context (this is simple 1 to fetch only those messages.
But it surely works for me.

Sylense’s picture

Ok, I tried on a fresh Drupal install and it still doesn't work. Using the latest dev. What are your steps to getting it to work on your end? I'm using all of the default streams and I've checked the in group box in the rules configuration to no avail.

Stalski’s picture

Can you update me on only this:

I've checked the in group box in the rules configuration to no avail.

If you check that box, the in_group property maps to 1 in the database. Can you confirm the value of the in_group property is 1 in the database table "heartbeat_activity" ? If not, there is really something bizar going on.

KorbenDallas’s picture

In my fresh Drupal install, when the "Add the "In-Group" tag to track OG activity" is checked on the rules and a Group type node is created or updated, in_group is set to 1 and nid is set properly as well. So with the Group type, the HB messages are working for me.

But Group Content is not. What is happening is the heartbeat nid field is being set to the nid of the Group Content, not the Group itself.

kostajh’s picture

Status: Postponed (maintainer needs more info) » Active

I am also not seeing any results here for the "Group activity" stream - the other ones work fine. I've enabled the heartbeat_og module and tested adding groups and group content with OG 7.x-1.4. The only activity that shows up is the initial act of creating the group. Group posts are not displayed in the "Group activity" stream.

Note to others looking at this issue: you need to check the "Add the "In-Group" tag to track OG activity" *before* you create a Group or group content.

fraweg’s picture

Hello,

where can I find the "Add the "In-Group" tag to track OG activity" ?

Best regards
Frank

Sylense’s picture

It's in the rules configuration

Stalski’s picture

Status: Active » Closed (fixed)

@korben: I am pretty sure the wrong token is used otherwise it would not happen
@kostajh: I really can't reproduce this on latest dev, although I have to say I changed some things that could have fixed it for you.

If other bugs come up, please create a new issue. The original problem has been fixed on my end ...

kostajh’s picture

I've tried on the latest dev. Still can't get it working.

kostajh’s picture

Component: Miscellaneous » Documentation
Category: feature » support
Priority: Major » Normal
Status: Closed (fixed) » Active

Sorry to re-open, but I am still not having any success with this. Could you please provide some documentation on how to get this working? The creation of a Group node shows in Group activity but any subsequent group posts are not displayed.

jayaram’s picture

did some one get this to work in drupal 7?

Stalski’s picture

Status: Active » Closed (cannot reproduce)

@kostajh: I tested this again and again and it works here. The only thing I can imagine with the description you gave, is that the message template is configured to only show one? Try the "single" setting to see them as standalone and thus unmerged.

Nothing more I can do to fix it imo. If you still have a problem, please open another issue with the total description of your specific problem. thx in advance

Stalski’s picture

Issue summary: View changes

clarification, I want the OG content stream to display per group. i.e the group activitiy is shown on group pages to members of the group only.