MyBB Community Forums

Full Version: user['uid'] : who ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi ^^
If i understand, on MyBB, we have different user['uid'].
user['uid'] = 0 when a man is a guest.

But i want to know the number for a man when he doesn't active his registration.

And the number for moderator simple ( not super moderateur ). Thanks
I find ^^
### Available groups: ###
### 1 - Unregistered / Not Logged In ###
### 2 - Registered ###
### 3 - Super Moderators ###
### 4 - Administrators ###
### 5 - Awayting Activation ###
### 6 - Moderators ###
### 7 - Banned ###
### --------------------------

but for groups is $mybb->user['usergroup']
Default usergroup-IDs:

Not registered: 1
Member: 2
Super Moderators: 3
Administrators: 4
Awaiting Activation: 5
Moderator: 6
Banned: 7

You can access them using the variable $mybb->user['usergroup']
and those are gids NOT uids
How in the world am I supposed to figure out the usergroup IDs for custom usergroups?!?
Take a look into the database table usergroups or into the usergroups cache in the cache manager in your Admin-CP.
I would recommend the MyBB-team to add the groupid with the groupname visible in the Group Management -tab....it would help Smile

cheers,
kimmo