MyBB Community Forums

Full Version: User's UID template line
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!
Can someone tell me what is the template line that specifies the user's UID?
For example, in the Index page, the last registered member would be something like this:
Quote:<a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}">{$stats['lastusername']}</a>
The problem here is that instead of showing the correct UID, it shows 0.
If I use {$uid}, the UID shown is yours (the one logged in) instead of the last registered user's UID.

Thanks!
I think it actually is a language variable. {$lang->stats_newestuser}. I'm not positive how you could separate that though.
There is an language variable: {$lang->stats_newest_member}. However, it is only showing the following text:
Quote:Newest Member:
So, it won't help. I'm pretty sure that there is an variable that is showing the user's UID, so I can include it in a link.
Bump.
Try this:

{$stats['lastuid']}
Thank you, euantor! It worked.
+1 rep Smile
No problem at all Smile