Here is what I want to accomplish.
I have a site running using phpbb3 as the main app for the site:
http://www.thelowridergame.comWhat I want to do is introduce a separate section for articles, tutorials and other things. I installed joomla to
http://www.thelowridergame.com/articles.
When a user hits the page I want it to automatically establish the phpbb session if it isn't already and pull the username. After that if the user is not found in joomla I want it to create a user account and login. If the account is already there well then it just has to auto login. The joomla login will not be in play all login and registration actions will be redirected to phpbb. Another thing that needs to happen though is it has to pull the header and footer from phpbb and parse it just like phpbb.
What do you guys think? Is there already a mod out there doing this? Remember phpbb has to do all the registrations and login. joomla is just there for article content management.
Also the mod will not modify phpbb in any way. I don't want me or anyone else to run into any problems when running a phpbb3 or joomla upgrade, but if I have to mod a joomla file to do it I will. I want this to not modify any phpbb files.
If I establish the session in phpbb I was thinking I can probably just do something like this, but it didn't work for me when I put it into my templates index.php:
Code:
<?php
define('IN_PHPBB', true);
$phpbb_root_path = '../forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
ob_start(); // start buffer
$username = $user->data['username'];
/////////////////////////////////
//USE $username to query user info and create joomla account and login
//Then display joomla CONTENT HERE
////////////////////////////////
$maincontent = ob_get_contents(); // assign buffer contents to variable
ob_end_clean(); // end buffer and remove buffer contents
$template->assign_vars(array(
'M_MAINCONTENT' => $maincontent
));
$template->set_filenames(array(
'body' => 'template.html',
));
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>