Hi,

When I choose Status link in views I can un-friend somebody. But there is a way to add the button to add the friend? Flag friend module already has the option and it's really usefull.

Thanks

Comments

Markoz’s picture

sub

protoplasm’s picture

Looking for this feature as well.

Just figured out a workaround for this.

Make sure you add all the proper relationships for rtid, requestee, and requester.
In fields add: UID and exclude from display
Then Add Global: Custom Text from fields
Edit the custom text display with something like Add a Friend
Check output this link as path and use this:
relationship/[uid]/request/2?destination=user

Since I have only two relationships and my friendship relationship is #2, that is why 2?destination. Adjust according to your own setup. Inspect the properties of your Add a Friend link to obtain the number you need to use.

mrf’s picture

Status: Active » Closed (duplicate)

Closing this as a duplicate of #409432: Include an add to friends link in views.