Not Solved Is there anyway to pull the user's username to use outside the /forums/ directory
#2
Not Solved
What you will need to do is include the global.php file from the directory your forum is installed in. Do note that you will need to define the constant IN_MYBB as the value 1 or it will give you an error.

<?php
define("IN_MYBB", 1);
require_once "path_to_global.php";
if($mybb->user['uid']) {
$_SESSION['username'] = $mybb->user['username'];
}
else {
// Not logged in user.
}
Reply


Messages In This Thread
RE: Is there anyway to pull the user's username to use outside the /forums/ directory - by dragonexpert - 2016-11-30, 09:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)