Current time: 04-17-2014, 09:35 PM Hello There, Guest! (LoginRegister)


Jump to the post that solved this thread.
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User's UID template line
04-10-2012, 06:13 PM
Post: #1
Solved: 2 Years, 6 Days, 2 Hours, 16 Seconds ago User's UID template line
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!
Find all posts by this user
Quote this message in a reply
04-10-2012, 06:18 PM
Post: #2
Solved: 2 Years, 6 Days, 2 Hours, 16 Seconds ago RE: User's UID template line
I think it actually is a language variable. {$lang->stats_newestuser}. I'm not positive how you could separate that though.
Find all posts by this user
Quote this message in a reply
04-10-2012, 06:22 PM (This post was last modified: 04-11-2012 05:38 PM by Userus.)
Post: #3
Solved: 2 Years, 6 Days, 2 Hours, 16 Seconds ago RE: User's UID template line
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.
Find all posts by this user
Quote this message in a reply
04-11-2012, 06:27 PM
Post: #4
Solved: 2 Years, 6 Days, 2 Hours, 16 Seconds ago RE: User's UID template line
Bump.
Find all posts by this user
Quote this message in a reply
04-11-2012, 07:08 PM
Post: #5
Solved: 2 Years, 6 Days, 2 Hours, 16 Seconds ago RE: User's UID template line
Try this:

Code:
{$stats['lastuid']}

Visit this user's website Find all posts by this user
Quote this message in a reply
04-11-2012, 07:35 PM
Post: #6
Solved: 2 Years, 6 Days, 2 Hours, 16 Seconds ago RE: User's UID template line
Thank you, euantor! It worked.
+1 rep Smile
Find all posts by this user
Quote this message in a reply
04-11-2012, 08:02 PM
Post: #7
Solved: 2 Years, 6 Days, 2 Hours, 16 Seconds ago RE: User's UID template line
No problem at all Smile

Visit this user's website Find all posts by this user
Quote this message in a reply
Jump to the post that solved this thread.
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication