We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7841
    • 13 Posts
    Hi, I’m trying to use phpBB authorization for ModX. In another words - when user login on forum (phpBB), he automatically login on web-site (ModX).
    I tried this code like snippet:

    <?php
    // http://www.phpbb.com/kb/article/phpbb3-sessions-integration/
    define('IN_PHPBB', true);
    $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../forum.parnasmoto.ru/';
    include($phpbb_root_path . 'common.php');
    
    // Start session management
    $user->session_begin();
    $auth->acl($user->data);
    $user->setup();
    ?>


    Result is - "The config. file could not be found. Click here to install phpBB"

    Of course phpBB is installed.

    Sorry for my terrible English.
      From Russia with love
      • 22303 MODX Staff
      • 10,725 Posts
      You can’t integrate sessions between MODx and another application that does it’s own session management. They are incompatible. You will have to create a bridge that synchronizes user accounts and passwords (or just user accounts if you create a custom modUser derivative class for MODx Revolution, but that’s a much more advanced topic and requires that PHPBB have some sort of external authentication API or web service).