fm:IfFriends


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.

Example

<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>

Supported attributes

NameRequiredDefaultDescription
uid1RequiredN/AThe first userid to check
uid2RequiredN/AThe second userid to check

See also