MyBB Community Forums

Full Version: Query to show usergroup name
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using this plugin (shown in action on my play-by-post site here) and wanted to add a field to show each account's usergroup. I asked the plugin creator and was told I'd need to edit the plugin file to create an extra query. I'm quite new to MyBB and have no idea how to do that.

I tried getting what I wanted through editing the template in the ACP that controls what's shown in each entry. The closest I got is what's currently shown, the group number, and that doesn't work for my purposes. I need to be able to show the name of each account's usergroup so visitors can tell if accounts have been sorted or are still in the registered group. If it's any help, the template I tried editing is:
<tr>
<td class="{$alt_bg}" width="33%">
{$users['faceclaim']}
</td>
<td class="{$alt_bg}" width="33%">
<a href="{$mybb->settings['bburl']}/member.php?action=profile&amp;uid={$users['profilelink']}">
{$users['username']}
</a>{$ac_import}
</td>
<td class="{$alt_bg}" width="33%">
{$users['usergroup']}
</td>
</tr>