Jump to content

Get group name


Walrusking

Recommended Posts

Posted

I am trying to get the group name from the group id but everything I have tried has not worked. I am doing this in the html templates to display all secondary usergroups but I want to exclude some groups from displaying like the Adminitrators and Moderators group

Posted
{expression="\IPS\Member\Group::load( $groupId )->name"}
{expression="\IPS\Member\Group::load( $groupId )->formattedName"}

First prints the name, second will use the group prefix/suffix around the name if desired and set up for the group.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...