Richey Member Apr 9, 2011 #1 Hey guys, how can I get user information inside of a php file I include via addon? In vBulletin it was something like: global $vbulletin; $username = $vbulletin['username'] How to do this in xenForo? Have a nice weekend!
Hey guys, how can I get user information inside of a php file I include via addon? In vBulletin it was something like: global $vbulletin; $username = $vbulletin['username'] How to do this in xenForo? Have a nice weekend!
Onimua Well-known member Apr 9, 2011 #2 PHP: $visitor = XenForo_Visitor::getInstance(); echo $visitor['user_id']; // user id