[MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

English only. Discuss phpBB3 here.

Moderator: 汉化组

[MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby IOsetting » 2008-11-09 10:46

#######################################################
## Title: phpBB3 - Joomla1.5 Bridge
## Author: IOsetting (N/A) http://www.phpbbchina.com
## Description:
## Integrate Joomla1.5 with phpBB3. Joomla becomes the add-on CMS of phpBB, share the user data.
## This bridge is for the already running forum -- Joomla will share the user data from phpBB
##
##
## Version: 1.2 - Build 20081108, for Joomla 1.5.7 and phpBB3.0.2
##
## New Features
## 1. Allow Joomla and phpBB being installed in different databases
## 2. Login/Logout sync from both sides
##
## Install: Easy
## Time: 10 Minutes
## Download Mirror 1 Mirror 2
##
## DEMO
#######################################################



Install:

Joomla and phpBB should be installed under the same space (same domain)

1. Install Joomla and phpBB(or use existing phpBB).

2. Copy <package>/libraries/phpbbtools to <joomla1.5 root>/libraries/phpbbtools

Open <joomla1.5 root>/libraries/phpbbtools/configuration.php, change the values according to your environment

Code: Select all
   var $dbhost = 'localhost'; // phpbb database server, localhost by default
   var $dbport = '3306'; // phpbb database server port, 3306 by default
   var $dbuser = 'root'; // database user name
   var $dbpasswd = 'root'; // database user password
   var $dbname = 'phpbb_db'; // phpbb database name
   var $prefix = 'phpbb_'; // phpbb table prefix


3. Login joomla as admin, Install <package>/plugin/authentication.zip and user.zip
In Plugin management panel, enable Authentication - phpBB3 and User - phpbb3, disable Authentication - joomla and User - joomla

Open joomla front page, login joomla with a phpBB account. You can continue if it works. If error occurs please check the the setting in Step2. If you can not solve the problem, please reverse the operation in this step and stop, otherwise you won't be able to log into joomla any more.

Disable the registration from joomla: Global Configuration -> System -> Allow User Registration => No

4. Copy <package>/phpbb_files/includes/auth/auth_joomla_pbc.php to <phpbb3 root>/includes/auth/auth_joomla_pbc.php

Open auth_joomla_pbc.php, Find

Code: Select all
define( 'JPATH_BASE', $phpbb_root_path.'/../joomla');


Replace the '../joomla' with the relative path of joomla. ( if joomla is installed under <root>/jos/ while phpbb installed under <root>/phb/, the relative path is '../jos')

Login phpbb ACP as admin, General -> Authentication, select joomla_pbc and submit

5. Test
Open 2 browsers, open joomla and phpbb in each.
Register a new phpbb account and login, refresh joomla in another browser, is the login status changed? Logout phpbb, and see if the joomla is logout too.
Login joomla, the refresh phpbb, see if you are logged, then logout joomla, refresh phpbb to see if you are logged out too.



The joomla style rhuk_milkyway for phpBB3.0.2 is also included in this package.

If you have any questions, please feel free to ask in the forum:
viewforum.php?f=4
User avatar
IOsetting
论坛管理员
论坛管理员
 
Posts: 4490
Joined: 2006-10-17 1:48
Location: Lotus City

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby hemanthsharma » 2008-11-20 20:53

Would it be difficult to match the UI of joomla site (template)?

I tried this build and it just works great as for user authentication, etc. Thanks a ton!

The UI of my joomla site and phpbb3 is totally alien to each other. It looks way different. Is there a way I can install a plugin and make phpbb3 fit in my joomla site inside the joomla template?

Or is it always as exhaustive as porting a particular joomla template to phpbb3?

~ H
hemanthsharma
初来乍到
初来乍到
 
Posts: 2
Joined: 2008-11-20 20:48

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby IOsetting » 2008-11-21 16:18

hemanthsharma wrote:Would it be difficult to match the UI of joomla site (template)?
Is there a way I can install a plugin and make phpbb3 fit in my joomla site inside the joomla template?
Or is it always as exhaustive as porting a particular joomla template to phpbb3?

~ H

There is no general way to migrate a style from joomla to phpbb. It is not difficult but it takes time.
You can figure it out if you have some knowledge of HTML and CSS. Or get some designers to work with you.
User avatar
IOsetting
论坛管理员
论坛管理员
 
Posts: 4490
Joined: 2006-10-17 1:48
Location: Lotus City

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby hemanthsharma » 2008-11-21 16:28

Thanks a lot.

I shall see what I can do.
hemanthsharma
初来乍到
初来乍到
 
Posts: 2
Joined: 2008-11-20 20:48

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby doongoan » 2008-11-23 1:08

Thankx alot 4 this important bridge

i`ve done every thing as in the readme
but when i try to disable Authentication - Joomla
i found it not editable
as it can not be disabled

is there a fix for this issue?

Regards
doongoan
初来乍到
初来乍到
 
Posts: 3
Joined: 2008-11-23 1:05

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby doongoan » 2008-11-23 1:28

sorry for my lots of questions
i had another issue now

when i try to login at joomla with my phpbb username and pass
i get this error:
Code: Select all
JAuthentication::__construct: Could not load authentication libraries


my joomla at my site root
site.com/
and my phpbb is at /vb
site.com/vb

i think the problem at the auth_joomla_pbc.php
i tried to use:
Code: Select all
define( 'JPATH_BASE', $phpbb_root_path.'/../');


but it gives the same error

Thanx in advance
doongoan
初来乍到
初来乍到
 
Posts: 3
Joined: 2008-11-23 1:05

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby mymsn » 2008-11-23 11:42

怎么都是夜猫子。 :grin: :grin:
不知道怎么喜欢上phpbb,但喜欢上就丢不开了 :(
我的博客
User avatar
mymsn
技术组成员
技术组成员
 
Posts: 2284
Joined: 2008-02-24 18:13

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby doongoan » 2008-11-23 16:24

Sorry, i don't understand chineese :love:
doongoan
初来乍到
初来乍到
 
Posts: 3
Joined: 2008-11-23 1:05

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby TheWraith » 2008-11-24 18:27

Just i say THANK YOU great work ! But when i try to log in with username and password in phpbb show me blank page
TheWraith
初来乍到
初来乍到
 
Posts: 1
Joined: 2008-11-24 18:26

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby prof » 2008-11-29 5:34

all went well with the bridge until after I logged in and selected joomla_pbc and submitted. I can no longer log in to the forums and get the following error when I try.. Please assist if possible.


[phpBB Debug] PHP Notice: in file /includes/auth/auth_joomla_pbc.php on line 321: require_once(./..//../htdocs/includes/defines.php) [function.require-once]: failed to open stream: No such file or directory

Fatal error: require_once() [function.require]: Failed opening required './..//../htdocs\includes\defines.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\phpBB3\includes\auth\auth_joomla_pbc.php on line 321

I'm testing on a local system before using live on a joomla web site.
prof
初来乍到
初来乍到
 
Posts: 1
Joined: 2008-11-29 5:28

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby a59k » 2008-12-03 21:58

Hello

I have this error

Code: Select all
jtablesession::Store Failed
DB function failed with error number 1146
Table 'episic3_forum.phpbb3_session' doesn't exist SQL=INSERT INTO `phpbb3_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` ) VALUES...


My configuration.php

Code: Select all
...
   var $ftp_root = '';
   var $dbtype = 'mysqli';
   var $host = 'localhost';
    var $dbport = '';
   var $user = 'user';
    var $dbpasswd = 'password';
   var $db = 'forum_forum';
    var $dbname = 'phpbb3_db';
   var $dbprefix = 'phpbb3_';
   var $mailer = 'mail';
....


Please help me
a59k
初来乍到
初来乍到
 
Posts: 2
Joined: 2008-12-03 21:52

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby IOsetting » 2008-12-04 2:21

a59k wrote:Hello

I have this error

Code: Select all
jtablesession::Store Failed
DB function failed with error number 1146
Table 'episic3_forum.phpbb3_session' doesn't exist SQL=INSERT INTO `phpbb3_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` ) VALUES...


My configuration.php

Code: Select all
...
   var $ftp_root = '';
   var $dbtype = 'mysqli';
   var $host = 'localhost';
    var $dbport = '';
   var $user = 'user';
    var $dbpasswd = 'password';
   var $db = 'forum_forum';
    var $dbname = 'phpbb3_db';
   var $dbprefix = 'phpbb3_';
   var $mailer = 'mail';
....


Please help me

Apologies for the confusing. The configuration.php you need to change is that one under <joomla1.5 root>/libraries/phpbbtools/, not the configuration.php under <joomla1.5 root>/. The latter file should not be modified during you installing this bridge.
User avatar
IOsetting
论坛管理员
论坛管理员
 
Posts: 4490
Joined: 2006-10-17 1:48
Location: Lotus City

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby IOsetting » 2008-12-04 2:33

prof wrote:all went well with the bridge until after I logged in and selected joomla_pbc and submitted. I can no longer log in to the forums and get the following error when I try.. Please assist if possible.


[phpBB Debug] PHP Notice: in file /includes/auth/auth_joomla_pbc.php on line 321: require_once(./..//../htdocs/includes/defines.php) [function.require-once]: failed to open stream: No such file or directory

Fatal error: require_once() [function.require]: Failed opening required './..//../htdocs\includes\defines.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\phpBB3\includes\auth\auth_joomla_pbc.php on line 321

I'm testing on a local system before using live on a joomla web site.

What's the absolute paths of your joomla and phpbb3?
You didn't correctly set the relative path value. when this happens, check the relative path in auth_joomla_pbc.php
Code: Select all
define( 'JPATH_BASE', $phpbb_root_path.'/../joomla');


If you can not manage it and feel like reverse the changes but can not login anymore, just remove the auth_joomla_pbc.php, get a copy of auth_db.php and rename it to auth_joomla_pbc.php.
Open this file, FIND
Code: Select all
function login_db

REPLACE WITH
Code: Select all
function login_joomla_pbc

Then after log into ACP, change the auth back to db.
User avatar
IOsetting
论坛管理员
论坛管理员
 
Posts: 4490
Joined: 2006-10-17 1:48
Location: Lotus City

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby uno83 » 2008-12-07 6:43

Hi.

I have installed a new site with Joomla (in /var/www) and phpbb3 (in /var/www/forum). I have setup phpBB3 bridge according to the instructions, and it is almost working. When I login to phpBB, I am also logged in to Joomla, and when I log out from phpBB3, I am logged out from Joomla.
BUT, it is not working in the other direction, if I log in to Joomla, I am not logged in to phpBB, and if I logout from Joomla, I am not logged out from phpBB.
What could cause this problem?
uno83
初来乍到
初来乍到
 
Posts: 2
Joined: 2008-12-07 6:39

Re: [MOD]Simple phpBB3.0 Bridge for Joomla1.5 Build20081108

Postby IOsetting » 2008-12-07 13:31

uno83 wrote:Hi.

I have installed a new site with Joomla (in /var/www) and phpbb3 (in /var/www/forum). I have setup phpBB3 bridge according to the instructions, and it is almost working. When I login to phpBB, I am also logged in to Joomla, and when I log out from phpBB3, I am logged out from Joomla.
BUT, it is not working in the other direction, if I log in to Joomla, I am not logged in to phpBB, and if I logout from Joomla, I am not logged out from phpBB.
What could cause this problem?

Have you modified the <joomla1.5 root>/libraries/phpbbtools/configuration.php with correct values, and enabled the 2 plugins in control panel?
User avatar
IOsetting
论坛管理员
论坛管理员
 
Posts: 4490
Joined: 2006-10-17 1:48
Location: Lotus City

Next

Return to 3.0.X ENGLISH

Who is online

Users browsing this forum: No registered users and 1 guest