Log in

View Full Version : Usergroups!?


SuperBakan
01-15-2009, 03:14 PM
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 (http://www.foxytunes.com/artist/red+hot+chili+peppers/track/the+brothers+cup)
via FoxyTunes (http://www.foxytunes.com/signatunes/)

Lynne
01-15-2009, 03:22 PM
You didn't post your code, but I'm guessing you need to use $post instead of $bbuserinfo .

SuperBakan
01-15-2009, 03:24 PM
<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! :p


EDIT:
Well, with $post['usergroupid'] it worked!
Thanks!

Lynne
01-15-2009, 03:39 PM
Great!

(But, may I suggest you just use Ranks for what you are doing?)

Dismounted
01-16-2009, 04:35 AM
Or even just plain old user titles maybe?