MyBB Community Forums

Full Version: Postbit UID
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to grab the userid in the postbit? I need it for something like this:
<div align="center">{$post['onlinestatus']}&nbsp;&nbsp;<a href="javascript:MyBB.reputation{$user['uid']};"><img src="http://mysite.com/images/zac/reputation.PNG" border="0"></a></div>
$mybb->userid thingy ma bob doesn't work either Toungue
If you mean the poster id:

{$post['uid']}
That graps the post ID. I need the user id, like as in the user unique id i.e 1, 2, 3. Using $user['uid'] doesn't grab it for me.
Do you mean the reader id?

{$mybb->user['uid']}
I used that one but it caused an error. Don't worry about it mate, i figured it out Smile thanks though
Thanks for this! Smile

Thanks for this! Smile

It helped me out on this thread http://community.mybb.com/thread-122619.html (Just in-case someone Googles this thread.)