Announcement

Collapse
No announcement yet.

Displaying group memberships.

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

  • Displaying group memberships.

    How might I display in the postbit the primary group that a user is a member of?

    Thanks.

  • #2
    Add this to the postbit template where you'd like it:

    HTML Code:
    <div class="smallfont">Primary User Group: {$post['permissions']['title']}</div>
    ... that will display the title of the primary usergroup.

    Alternatively if you want it to display the display group instead (which is the same thing unless otherwise set; I'd recommend using this method), use this:

    HTML Code:
    <div class="smallfont">Primary User Group: $post[displaygrouptitle]</div>
    Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

    Comment


    • #3
      Great this is half of what I want to do.

      Can this be extended to only show the Primary Usergroup for members of a specific group (Moderators) i.e. a conditional clause of some sort?

      Comment

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