Hello everybody
I created a "fan" relationship using the "User relationship" module. It should work like this: When user A becomes a fan of user B he is supposed to receive internal message notifications informing him about every new content posted by user B.
Creating the relationship was the easy part. But it has not been easy finding any information about creating the notification part.
Surely "Rules" would be the way to do it, but I get stuck at the Condition part.

For "Rules" Event I choose "After saving a new content"

The Condition should be something like "If user A is a fan of User B"
But I have a hard time implementing it.

For the "Rules" Action I have "send a message" (from private messages)

Hopefully somebody will be able to help.

Thanks in advance

Comments

VM’s picture

please don't create duplicate posts. In future if you want to add more information to a post, please edit it.

Sitalk’s picture

VM, you seem quite convinced that I duplicated this post :)
Well, believe it or not, I wrote it myself. I have been trying all day to figure out the issue mentioned in the topic. If you have any sugestions please say :)

VM’s picture

As evidenced by your drupal.org post tracker: This post is a duplicate of http://drupal.org/node/1750480. This post offers more information than the other. My comment was in an effort to enlighten you that posts can be edited. Which, by the way, also bumps the post back to the top of the forum.

The following posts also illustrate that creating multiple posts is a common pattern from your user account.

http://drupal.org/node/1699506
http://drupal.org/node/1696142
http://drupal.org/node/1698452

And on another issue you seemed to have with menus shifting

http://drupal.org/node/1654976
http://drupal.org/node/1655004

Thank you for your co-operation in aiding to provide an organized and clutter free drupal.org, and also for doing your best to avoid stretching the resources of those who support the forums across multiple posts.

Sitalk’s picture

The problem seems to be with picking the right data selector for the "Rules" Condition...

spovlot’s picture

User Relationships has several Rules events such as "A user relationship has been approved" or "A user relationship has been requested". These events will provide you with a [requestee] and [requester] variable that you can use for your notification. A condition isn't required unless you need one.

Sitalk’s picture

Thanks for your reply spovlot.
The "fan" relationship is one way and does not require approval, therefore I can't see a way to benefit from those Rules events and the variables associated with them. Maybe there could be a way I can create a variable for the "fan" relationship and use it in "Rules"... Or maybe I am going in the wrong direction.