I am new to xenforo now, and before i used phpbb3. I have a php quiz and implemented user sessions from phpbb from where i collect the username. I used this code for phpbb:
	
	
	
		
 
I now i need to implement this in using xenforo, so i searched here in forum and i think i found the way to do it but i am getting an error:
	
	
	
		
 
The code that i used to replace that from phpbb is this:
	
	
	
		
 
Thanks
				
			
		PHP:
	
	define('IN_PHPBB', true);
$phpbb_root_path = '/home/site55/public_html/board/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
 
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
 
//Get the username of the result set sender
    $userdata5=$user->data['username'];
	I now i need to implement this in using xenforo, so i searched here in forum and i think i found the way to do it but i am getting an error:
		Code:
	
	Fatal error:  Class 'GeekPoint_Symfony' not found in /home/site55/public_html/collector/results.php on line 11
	The code that i used to replace that from phpbb is this:
		PHP:
	
	$startTime = microtime(true);
$xenforoRoot = '/home/site55/public_html/board/';
 
// Setup XenForo's autoloader
require_once($xenforoRoot . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($xenforoRoot . '/library');
 
// Initialize the XenForo Framework
GeekPoint_Symfony::initializeXenforo($xenforoRoot, $startTime);
 
// You can fetch user data using the visitor object
$visitor = XenForo_Visitor::getInstance();
 
$user_id = $visitor->getUserId();
$username = $visitor->get('username');
$email = $visitor->get('email');
	Thanks