MyBB Community Forums

Full Version: Multiple Usergroup Displayed?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Sorry, I sped read the posts.

To use the usergroup image instead, in the file, replace both instances of:
format_name($ug['title'], $ug['gid'], 0)
with
'<img src="'.strtr($ug['image'], array('{lang}' => (empty($GLOBALS['mybb']->user['language'])?$GLOBALS['mybb']->settings['bblanguage']:$GLOBALS['mybb']->user['language']), '{theme}' => $GLOBALS['theme']['imgdir'])).'" alt="'.$ug['title'].'" title="'.$ug['title'].'" />'

You might also want to remove the comma separators - just edit this:
$comma = ', ';

Untested, so tell me if it works. Thanks.
Hi, Nope that code doesn't work, as I've changed the code in the file, uploaded it and it doesn't let me access the plugins section, but without the plugin there it does.



-Ashley
Works for me. Maybe edited wrong?

Anyway, give this a try. Note, it assumes you've got group images for each group.
Hello,
It shows correctly on the Member Profile Smile

If there anyway to make the images show up on the thread under there normal groups?
Pages: 1 2