$user_id =XenForo_Visitor::getInstance()->getUserId();
$visitor = \XF::visitor(); $user_id = $visitor['user_id'];
$finder = \XF::finder('XF:User'); $user = $finder->where('user_id', 1)->fetchOne(); \XF::dump($user);
Loading Info...