PDA

View Full Version : UserID Code Help Required


MooMan65
04-12-2003, 10:12 PM
Hey everyone, I've been attempting to add a small addition to the poftbit of the forum I administrate that shows what usergroup that user is in (Admin, Moderator etc.) I've actually done it twice before but I can't seem to remember the correct variable that contains the group id that user is in. At first I did this in functions.php:

if ($bbuserinfo['usergroupid']==6) { $userlevel="Administrator"; }

But I know now that $bbuserinfo['usergroupid'] is YOUR Usergroup, so under everyone's post it repeats your usergroup, not the posters. What I'm asking is what do I put instead of $bbuserinfo['usergroupid'] for it to be correct?

Thanks!

mr e
04-12-2003, 10:36 PM
$post['usergroupid']