Current time: 03-21-2010, 03:45 PM Hello There, Guest! (LoginRegister)


Post Reply 
Group on Index?
07-03-2009, 04:23 PM
Post: #1
Group on Index?
I was wondering, is there a variable for groups?
Such as
PHP Code:
{$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!

[Image: signature.png]
AF Marketplace | Zynge.net

PM me w/ your email to get invited to Lockerz
Visit this user's website Find all posts by this user
Quote this message in a reply
07-03-2009, 04:34 PM
Post: #2
RE: Group on Index?
Well, {$mybb->user['usergroup']} only displays the group ID, if that helps in any way.

Latest NanoSkinners Release: NanoSpace
[Image: scoutie44.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
07-03-2009, 04:56 PM
Post: #3
RE: Group on Index?
Thanks, tried that Sad
I kind've need the name of the group, if you know what I mean.

[Image: signature.png]
AF Marketplace | Zynge.net

PM me w/ your email to get invited to Lockerz
Visit this user's website Find all posts by this user
Quote this message in a reply
07-03-2009, 05:35 PM
Post: #4
RE: Group on Index?
What membergroups you need and what are you trying to accomplish? Can you a be a bit more specific?

[Image: sig.gif]

Contact me in private only if you need paid help with mybb-related issues. Otherwise, please don''t, unless I invite you to. Thanks Smile
Find all posts by this user
Quote this message in a reply
07-03-2009, 05:39 PM
Post: #5
RE: Group on Index?
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.

[Image: signature.png]
AF Marketplace | Zynge.net

PM me w/ your email to get invited to Lockerz
Visit this user's website Find all posts by this user
Quote this message in a reply
07-03-2009, 05:46 PM
Post: #6
RE: Group on Index?
What about?

PHP Code:
$mybb->usergroup['title'
Find all posts by this user
Quote this message in a reply
07-03-2009, 05:55 PM
Post: #7
RE: Group on Index?
(07-03-2009 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.

[Image: sig.gif]

Contact me in private only if you need paid help with mybb-related issues. Otherwise, please don''t, unless I invite you to. Thanks Smile
Find all posts by this user
Quote this message in a reply
07-03-2009, 07:04 PM
Post: #8
RE: Group on Index?
(07-03-2009 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]
Find all posts by this user
Quote this message in a reply
07-03-2009, 07:25 PM
Post: #9
RE: Group on Index?
Thanks everybody!
@Skywalker, thanks! That code was exactly what I was looking for.

[Image: signature.png]
AF Marketplace | Zynge.net

PM me w/ your email to get invited to Lockerz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: