View Full Version : usergroupid -> usergroup name
Jolten
11-14-2004, 06:56 PM
Anyone know the variable for the default usergroup names or titles?
I want to display the usergroup a member in on their profile page for admins to see. I can display the usergroup id just fine, I just can't find the variable for the usergroup name.
Thanks
Zachery
11-14-2004, 07:01 PM
Don't think you can call it without using another query, but you can manualy enter the name
<if condition="$userinfo[usergroupid] == X"> USergroupX</if>
Jolten
11-14-2004, 07:17 PM
Yeah, I was thinking I could do conditionals. But was really hoping for just a variable for the name, since the id can be pulled with just a variable.
Thanks Zachery.
Zachery
11-14-2004, 07:22 PM
Yeah, I was thinking I could do conditionals. But was really hoping for just a variable for the name, since the id can be pulled with just a variable.
Thanks Zachery.
the $userinfo varible contains all data inside of that users row. his userid, what groups he is apart of, etc etc.
usergroupid is stored so vB knows which group he is, but vB does not care about the name so it is not stored.
You would need to run another query to grab it, and i am not sure what it would be.
Jolten
11-14-2004, 07:23 PM
Cool. Thanks again. I'll just sort it with conditionals rather than adding another query.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.