MediaPost Social Network

Up:if-is-friends-with-viewer

Displays the enclosed content only if the user specified is friends with the logged in user.

Attributes

  • Required
    • int uid - the user id to check.
  • Optional
    • bool includeself - return true if viewer and uid specified are the same. (default value is true)

Sample code

<up:if-is-friends-with-viewer uid="12345">
   Hey you guys are friends!
    <up:else>Did you know that you have something in common?</up:else>
  </up:if-is-friends-with-viewer>

Notes

  • Can be used in conjunction with up:else