Closed (fixed)
Project:
User Relationships
Version:
6.x-1.0-rc5
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Sep 2010 at 16:07 UTC
Updated:
3 Jan 2014 at 02:04 UTC
Jump to comment: Most recent
Comments
Comment #1
sandino commentedSame problem, subscribe.
Comment #2
vewakayeh commentedSame problem, subscribe.
Comment #3
mogop commentedsubscribe
Comment #4
Donaldd commentedSubscribing, I need this also.
Comment #5
dabeast commentedsubscribing
Comment #6
mrf commentedYou can manually provide these links with two important pieces of information, the uid of the user you are 'friending' and the relationships type id.
The hardest part of this is finding the id of the user you are currently looking at and want to friend, you can provide this as a hidden field in a view, or do a lookup through php, but it really is dependent on where you are looking for the information from.
The relationship id can be found on user management->relationships->list and hovering over the edit button for the relationship will show you the id in the url.
You can then build out a link using the following format:
http://example.com/relationship/%userid/request/%relationshipid
So for user 8 and relationship 2 you'd have:
http://example.com/relationship/8/request/2
Comment #7
mrf commentedSetting to fixed, switch it back if you are still having problems.
Comment #9
Heihachi88 commentedHow to hide this link if u're already friend with this user?
Comment #10
Heihachi88 commentedComment #11
mrf commentedHave a look at #420714: "add to contacts" link and hide profile fields if not in relationship you could wrap your links in a similar if condition that uses user_relationships_load