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

Code:
{$stats['lastuid']}
#6
Solved: 4 Years, 5 Months, 2 Weeks, 2 Days, 21 Hours, 37 Minutes, 1 Second ago
Thank you, euantor! It worked.
+1 rep Smile
#7
Solved: 4 Years, 5 Months, 2 Weeks, 2 Days, 21 Hours, 37 Minutes, 1 Second ago
No problem at all Smile
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)