2013-12-22, 10:43 AM
Hello, I've been attempting to make an OpenID feature for my board (outside the forums), and need to be able to get user details to update the database after they have logged in via Steam. The problem is, whenever I try to get the user's uid it always returns 0. I printed the entire $mybb->user table and found it isn't returning the correct information:
"Array ( [usergroup] => 1 [username] => [uid] => 0 [displaygroup] => 1 [lastvisit] => 1387708011 [ismoderator] => )", even when I go onto the forums and I'm logged in.
This is the part of my code that handles the MyBB:
The location of my forums is /forums/ (running 1.6.1) and I'm testing this in /test/login, live here.
I would appreciate any help.
"Array ( [usergroup] => 1 [username] => [uid] => 0 [displaygroup] => 1 [lastvisit] => 1387708011 [ismoderator] => )", even when I go onto the forums and I'm logged in.
This is the part of my code that handles the MyBB:
chdir( "../../forums/" );
define("IN_MYBB", 1);
include("./global.php");
global $db, $mybb;
print_r( $mybb->user );
The location of my forums is /forums/ (running 1.6.1) and I'm testing this in /test/login, live here.
I would appreciate any help.