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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)