Announcement

Collapse
No announcement yet.

Add public groups to user info

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Add public groups to user info

    I would like to add the names of any public usergroups to which a user belongs to the user info box of their posts. Is this possible?

  • #2
    Youll need to hand code it with conditionals but yes its possible

    <if condition="is_member_of($post, X)"> Im a member of group x </if>
    <if condition="is_member_of($post, y)"> Im a member of group y </if>
    <if condition="is_member_of($post, z)"> Im a member of group z </if>

    Replace X,Y, and Z with the member group ID's

    Comment


    • #3
      Sweet, it worked. Thanks bro

      Comment


      • #4
        Sorry, one more quick question-

        Let's say I had a label on that field, like this.

        Clan:
        <if condition="is_member_of($post, X)"> group x </if>
        <if condition="is_member_of($post, y)"> group y </if>
        <if condition="is_member_of($post, z)"> group z </if>

        I'd like to avoid it just saying "Clan:" if a user has no membership. Would it be possible for either:

        A) Have it not say "Clan:" if there is no group membership
        B) Have it say "Clan: none" if there is no group membership.

        Thanks

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X