MyBB Community Forums

Full Version: Current logged in UID?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm wondering how I can get the uid of the current user logged in? Is there a global that does it?

Thanks,
Shannon
{$mybb->user['uid']}

EDIT: {$mybb->user['XXX']}

Replace XXX with any value in the "Field" row.
http://wiki.mybb.com/index.php/Database_...mybb_users
Yeah, I figured that out, but thanks anyway. Smile
You mean showing UID of any person or showing the logged person's (his own) uid? If own, you could use {$mybb->user['uid']} or if other's, you can use {memprofile['uid'} (in profile pages) , that is what my plugin does.