MyBB Community Forums

Full Version: Retrieving ID of a post's user
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to create a link to a user's achievement profile. (So in this instance, I'm using the My Achievements plugin.) This is in the postbit, and I need the ID of a user in the postbit—not the ID of the user who is logged in.

<a href="{$mybb->settings['bburl']}/myachievements.php?uid={$uid}">See Achievements</a>

This is what I have currently, but I know I've screwed up somewhere as it shows the URL as I'd expect, but without the user ID at the end. I'm not a programmer so I'm glad I've got this far, but can anyone help me finish it?
Try using {$post['uid']} instead of {$uid}
Perfect! Thanks yet again, G33K! Big Grin