MediaPost Social Network

Up:if-is-group-member

Displays the enclosed content only if the specified user is a member of the group as specified.

Attributes

  • Required
    • int gid - The group id.
  • Optional
    • int uid - The user id to check. (default value is loggedinuser)
    • string role - Which role to check for. (default value is member). Other valid values are creator, admin.

Sample code

<up:if-is-group-member gid="54321" uid="12345" role="admin">
 Hey, you're an admin of that group!
  <up:else>Sorry, admins only!</up:else>
</up:if-is-group-member>

Notes

  • Can be used in conjunction with up:else