The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is there a way to list the Usergroup in the postbit legacy, say in the format:
Class: Full Member/Moderator/Admin (etc) I don't want this to be in usertitle, as the two will be kept separate. Thanks. |
#2
|
|||
|
|||
![]()
sure. you could edit the display properties and place the following where needed repsectively within your postbit template.
PHP Code:
|
#3
|
|||
|
|||
![]()
That's User ranks though and not Usergroups right? I'm after the latter, since these classes would change via the promotion system.
|
#4
|
||||
|
||||
![]()
I'm not sure if the Usergroup name is accessible via a variable. If I'm right in there not being one, you could use a set of conditional statements to create one.
Code:
<if condition="is_member_of($post, 6)">Administrator</if> Create a new plugin at hook location "postbit_display_start" with the following: Code:
if (is_member_of($post, 6)){ $usergroup = "Administrator"; } elseif (is_member_of($post, 5)){ $usergroup = "Usergroup 5"; } elseif (is_member_of($post, 4)){ $usergroup = "Usergroup 4"; } elseif (is_member_of($post, 3)){ $usergroup = "Usergroup 3"; } In the above codes, the integer after "$post," represents the Usergroup ID we're matching against. |
#5
|
|||
|
|||
![]()
I've seen it done on a few other boards, so I don't imagine it being that difficult.
Can you direct me to said plugin please? |
#6
|
||||
|
||||
![]()
You must've posted while I was editing -- look at my post above.
Edit: Just ran across an alternative solution. Use the following in your postbit template wherever you'd like the Usergroup name displayed (No plugin needed): Code:
{$GLOBALS[vbulletin]->usergroupcache[$post[usergroupid]][title]} |
#7
|
|||
|
|||
![]()
Okay, gotcha. I'll give this a try and get back to you.
Thanks a lot! |
#8
|
||||
|
||||
![]()
User group is located within the $userinfo array, which should be available in the postbit, but don't quote me on the availability part.
|
#9
|
||||
|
||||
![]()
No $userinfo is only available in the MEMBERINFO templates, to my knowledge.
|
#10
|
||||
|
||||
![]()
Reason I said don't quote me on it. I know it is stored in the userinfo though.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|