Log in

View Full Version : Get LoggedIn Username?


FuRiOuS1
06-08-2004, 11:25 PM
Hi,

I was wondering if it could be explained to me on how to return the username of the person currently logged in, not all the users, just a specific user currently accessing a page. This will not be entered into an existing vBulletin file, so if there are any includes I need to know also. I have looked through alot of the code, and there is just way to much to go over to for me to find out how to do this. Any help would be appreciated.

Thank You

JulianD
06-14-2004, 02:10 AM
If you include the vBulletin's backend file, global.php, on your scripts, you can know the username of the user accessing your script by calling this array: $bbuserinfo['username']

You can do that on templates too...

Dean C
06-14-2004, 08:49 AM
Use $bbuserinfo[username] in templates and $bbuserinfo['username'] in files :)