
09-02-2019, 02:50 PM
|
|
|
Join Date: Aug 2019
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Dave
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:
PHP Code:
$userInfo = vB_Api::instance('user')->fetchUserinfo();
or
PHP Code:
$userInfo = vB_User::fetchUserinfo();
and then read it by accessing the username array key of the $userInfo array.
|
Perfect. Thanks a bunch.
|