Thursday, January 7, 2010

phpbb drupal bridge how to embedd phpbb into drupal

phpBBforum Integration module provides integration with phpBB3 Forum
6.x-2.0-beta8 provides support of phpBB 3.0.6.
  • phpBB can be completely embedded inside Drupal (version 2.0);
  • phpBB topics can be created from nodes (version 2.0);
  • phpBB comments instead of drupal comments (version 2.0 beta7);
  • can be used on a working site and forum with existing users;
  • authentication and synchronyzation in both directions;
  • automatic creation of users;
  • synchronyzation of account info usernames, passwords, emails, signatures, avatars (for drupal admin id = 1 and phpBB admin id = 2 username, password, email do not sync for security)
  • synchronyzation of profile info when drupal profile module is enabled;
  • synchronyzation of CCK profile fields when drupal content_profile module is enabled (version 2.0, 6.x-2.0-beta8);
  • synchronyzation of roles and groups (version 2.0);
  • support of drupal profile, signatures_forum, avatar_selection, birthdays, content_profile modules;
  • forum can work in the full window, in frame inside drupal or in a drupal page (except for ACP).
The following blocks are provided to integrate phpBB with your Drupal site:
1) phpBBforum: Hidden authentication
Allows forum users to login to your Drupal site and provides advanced
authentication and synchronyzation with the forum.
2) phpBBforum: New forum topics
Display a list of the latest forum topics.
3) phpBBforum: New forum posts
Display a list of the latest forum messages.
4) phpBBforum: Online forum users
Display a list of all on-line forum users.
5) phpBBforum: Forum statistics
Display forum statistics including: number of users, threads, messages,
newest member, etc.
6) phpBBforum: Personal messages
Display your forum personal messages if you are logged in.
7) phpBBforum: Top posters
Display a list of the top posters.
The version 2.0 requires php5.
For discussion about the module please visit forum topic
6.x-2.0-beta8 provides support of phpBB 3.0.6.
You can download changed phpBB 3.0.6 files on the page.
Demo of phpbbforum topic and comments instead of drupal comments

How to make phpBB work in frame
vb - February 16, 2008 - 00:20

1. Go to Administer › Site configuration › phpBBforum settings

phpBB display way:
In the window
X In frame inside Drupal page

Save configuration

2. Go to Administer › Site configuration > Performance
Clear cached data

3. Go to Administer › Site building › Menus › Primary links
See Menu item phpbbforum (disabled)
Enable it.

Save configuration


3. Go to Administer › Site building > Menus > Navigation
See Menu item with blank title in state (Disabled)
You may enable it if you do not want phpbbforum in Primary links

If you enable it your forum page will be with title.
Reset will help to remove the page title if you disable it back.

Main page and link to phpBB in frame is


All links from blocks will have that link instead of real phpbb.

First go
3. Go to Administer › Site building > Menus > Navigation
See Menu item with blank title in state (Disabled)

if you do not see this item then

2. Go to Administer › Site configuration > Performance
Clear cached data

If you see Menu item with blank title in state (Disabled) you may go to

3. Go to Administer › Site building › Menus › Primary links
See Menu item phpbbforum (disabled)

If you do not see it, simple enter it with path phpbbforum
(may be i entered it before but forgot)

A couple of attemts and everything will be ok.

>When i make account from drupal it says: no access to phpbb3 dbase to make account.
Go to demo site and repeat, what it will say?
I do not have this message.

You should see in phpBBforum settings

phpBBforum settings
phpBBforum status

Successfully locating phpBB installation.
Successfully locating sites/all/modules/phpbbforum/includes/phpbb_api.php.
Successfully connected to the phpBB database.
Successfully authenticated phpBB user: admin.

If not, something wrong in your settings and it is no sense to go further.

Add URL aliases. Core module Path must be enabled.

Main page and link to phpBB in frame is


To change this name you may add URL aliases

Add next URL aliases (System path -> URL Alias)

For the path 'forums'

phpbbforum -> forums
phpbbforum/viewtopic.php -> forums/viewtopic.php
phpbbforum/viewforum.php -> forums/viewforum.php
phpbbforum/viewonline.php -> forums/viewonline.php
phpbbforum/memberlist.php -> forums/memberlist.php
phpbbforum/posting.php -> forums/posting.php
phpbbforum/search.php -> forums/search.php
phpbbforum/ucp.php -> forums/ucp.php
phpbbforum/mcp.php -> forums/mcp.php
phpbbforum/faq.php -> forums/faq.php
phpbbforum/report.php -> forums/report.php
phpbbforum/adm/index.php -> forums/adm/index.php

Administer › Site building › URL aliases › Add alias

Existing system path:

Specify the existing path you wish to alias. For example: node/28, forum/1, taxonomy/term/1+2.

Specify an alternative path by which this data can be accessed.
For example, type "about" when writing an about page.
Use a relative path and don't add a trailing slash or the URL alias won't work.

All links from blocks will have that path 'forums' instead of system phpbbforum.

If you prefer name phpbbforum add these aliases

phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php
phpbbforum/viewforum.php -> phpbbforum/viewforum.php
phpbbforum/viewonline.php -> phpbbforum/viewonline.php
phpbbforum/memberlist.php -> phpbbforum/memberlist.php
phpbbforum/posting.php -> phpbbforum/posting.php
phpbbforum/search.php -> phpbbforum/search.php
phpbbforum/ucp.php -> phpbbforum/ucp.php
phpbbforum/mcp.php -> phpbbforum/mcp.php
phpbbforum/faq.php -> phpbbforum/faq.php
phpbbforum/report.php -> phpbbforum/report.php
phpbbforum/adm/index.php -> phpbbforum/adm/index.php

You cannot enter directly
phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php
the paths should be different when creating alias but they can be edited.
First create alias with different paths like
phpbbforum/viewtopic.php -> phpbbforums/viewtopic.php
Save, then edit to the same paths
phpbbforum/viewtopic.php -> phpbbforum/viewtopic.php

It works with or without Clean URLs enabled.

1. If your forum under /phpBB3 your alias cannot be /phpBB3, choose another name.
2. Check in Menus phpbbforum item without title (Disabled).

I installed this on a local test computer using Apache2Triad under localhost and everything worked fine.

1 Installed Drupal
2 Installed phpBB
3 Installed phpBB module
4 Activated the module
5 copied the functions_user file
6 set phpbb settings under the Drupal admin
7 logged off & back on and everything worked.

Drupal 6.4 and phpBB3.0.2 have the same admin name "Dummy" and password.

Installed phpBB3 3.0.2 two ways:
1) Same level as Drupal 6.4
2) Inside Drupal 6.4

I followed the directions in INSTALL.txt and copied over:
1) functions_user.php
2) functions_user-3.01 (and made it functions_user.php)

+/phpbbdrupal (phpBB forum root path: /home/vb/www/
+/root ---------------------> +/phpBB3/
+/includes -----------------> +/includes
******* functions_user.php ----------> functions_user.php (replace or patch)

You should disable phpBBforum Menu item and restore its blank title in Navigation Menu item to (disabled) state
You may need to switch off and on inframe mode.
You may need to clear in Performance Clear cached data.
Do not enable blank phpBBforum Menu item. Reread INSTALL.txt 10) 3., 4.
It is creative process that has a solution, try this game, not seeing a cannot say do 1,2,3.

No comments:

Post a Comment