Log in

View Full Version : Accessing Userinfo


ShannonA
10-06-2005, 07:49 PM
I used to be able to access username in the phpinclude_start template like this:

$bbuserinfo[username]

Now, I'm trying to replicate that functionality in 3.5 in a hook and $bbuserinfo[username] just seems to come back blank.

How do I access a user's name from with a hook?

Shannon

Andreas
10-06-2005, 09:47 PM
Depends on the Hook :)
If $vbulletin is within the scope (like it is in global_start):

$vbulletin->userinfo['username']

ShannonA
10-06-2005, 10:19 PM
Thanks.