Hi, whenever I try to use user status link, I only get info if I am already friend and can remove relationship, but it will not show option to create user relationship. What's up?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Status: Active » Postponed (maintainer needs more info)

Are you sure that you have set up the necessary permissions to add relationships? This is a new permission in the latest 7.x-1.x versions.

NathanM’s picture

I'm also having this issue. I have added all the necessary permissions. However, in Views, I can only see the status link if I have already added someone or sent a request through their profile page. There is no way I can see to get an "Add as friend" link through views.

NathanM’s picture

Also using what I assume is the same dev version.

Berdir’s picture

Category: support » feature
Status: Postponed (maintainer needs more info) » Needs work

Ah, I didn't notice the Views comment, sorry.

As you can see in http://api.worldempire.ch/api/user_relationships/user_relationship_views..., this is simply not implemented yet.

It also doesn't check the new permissions.

bjalford’s picture

Title: Status Link - Can Unfriend, but Can't Friend » Status Link in Views - Can Unfriend, but Can't Friend
hedley’s picture

Attached a patch which uses the user_relationships_ui_actions_between() function in the views field render. I'm not sure if the render function is the best place for this though?

I'm having some issues with duplicate rows appearing when users have sent pending requests. Will be trying to resolve those issues but if anyone else wants to give it a shot that would be welcome as I'm no views expert.

hedley’s picture

Missed this: http://drupal.org/node/409432#comment-5906158 - a patch doing much the same thing.

andypost’s picture

Status: Needs work » Closed (duplicate)