Code: Selecteer alles
<?PHP
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : 'forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
//This works
echo $user->data['username_clean'];
echo $user->data['user_id'];
// Maybe this???? No.
echo $user->data['playeruid'];
//Not sure if needed
include_once($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
$user->get_profile_fields( $user->data['user_id'] );
// More testing...Still no work..
echo $user->profile_fields['test'];
$user->get_profile_fields( $user->data['user_id'] );
echo $user_fields = $user->profile_fields; // Empty array ?
echo $user_fields = $user->profile_fields['test'];
echo $user_fields;
?>
Ik heb op het engelse forum gezocht, en de voorbeelden die daar gegeven worden werken ook niet.. Mis ik iets ?
Code: Selecteer alles
//Not sure if needed
include_once($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
$user->get_profile_fields( $user->data['user_id'] );
// More testing...Still no work..
echo $user->profile_fields['test'];
$user->get_profile_fields( $user->data['user_id'] );
echo $user_fields = $user->profile_fields; // Empty array ?
echo $user_fields = $user->profile_fields['test'];
echo $user_fields;