Phpbb website login intergration

Discussion forum for MOD Writers regarding MOD Development.
Registered User
Posts: 1
Joined: Fri Aug 14, 2015 10:49 am

Phpbb website login intergration

Post by ravir » Fri Aug 14, 2015 10:57 am

Hi, I'm using this post [viewtopic.php?p=4012075#p4012075] to help me achieve login integration from phpbb into my existing website. When I add the following code into my login page:

Code: Select all

define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management

    //User is already logged in
    $username = request_var('username', '', true);
    $password = request_var('password', '', true);

    $result = $auth->login($username, $password);

    if ($result['status'] == LOGIN_SUCCESS)
        //User was successfully logged into phpBB
        //User's login failed
I am given this error:
Array ( [status] => 10 [error_msg] => LOGIN_ERROR_USERNAME [user_row] => Array ( [user_id] => 1 ) ) //Users login failed
Thanks in advance
Last edited by Oyabun1 on Fri Aug 14, 2015 11:09 am, edited 1 time in total.
Reason: Moved from 3.0.x Support forum

User avatar
Lumpy Burgertushie
Registered User
Posts: 66555
Joined: Mon May 02, 2005 3:11 am

Re: Phpbb website login intergration

Post by Lumpy Burgertushie » Fri Aug 14, 2015 1:43 pm

that is quite old and I don't know if the code is still the same etc.

here are some KB articles to help you: ... tegration/ ... tegration/

I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by

If a tree falls in the forest and nobody is there, does it make a sound?


Return to “[3.0.x] MOD Writers Discussion”