![]() |
|
Thread Tools |
#1
|
||||
|
||||
Get logged in username
I'm using the following script to get the userid for the logged in user.
How can I get the username for the logged in user? No members have liked this post.
|
#2
|
||||||||
|
||||||||
The vB_User class at /core/vb/api/user.php has a fetchUserinfo method that will return the userinfo of the current session.
I can't test if this works but something like:
or
and then read it by accessing the username array key of the $userInfo array. No members have liked this post.
|
#3
|
||||||||
|
||||||||
Originally Posted by Dave
Perfect. Thanks a bunch.
![]()
No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 15:21.