Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 7:06 pm (All times are UTC )

 




Post new topic Reply to topic  [ 7 posts ] 
Author Message
Posted: Sat May 02, 2009 12:35 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat May 02, 2009 12:31 am
Posts: 4
Here is what I want to accomplish.

I have a site running using phpbb3 as the main app for the site:
http://www.thelowridergame.com

What 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();
?>


Top
  E-mail  
 
Posted: Sat May 02, 2009 10:48 am 
Joomla! Ace
Joomla! Ace
Online

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 1492
Location: Akershus, Norway
Use the Jfusion extension to bridge them.


Top
   
 
Posted: Sat May 02, 2009 10:58 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat May 02, 2009 12:31 am
Posts: 4
Jfusion looks good to bridge them. Now I just need to make Joomla use the phpbb header or redo my site completely to use joomla, but if you look at my pages they are dynamic php pages. Not sure if Joomla can serve those.


Top
  E-mail  
 
Posted: Sat May 02, 2009 11:04 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 1221
Make your Joomla directory your home ie. www.yoursite.com goes to your Joomla directory and Bridge the two applications with Jfusion.

It is quite easy to convert a normal HTML or PHP file to a Joomla template and you only need 1 page, Joomla does the rest.

_________________
http://weblinksonline.co.uk

http://www.webdongle.co.uk/weblinksonline/joomla-faq.html


Top
   
 
Posted: Sun May 03, 2009 6:18 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat May 02, 2009 12:31 am
Posts: 4
I think I'm going to just use Joomla as my main page and use wrappers for all my existing content then just link to the forum.


Top
  E-mail  
 
Posted: Mon May 04, 2009 4:29 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat May 02, 2009 12:31 am
Posts: 4
Actually I'm going to have to leave it under /articles/

If I did use joomla in my root it would have to load joomla and phpbb and some other queries I do to the db because joomla would be my index. I'd rather not have it load joomla unless it has to and I can't rename joomla's index.php to something else so I'll put it under an articles directory. So what I'm going to do is load joomla under articles and have a link in my main menu for it. Then also have the same template under joomla so it doesn't look like you just moved into a different site. With jfusion loging in under both I'll still be able to show a registered user menu and a unregistered user menu.


Top
  E-mail  
 
Posted: Mon May 04, 2009 1:33 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 1221
kingdruid wrote:
I think I'm going to just use Joomla as my main page and use wrappers for all my existing content then just link to the forum.

An if you delete all except what is between the <body></body> tags (including deleting the <body></body> tags ) then it may help them display better in the wrapper) ?

_________________
http://weblinksonline.co.uk

http://www.webdongle.co.uk/weblinksonline/joomla-faq.html


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group