The fm:IfFriends allows you to check if 2 given users are friends.
If this is the case, code directly underneath it will be executed, if not, the code in the (optional) fm:Elsecomponent will be executed.
<fm:IfFriends uid1="{$loggedinuser.id}" uid2="12345" >
You are friends with user 12345
<fm:Else>
You're not too fond of user 12345 lately :(
</fm:Else>
</fm:IfAfter>
Name | Required | Default | Description |
---|---|---|---|
uid1 | Required | N/A | The first userid to check |
uid2 | Required | N/A | The second userid to check |