I installed myBB to supplement my website, not to take it over. I'm currently having trouble pulling the logged in users' username so I can assign it to session data: $_SESSION['username'];
Is there anyway that this is possible? This is to happen outside of the forums/ directory but I suppose include/require would allow that, assuming pulling this data is possible.
I'm essentially trying to set session data, site wide, upon successful mybb login with $_SESSION['username'] = to the mybb login username.
Is there anyway that this is possible? This is to happen outside of the forums/ directory but I suppose include/require would allow that, assuming pulling this data is possible.
I'm essentially trying to set session data, site wide, upon successful mybb login with $_SESSION['username'] = to the mybb login username.