1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

user sessions problem

Discussion in 'XenForo Development Discussions' started by albh, May 21, 2013.

  1. albh

    albh Member

    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:
    $phpbb_root_path '/home/site55/public_html/board/';
    $phpEx substr(strrchr(__FILE__'.'), 1);
    $phpbb_root_path 'common.' $phpEx);
    // Start session management
    //Get the username of the result set sender
    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:
    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:
    $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
    // 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');
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. albh

    albh Member

    at kotomiindexfile i writed this:
    $kotomi_indexFile = "/home/site55/public_html/board/";
    and i am getting this error, this script i think is taking the directory where the example file is + kotomi indexfile directory.
    Warning:  require(/home/site55/public_html/collector//home/site55/public_html/board/library/Dark/Kotomi/KotomiHeader.php) [function.require]: failed to open stream: No such file or directory in /home/site55/public_html/collector/results.php on line 7
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    Looks like you can use the need to use '../board/' as your board's directory.

Share This Page