MyBB Community Forums

Full Version: How to put users primary group
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi, is there a plug in or code i can use so it would display the users primary group under his/hers avatar? i want display images not text title.
{$mybb->user['usergroup']}
(2011-08-10, 04:26 PM)faviouz Wrote: [ -> ]
{$mybb->user['usergroup']}

but where do i can insert those code ?
Wherever you want. How should I know where you want to put it? You said under the avatar, but that's quite vague...
Yes under avatar. But i mean like where i can put those code ? template ?
Yes, in templates. Go to Admin CP > Templates & Style > Templates > Your Template Set.

Then pick a place to put it.
ok i go to Admin CP > Templates & Style > Templates > My template > Post Bit Templates > postbit_avatar? Right? If yes so where do i have to put ?
At the bottom should be fine.

I'm starting to think this isn't what you want though, that variable will output the gid of the usergroup you're in, not the plain text usergroup title.
i want the image user primacy group ( i have made those pic), not text.
So you want to show the group image? (i.e. my Support Team badge)

That should already be there.
Pages: 1 2