This component allows you to check the friendstatus in between two friends. This component works like an fm:switch component.
<fm:FriendStatus uid1="{$loggedinuser.id}" uid2="12345">
<fm:Case value="notfriends">You guys are not friends</fm:Case>
<fm:Case value="waiting">You're waiting on a reply regarding this friendship status</fm:Case>
<fm:Case value="notconfirmed">This user requested friendship status, do you accept this proposal?</fm:Case>
<fm:Case value="confirmed">You guys are friends!</fm:Case>
</fm:FriendStatus>
The order of uid1 and uid2 is important. uid1 will be used as the perspective for the friend relationship. This is the workflow:
Name | Required | Default | Description |
---|---|---|---|
uid1 | Required | N/A | The first user id to check. |
uid2 | Required | N/A | The second user id to check. |
The FriendStatus component can also be used to display a more following-like behaviour as such:
<fm:FriendStatus uid1="{$loggedinuser.id}" uid2="12345">
<fm:Case value="notfriends">You're not interested in this guy.</fm:Case>
<fm:Case value="waiting">You are following this user.</fm:Case>
<fm:Case value="notconfirmed">This guy is following you (he could be a stalker!).</fm:Case>
<fm:Case value="confirmed">You are following each other.</fm:Case>
</fm:FriendStatus>