![]() |
List Usergroup in Postbit Legacy?
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. |
sure. you could edit the display properties and place the following where needed repsectively within your postbit template.
PHP Code:
|
That's User ranks though and not Usergroups right? I'm after the latter, since these classes would change via the promotion system.
|
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)){ In the above codes, the integer after "$post," represents the Usergroup ID we're matching against. |
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? |
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]} |
Okay, gotcha. I'll give this a try and get back to you.
Thanks a lot! |
User group is located within the $userinfo array, which should be available in the postbit, but don't quote me on the availability part.
|
No $userinfo is only available in the MEMBERINFO templates, to my knowledge.
|
Reason I said don't quote me on it. I know it is stored in the userinfo though.
|
All times are GMT. The time now is 12:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|