First, I'm not sure if this should be under User Relationship or Notification. My request is for the ability to subscribe to relationship and to a node type. I'm hoping that something out of the box might already provide this function. I think I can do it with the UR API but I'm trying to avoid PHP coding. The Description:
1) user create a relationship (Relationship A).
2) in Relationship A there are several Users.
3) a user creates a piece of content/node (BigNews).

My requirement is to allow users to subscribe to a Relationship and to a node type. Whenever anyone in that relationship posts content of "BigNews", the users in the posters/author relationship receive notification. In my case users will only have one relationship. But many users can have different users in their relationship. E.g.,
user A, user B, user C, user D each of them will be allowed to have a relationship called MyAteam. user A MyAteams might include user B and user C. In the case of user C MyAteam might include user B, user D, user A. If user C creates content BigNews then user B, D and A will get notified. If user A creates content BigNews then user B and C get notified.

It is my understanding that I can subscribe to an author. However, an author creates lots of different types of content.
I can subscribe to a content type (like BigNews) but that means a user would get notified of that content created by any user. They are only supposed to get notified of content from people in their relationship.

There is integration with PrivateMsg that is doing something similar. Send a message to a "relationship" and both users have to be in the relationship.

Sorry for the long message. This might more appropriatly be a feature request, but I hope someone has an idea for me.

Thanks,

Comments

rjbrown99’s picture

Title: Notification to User Relationship » Feature: Integrate with user relationships module
Version: 6.x-2.1 » 6.x-4.x-dev

+1, same here. I don't believe this exists yet so I'm rolling the title and category to feature request. This is a request to add support for the user_relationships module. In my case, I'd like this to happen:

1) Users establish one-way relationships with each one (ala twitter following/followers)
2) Some user creates a node
3) For each user with a relationship of "following" to the node author of this new node, send a notification

Has anyone else implemented this?

Thinking out loud, on the surface this could be an extension of the custom subscriptions module. Right now, I created a custom subscription like this:
- Event type: node
- Visibility: hidden option
- Enabled for new users

- Field: Node type, Value: Mynodetype
- Field: author, Value: This is where we need the relationship

IE, instead of author, it might have field: author relationship, and value: following. This would be a new subscription field perhaps. Something along the lines of this approach for OG support.

Does that make sense?

warmth’s picture

Any news? I really need to autosubscribe my users when they become friends.

warmth’s picture

Version: 6.x-4.x-dev » 7.x-1.x-dev