Support » Plugins » Hacks » phpbb inclusion into wordpress, no new users.

  • Good evening

    I dont want extra wordpress users, I want to use those from phpBB,
    but they should have no access to the dashboard etc.

    But they should have access to some sites which I define for them.

    For example:

    if ($user->data['group_id'] == 5) {
               echo 'Site for admins to see and control the gameserver';

    And also that the login form works from my wordpress.

    This looks pretty much like this:

        if (!$user->data['is_registered'])
        <a href="forum/ucp.php?mode=register">[Register]</a>
    <form method="POST" action="forum/ucp.php?mode=login" target="_tab" >
        Name: <input type="text" name="username" size="20"><br />
        Password: <input type="password" name="password" size="20"><br />
        Remember: <input type="checkbox" name="autologin"><br />
        <input class="art-button" type="submit" value="Login" name="login"></p>
        <input type="hidden" name="redirect" value="index.php">
    <input type="hidden" name="wordpress" value="1">
        } else {
            echo 'Hello '. $user->data['username'] . '<br />' ;
            echo '[<a href="forum/ucp.php?mode=logout&sid='. $user->data['session_id'] . '">Logout</a>]';
            if ($user->data['group_id'] == 5) {
                echo '[<a href="forum/adm/index.php?sid='. $user->data['session_id'] . '">Admin</a>]';

    The user setup which is needed to gain access to variables like $user->data[]; is important.
    I tried to include in the index.php of my style.

    define('PHPBB_ROOT_PATH', 'forum/');   // Path to phpBB (including trailing /)
        define('IN_PHPBB', true);
        $phpbb_root_path = 'forum/';
        $phpEx = substr(strrchr(__FILE__, '.'), 1);
        include($phpbb_root_path . 'common.' . $phpEx);
        // Start session management
        // Grab user preferences

    No matter where I include this, I run into serious problems and get errors.

    They look like this:

    Fatal error: Cannot redeclare make_clickable() (previously declared in wp-includes/formatting.php:1386) in forum/includes/functions_content.php on line 679

    Please help me as I do not want to use any plugins which has a full CMS in there >.> and I JUST want to use the variables from phpbb to grant access to some sites just for a group of people.
    Unfortunatly there is no plugin which suits my needs.

    Thanks in advance

    – Martin

  • The topic ‘phpbb inclusion into wordpress, no new users.’ is closed to new replies.