MyBB Community Forums

Full Version: Group on Index?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering, is there a variable for groups?
Such as
{$mybb->user['postnum']}
I know there's one on the User CP page, but I doubt it works with the index.
I wish to use a variable that is included out of the box, so no editing of language of core files necessary, as this is for a theme.
Thanks!
Well, {$mybb->user['usergroup']} only displays the group ID, if that helps in any way.
Thanks, tried that Sad
I kind've need the name of the group, if you know what I mean.
What membergroups you need and what are you trying to accomplish? Can you a be a bit more specific?
Meaning, on the header_welcomeblock, there will be a section saying:
Group: Administrator
Posts: 1903
I've already coded the layout, I just need to function for it.
What about?

$mybb->usergroup['title']
(2009-07-03, 05:39 PM)Infranight Wrote: [ -> ]Meaning, on the header_welcomeblock, there will be a section saying:
Group: Administrator
Posts: 1903
I've already coded the layout, I just need to function for it.

You lost me there. What you are saying is not defined at the header_welcomeblock or whatever. But maybe is just me that I don''t get what you mean as english is my second language.
(2009-07-03, 05:39 PM)Infranight Wrote: [ -> ]Meaning, on the header_welcomeblock, there will be a section saying:
Group: Administrator
Posts: 1903
I've already coded the layout, I just need to function for it.

Do you mean like this?

[attachment=14600]
Thanks everybody!
@Skywalker, thanks! That code was exactly what I was looking for.