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?


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

Replace XXX with any value in the "Field" row.
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.