Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 10 Years, 11 Months, 1 Week ago User's UID template line
#1
Solved: 10 Years, 11 Months, 1 Week ago
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!
#2
Solved: 10 Years, 11 Months, 1 Week ago
I think it actually is a language variable. {$lang->stats_newestuser}. I'm not positive how you could separate that though.
#3
Solved: 10 Years, 11 Months, 1 Week ago
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.
#4
Solved: 10 Years, 11 Months, 1 Week ago
Bump.
#5
Solved: 10 Years, 11 Months, 1 Week ago
Try this:

{$stats['lastuid']}
#6
Solved: 10 Years, 11 Months, 1 Week ago
Thank you, euantor! It worked.
+1 rep Smile
#7
Solved: 10 Years, 11 Months, 1 Week ago
No problem at all Smile
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)