CMSMS and PHPBB3 Integration

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Akonkagva
Forum Members
Forum Members
Posts: 11
Joined: Mon Aug 31, 2009 8:09 pm

CMSMS and PHPBB3 Integration

Post by Akonkagva »

Hi,

I am trying to integrate login and registration service of CMSMS with PHPBB3.

Currently I am working on the login system. I have an external script that logges user into the forum. It worked when I call it.

However, when I add the login script inside the do_login action inside the FEU users module.

I receive the following error message from the PHPBB engine: Fatal error: Cannot redeclare class template in /var/www/html/forum/includes/template.php on line 24

The integration source code:

Code: Select all

//CMS code
// we're logged in
//Custom code

	error_reporting(E_ALL ^ E_NOTICE);
	$username ="test_acc";

	$password = "test_pass";
	$remember = "0";
    define('IN_PHPBB', true);
    define('ROOT_PATH', "/var/www/html/forum");


    if (!defined('IN_PHPBB') || !defined('ROOT_PATH')) {
        exit();
    }

    $phpEx = "php";
    $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : ROOT_PATH . '/';
    include($phpbb_root_path . 'common.' . $phpEx);

    $user->session_begin();

    $auth->acl($user->data);
	$auth->login($username, $password, $remember, 1, 0);
//Custom code ends here
// store a cookie ?CMS code
Waiting for your replies,
Akonkagva
Last edited by Akonkagva on Tue Apr 12, 2011 10:42 am, edited 1 time in total.
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: CMSMS and PHPBB3 Integration

Post by M@rtijn »

Topic moved: Developers Discussion -> Modules/Addons
Make your community a better place!
ISSL
New Member
New Member
Posts: 8
Joined: Sun Apr 10, 2011 8:10 pm

Re: CMSMS and PHPBB3 Integration

Post by ISSL »

Hi,

Did you get anywhere with integrating phpBB3 into cmsms, as i need to be able to do the same.

This is to do with logging into front end users and having an account on phpbb3
Post Reply

Return to “Modules/Add-Ons”