Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#6 | user_relationships-viewsstatusfieldd7-1326476-6.patch | 2.38 KB | hedley |
Comments
Comment #1
BerdirAre 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.
Comment #2
NathanM CreditAttribution: NathanM commentedI'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.
Comment #3
NathanM CreditAttribution: NathanM commentedAlso using what I assume is the same dev version.
Comment #4
BerdirAh, 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.
Comment #5
bjalford CreditAttribution: bjalford commentedComment #6
hedley CreditAttribution: hedley commentedAttached 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.
Comment #7
hedley CreditAttribution: hedley commentedMissed this: http://drupal.org/node/409432#comment-5906158 - a patch doing much the same thing.
Comment #8
andypostDuplicate of #1838248: Status link not working correctly in user browser view