Log in

View Full Version : How to get the username of a user id


RS_Jelle
12-26-2005, 05:49 PM
You use
$vbulletin->userinfo['username']
to get the username of the current logged in user, and you use
$vbulletin->userinfo['userid']
to get the user id of the current logged in user.

But how can you get the username of a user, when you have the user id ?

merk
12-26-2005, 09:58 PM
Youll need to use php code, but something like

$newuser = fetch_userinfo($userid);

$newuser['username']