Log in

View Full Version : How do I convert a userid to username?


doronbd
01-07-2008, 05:42 AM
I want to display the name of the thread opener at the top of the thread.
I only have the $threadinfo['postuserid'] field, which returns the userid ofcourse..
How can I get the username from it?

(I'm doing it inside my template)

10x!

Marco van Herwaarden
01-07-2008, 06:17 AM
$threadinfo['postusername']

doronbd
01-07-2008, 12:09 PM
:) Bless you!!!

Do you happen to know where can I get the documentation about the fields which I can get? I do not have an access to the database nor I do not know the ERD of the vBulletin tables.. but even if I did, I still need some dictionary to translate keys (e.g. userid) to it's content..