I am trying to get to work Heartbeat and User Relationship. But it seems, nothing is showing. No message about "one user is new friend of another" in Heartbeat blocks.

So, Rules configuration is strictly needet, to get heartbeat to work? Right?

But, what in Rules?

There is "Logs activity to indicate a relation between users" in DO section. But what to put in IF section? There is no user relationship condition available...

Comments

Stalski’s picture

Status: Active » Closed (works as designed)

You dont need rules if you are a programmer. But if you want to do it with UI only, yes, you need rules.

Heartbeat has a log action, that's all.

So if UR has a rules event ... you can use it to log heartbeat activity. As you mentioned ... you need indeed the action "Logs activity to indicate a relation between users". You will need to log the same activity TWICE!!! Using this user-relation action, there will be a double record in the database.
When building the stream, i can this way choose which of the two users are in front (denying the other log) . If you are logged-in for instance, i can you put you in front like:
"el has become friend with X"

About the IF section, don't know, this is UserRelationships module ofcourse. Heartbeat only provides the rules action to log.

I hope i helped you with this info.

A question: is it possible, when the job is done, to provide me a "default rule" so i can put it in the demosite? This way we can help others. Thx.

Remark: i do have written a function that does this logging through code (without rules)...

eL’s picture

Thanks, here is module with User Relationship conditions for Rules, but it has some warnings... http://drupal.org/node/766050#comment-2823580

hedley’s picture

Here's an example of a rule for the Drupal 7 version: http://drupal.org/node/1473318