PDA

View Full Version : Get userinfo in php code


crayz92
06-21-2007, 12:18 AM
Hello, I noticed that $bbuserinfo['username'] only works inside a template, so I was wondering what I could use to get that same information (username of the logged in user viewing that page) from inside my php script I am writing.

Thanks!

Paul M
06-21-2007, 12:22 AM
$vbulletin->userinfo['username']

crayz92
06-21-2007, 12:25 AM
Nice, thank you Paul!