The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Usergroups!?
Hay.
I'm trying to edit postbit_legacy (I use vertical, yes), so that it displays the users usergroup. I managed to make it show the usergroups, etc. However it was showing the usergroup of the one being logged in, the one viewing the thread. So me as an admin would see everybody as admins. My friend as a registered member would see everybody as registered members! The only problem I can think of is that I'm using the wrong variable. So what is the variable for usergroups? How can I solve this problem? ---------------- Now playing: Red Hot Chili Peppers - The Brothers Cup via FoxyTunes |
#2
|
||||
|
||||
You didn't post your code, but I'm guessing you need to use $post instead of $bbuserinfo .
|
#3
|
|||
|
|||
Code:
<div class="postbit"> Usergroup: <b><if condition="$bbuserinfo['usergroupid'] == 2">Registered Users</if> <if condition="$bbuserinfo['usergroupid'] == 3">UAEC</if> <if condition="$bbuserinfo['usergroupid'] == 5">Global Moderators</if> <if condition="$bbuserinfo['usergroupid'] == 6">Administrators</if> <if condition="$bbuserinfo['usergroupid'] == 7">Moderators</if> <if condition="$bbuserinfo['usergroupid'] == 8">Banned Members</if> <if condition="$bbuserinfo['usergroupid'] == 9">Members</if></b> </div> That's the code. Sorry! EDIT: Well, with $post['usergroupid'] it worked! Thanks! |
#4
|
||||
|
||||
Great!
(But, may I suggest you just use Ranks for what you are doing?) |
#5
|
||||
|
||||
Or even just plain old user titles maybe?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|