1

I've managed to get my UR module setup. My users can now add each other. However, the only problem am faced with is that when Alice adds Bob and Bob accepts the friend request, only Bob can see Alice's name in their current relationship list; in Alice's current relationship list Bob does not appear.

Furthermore, Alice does not get a confirmation when their friend request is accepted. How can i go about fixing this problem?

I am using Drupal 7 and the zen sub theme.

2 Answers 2

4

User Relationships supports bi-directional relationships unless you have checked the "This is a one-way relationship" checkbox.

However, there is a bug in the current 7.x-1.0-alpha2 version, make sure you use 7.x-1.x-dev instead.

If the Relations module works for you, fine. But the main thing that UR provides is various user interfaces to request relationships, see/administer them in listings, approve them, see your relationships with other users when visiting their profile and tons of additional modules like integration with Privatemsg.

In fact, we plan on making UR just a fancy UI on top of the Relations project, but that's quite a way to go.

2
  • thank you very much. Out of interest, where is the "This is a one-way relationship" checkbox located? Nov 9, 2011 at 20:10
  • 1
    That should be in the relationship type setting.
    – Berdir
    Nov 9, 2011 at 20:38
0

For building Social Networking-style User Relationships the Relation Module may be more appropriate than a user reference because it natively allows bi-directional joins. A User Reference is natively one-way as you have discovered.

Johan Falk has a pretty good video of the Relation module explaining its use that would help get you started.

As for friend request confirmations, I would look at use the Rules module to trigger that acceptance on the friend request and have an Action of send Email where you can use tokens to build a custom message.

4
  • thanks a lot, i will check out the video. thanks again :) Nov 9, 2011 at 19:46
  • 1
    User relationships (UR) is not the same thing as a user reference field, see my answer below.
    – Berdir
    Nov 9, 2011 at 20:04
  • i've just watched the video, i meant User Relationships (similar to flag friend) not user reference. Any suggestions? Nov 9, 2011 at 20:07
  • Somehow overlooked that, sorry. Looks like a useful module - as I described above I've been handling similar functionality in Relation and Rules - will have to check out User Relationships.
    – Brent
    Nov 9, 2011 at 20:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.