PDA

View Full Version : UserId


Mastar
07-11-2006, 02:13 AM
How can I show the userid in the welcome box after "Welcome, username" (HERE) for the user that is viewing the page?

peterska2
07-11-2006, 03:55 AM
In your navbar template find<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />replace with<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong> $vbphrase[userid]: $bbuserinfo[userid]<br />

Mastar
07-11-2006, 11:45 PM
Thanks! I didn't explain myself correctly,sorry!
Example: if I'm viewing another user's user profile I would like their userid to show there, not mine. I can't figure that out.

Thanks in advance!

slappy
07-12-2006, 12:16 AM
You can already get a user's userid, simply by putting your mouse on their username and looking at the bottom of your Browser (if you are using IE.)

Maybe that would be enough for your purposes.

Regards,

Mastar
07-12-2006, 12:43 AM
I know that! It's for a purpose.

Kirk Y
07-12-2006, 01:19 AM
Just stick $user[userid] wherever in the profile page you want it to show.

Mastar
07-12-2006, 01:49 AM
Thanks y'all I got it. Maybe I'll post it so others can use it if they want.