What version of phpBB are you using? phpBB 3.0.7
What is your board's URL? http://elcclan.impulzstudios.com/forums
Who do you host your board with? No answer given
How did you install your board? I used the download package from phpBB.com
Is your board a fresh install or a conversion? Fresh Install
Do you have any MODs installed? No
Is registration required to reproduce this issue? No
What styles do you currently have installed? Standard
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 5
What is your level of experience? Comfortable with PHP and phpBB
When did your problem begin?
Im trying to get an external website to link with the forums, and so use the $userdata from the forums so the admins could use the same login to get to the admin section of the page too.
Please describe your problem.
The only problem is when i use this code:
Code: Select all
define('IN_PHPBB', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../forums/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup();
Code: Select all
$userdata = $user->data; if($userdata['session_logged_in'] && $userdata['user_level'] == ADMIN)
also allot of other functions from the $userdata seem to work except from the user_level part.
Im pretty sure im logged in as an admin on the board, but the $userdata['user_level'] always seems to stay empty
dont know what i am doing wrong though
Hope someone can help me out here
thanks in advance
Generated by SRT Generator ($Rev: 4502 $)