phpBBforum
新規phpBB3をインストールして、それをDrupalに導入したときの記録です。
Drupalバージョン
Drupal 6.22
インストールバージョン
phpBB-3.0.9 (掲示板本体)
phpbbdrupalbridge 3.0.9 (phpBB3用モジュール)
phpBBforum Integration module 6.x-2.0-rc6(Drupal用モジュール)
Drupalに、モジュールphpBBforumだけをインストールしてみましたが、「phpbb_api.phpがない!」という感じのエラーが出て、管理画面での設定作業が上手く進みませんでした。
Googleで「phpbb_api.php」を検索して色々やってみても上手くいきませんでした。
で、モジュールphpBBforumの中にあるreadme.txtを読んで、ようやく作業の進め方が見えてきました。
readme.txtって、結構大事だったのですね。(これまでインストールしたモジュールは、ほとんど読む必要はありませんでしたが・・・)
以降、phpBBforum Integration moduleに添付されているreadme.txtファイルをベースに記憶をたどっていきたいと思います。
phpBBforum Integration module
==============================================================================
phpBBforum Integration module (C) 2007-2011 by Vadim G.B. (http://vgb.org.ru)
==============================================================================
phpBBforum Integration module provides integration with phpBB3 Forum
http://www.phpbb.com/.
The module requires php5 to run.
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: Recent forum topics
Display a list of the latest updated 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.
8) phpBBforum: New forum topics
Display a list of the new forum topics.
Installation
------------------------------------------------------------------------------
The phpBB Drupal bridge consits of two parts:
I. phpBB phpbbdrupalbridge MOD;
II. Drupal phpBBforum module.
DrupalにphpBB3を導入するためには、DrupalにモジュールphpBBforumをインストールするだけでは足りません。
Drupal用のモジュールの他に、phpBB3本体をインストールしておく必要があります。
phpBB3本体をインストールの参考 : http://www.homepage.ok-jp.com/phpBB3_guides
更に、phpBB3には、phpbbdrupalbridgeというphpBB3用のモジュール(MODと表記される)をインストールする必要があります。
I. phpbbdrupalbridge MOD installation
1) Install phpbbdrupalbridge MOD with AutoMOD or manually;
2) Configure phpBB settings.
1.1. Installing phpbbdrupalbridge MOD with AutoMOD
これは、phpBB3のAutoMODというモジュールを利用してphpbbdrupalbridgeモジュールを導入する方法です。
私は、新規にphpBB3モジュールを導入したため、AutoMODは導入されていませんでした。
phpbbdrupalbridge導入の為に、わざわざAutoMODをインストールするのは面倒だったので、この方法ではなく「1.2. Manual phpbbdrupalbridge MOD installation」の方法で行ないました。
ただ、さまざまなサイトを眺めていて私が持った印象では、色々なモジュールを導入してphpBB3を充実させたいと考えている場合は、このAutoMODは一番初めにインストールしておいた方が良いような感じがしました。
1) Download the phpbbdrupalbridge-3.0.9.zip MOD from
http://phpbb.drupalbridge.org/download;
2) In phpBB ACP go to tab AUTOMOD and upload phpbbdrupalbridge-3.0.9.zip MOD or
Unpack the phpbbdrupalbridge-3.0.9.zip archive and copy it to the /phpBB3/store/mods/
directory.
3) In phpBB ACP AUTOMOD tab press Intall.
1.2. Manual phpbbdrupalbridge MOD installation
AutoMODはモジュールを使用せぜ、手作業でインストールする方法です。
この場合、シェル(?)からコマンドを打ち込んで、ファイルにPATCHを当てる(PATCH用ファイルを用いて、モジュール導入に必要な修正を自動的に行なう)必要があります。
そのコマンドを打ち込めない場合は、ファイルをサーバーにアップロードする前に、ダウンロードファイルを解凍した中に含まれるinstall_phpbb.xml を見ながら、種々のファイルを手動で修正しなければならないようです。
install_phpbb.xmlを見て、私はゾッとしました。でも、phpBB3へのモジュールのインストールとは、そういうことのようです。
(そう考えると、AutoMODを導入しておく方が良いのかも知れません。それを導入するには、同じような作業が必要だと思われます。なので、私は、PATCHで対応することにしました。)
1) Download the phpbbdrupalbridge-3.0.9.zip MOD from http://phpbb.drupalbridge.org/download;
2) Unpack the phpbbdrupalbridge-3.0.9.zip archive directory.
3) Copy directory and files according instructions in install_phpbb.xml and the scheme below.
ダウンロードしたファイルを解凍し、各ファイルをサーバー上に導入しているphpBB3の該当フォルダーにアップロードします。
+/root ---------------------> +(phpBB root path: /home/vb/www/example.com/public_html/phpBB3/)
+/images -------------------> +/images (/home/vb/www/example.com/public_html/images)
+/includes -----------------> +/includes
+/phpbbdrupalbridge
phpbb_api.php phpBB api file name: phpbb_api.php
+/styles -------------------> +/styles
+/prosilver-embed ----------> +/prosilver-embed
+/subsilver2-embed ---------> +/subsilver2-embed
+/subsilver2 ---------------> +/subsilver2
functions_user-embed-3.0.9.patch --> +/phpBB3/functions_user-embed-3.0.9.patch
(for functions_user.php only)
phpBB-embed-3.0.9.patch ------------> +/phpBB3/phpBB-embed-3.0.9.patch
(for the whole phpBB including patch for functions_user.php)
4) Apply patch to phpBB
私に必要なのは、次の1か2か?
よく分からないので、全てが含まれるような感じがある 2 の phpBB-embed-3.0.9.patchで対処することにしました。
1. If you do not want to use embedded mode "In the Drupal page", you should
apply functions_user-embed-3.0.9.patch only
copy ... root/functions_user-embed-3.0.9.patch to .../phpBB3/functions_user-embed-3.0.9.patch
これの内容は、phpBB-embed-3.0.9.patch に含まれているようです。
2. If you want to use embedded mode, you should apply phpBB-embed-3.0.9.patch
The patch is made from clean phpBB3-3.0.9.
All changes made by the patch do not affect the standalone behavior of phpBB3.
3. Go to phpBB directory.
シェルにてコマンドを打ち込み、phpBB3をインストールしたディレクトリに移動します。
cd /phpBB3
4. If you are upgrading from previous version of the module, you may wat
to restore the original
phpBB source files from previous patch.
patch -p0 -R < phpBB-embed-3.0.8.patch
私の場合は新規導入で、このモジュールの古いバージョンは導入されていないのでこのコマンドはスキップしました。
5. Patch phpBB. Choose appropriate filename for your patch and version of
phpBB.
patch -p0 < phpBB-embed-3.0.9.patch
See http://drupal.org/patch/apply for details or if something is wrong.
実行すると、特に問題なくすんなりと処理は終了しました。
6. Remove patch from phpBB root directory
適当なツールを使って、functions_user-embed-3.0.9.patch、phpBB-embed-3.0.9.patch、phpBB-embed-3.0.8.patch
を削除します。
5) Copy .../root/images directory to Drupal directory.
解凍したときに生成されたimagesフォルダーをDrupalをインストールしているフォルダーにコピーしました。
imagesフォルダーをコピーするといっても、保存されているファイルはspacer.gif ファイルだけです。
もし、コピーしないのなら、次のファイルを修正する必要があるみたいです。が、修正するよりは、ファイルをコピーする方が簡単です。
If you do not want it, you will have to edit phpBB file editor.js for your phpBB
theme
(/phpBB3/styles/prosilver-embed/template/editor.js) and enter the url,
where the file spacer.gif resides.
(function colorPalette(dir, width, height) line 335)
The relative path img src="/images/spacer.gif" provides access to spacer.gif both
in standalone an inside Drupal mode
only if you copy /images directory to Drupal directory.
Do not forget to add a line
Disallow: /images/
to your robots.txt file.
あまり重要ではないような気がするのですが、クローラーにアクセスさせないように、robots.txtに「Disallow: /images/」を追加しろということのようです。
個人的には、.htaccessで直読み禁止にするとか、或いは、/images/フォルダーに空のindex.htmlファイルをセットするとかいう対応の方が必要かなとも思いますが、実際は、いずれの対応もせずに放ってあります。
6) If you cannot patch the phpBB files you may download patched phpBB files from
http://phpbb.drupalbridge.org/download.
1.3. Configuration of the phpBB forum
phpBB3のセッティングです。
1) Go to phpBB Administration Control Panel > General > Server URL settings
Server URL settings
Domain name:
The domain name this board runs from (for example: www.example.com).
In drupal settings.php variable $base_url and Domain name must be both with or without
www.Domain name: www.example.com
$base_url = 'http://www.example.com';
or
Domain name: example.com
$base_url = 'http://example.com';
Script path: /phpBB3
The path where phpBB is located relative to the domain
name, e.g. /phpBB3.
If you have drupal and phpBB3 installed in subdirectory you must enter
Script path: /subdirectory/phpBB3
Force server URL settings.
Force server URL settings: (*) Yes () No.
2) Cookie settings
Cookie domain: .example.com
Cookie name: [random name]
Cookie path: /
Note: your domain name .example.com with leading dot.
3) User registration settings
Account activation: () Disable (*) None () By User () By Admin
Choose () None or () By User
If you set By User, user must to login first to phpBB and after that you will see
that he is registered.
Set to None for test purposes.
Username length:
Minimum and maximum number of characters in usernames. [1] [30]
Password length:
Minimum and maximum number of characters in passwords. [5] [30]
4) Security settings
Check IP against DNS Blackhole List: () Yes (*) No
You may switch off
Check e-mail domain for valid MX record: () Yes (*) No
If enabled, the e-mail domain provided on registration and profile changes is checked
for a valid MX record.
5) Go to phpBB Administration Control Panel > General > Load settings
Session length: 86400
Sessions will expire after this time, in seconds.
Set this value according your needs.
6) Go to phpBB Administration Control Panel > Styles and install needed embed styles
インストールする前に、phpBB3日本語翻訳データ?を導入したときに追加されたであろう日本語用イメージデータをコピーしておきました。
/styles/prosilver/imageset/jaをprosilver-embed内の同階層にコピー
/styles/subsilver2/imageset/jaをsubsilver2-embed内の同階層にコピー
その後、インストールすればよいと思います。
私は、それをしないでインストールし、「なんか画像のボタンが少ないな・・」と思って、あれこれ考えて、この手順にたどり着きました。
既にインストールしてしまった後に気がついたので、jaフォルダーをコピーしても、それが反映されずに困りました。
やったことは、管理画面にてスタイルprosilver-embedとsubsilver2-embedを削除し、再度インストール。
削除したらファイルが消滅するのかと心配しました(バックアップは念のために取得しました)が、未インストールのところに表示されるように変わっただけで、その状態から、再度、インストールをクリックすると、インストールができました。
一応、次の7)で書かれているキャッシュのクリアというのもやりました。
prosilver-embed Copyright: (C) phpBB Group, 2007 Install
or/and
subsilver2-embed Copyright: (C) 2005 phpBB Group Install
In the Install style make sure that the style is active. Do not make it default.
7). Clear phpBB cache.
You should revise all settings that may affect the behavior of the module.
何かの拍子に、キャッシュが残っているために、ACP(管理画面)にログインできなくなることがあります。
そのときは、あわてず、FFFTPなどのツールで cache/ディレクトリ にアクセスし、cache/ディレクトリ内の.htaccess以外のファイルを削除すれば良かったです。
readme.txtには書いていませんが、phpBB3を新規導入した場合は、この段階で、install/フォルダが残ったままになっている場合があります。phpBB3の画面を操作すれば、いちいち「install/を削除しないと掲示板にはアクセスできない」という意味のメッセージが表示されるのですが、「あとでやろう」と考えて放置したまま、Drupalの対応へ移ってしまうと、痛い目に合います。
ちなみに、私は、「install/」を削除しなければ、phpBB3には直接アクセスできなくなり、Drupal経由のアクセスに限定できるだろう・・・ と考え、意図的に「install/」フォルダーを残して、エライ目に合いました。
phpBB3のphpbbdrupalbridgeモジュールは、phpBB3の「install/を削除しないと掲示板にはアクセスできない」というエラー(ワーニング)に対応していないようで、この状態のまま、DrupalにphpBBforumモジュールを正しくインストールすると、php本体からのエラーだと思うのですが、「サーバーエラーが発生しました」というメッセージが表示され、DrupalのphpBBforum関連の画面が動作しなくなります。
もし、phpBBforum関連のブロックを全画面に導入していた場合は、Drupal自体が正常に動作しなくなります。
phpBBforum関連の作業で、Drupalが動作しなくなったときは、
(1)phpBB3の「install/」を確認し、存在すれば削除する
または、
(2)phpBB3のphpbbdrupalbridgeモジュールの中(includes/phpbbdrupalbridge/)にある「phpbb_api.php」を一時的に削除する
とDrupalは動作するようになります。
特に、(2)の「phpbb_api.phpを一時的に削除する」という対応は、phpBBforumのインストール関連作業でDrupalがサーバーエラーなどになって動作しなくなったときの「とりあえずやってみる対応」として記憶しておくと良いと思います。
II. Installing phpBBforum module
ここからが、Drupalへのモジュール導入作業になります。
1. Download the phpBBforum module from http://drupal.org/project/phpbbforum
Unpack the archive.
By default, the phpbbdrupalbridge MOD installs phpbbdrupalbridge api files
into the phpBB3/includes/phpbbdrupalbridge/ directory.
If you want, you may move it to the sites/all/modules/phpbbforum/includes/ directory.
You should use only one copy of /phpbbdrupalbridge directory.
Module -------------------------> Your site paths
(Drupal base path: /home/vb/www/example.com/public_html)
+/phpbbforum ----------------------> +/sites/all/modules/phpbbforum
(phpBB root path: /home/vb/www/example.com/public_html/phpBB3/)
+/includes (Path to phpBB api file: sites/all/modules/phpbbforum/includes/)
+/phpbbdrupalbridge
phpbb_api.php phpBB api file name: phpbb_api.php
or
MOD -----------------------------> Your site paths
+/root -------------------------> +(phpBB root path: /home/vb/www/example.com/public_html/phpBB3/)
+/includes -------------------> +/includes
+/phpbbdrupalbridge
phpbb_api.php phpBB api file name: phpbb_api.php
たぶん、ここで書かれていることは、Drupalのモジュールは通常通りにインストールする。
phpbb_api.phpの導入先は、phpBB3の「phpbbdrupalbridge」モジュールに導入するか、Drupalのphpbbforumモジュール導入時に「/includes/phpbbdrupalbridge」フォルダーを作成し、そこに導入するかの2通りがあると説明しているのだと思います。
どこに導入したかは、Drupalの管理画面のphpbbforum設定で指定できるので大した問題ではないと思います。
もともと、phpbb_api.phpはphpBB3の「phpbbdrupalbridge」にあるものですから、普通に考えると、後者の方式(phpBB3のphpbbdrupalbridgeモジュール内のものを指定して用いる)という対応になると思います。(私は、そう対応しました)
なぜ、ここで、わざわざDrupalモジュール内に追加する方法を説明しているのかは、現在のところ、私は理解できていません。
以下、しばらく、Drupalモジュールの通常のインストール作業と同様のことが書かれています。
2. Copy phpbbforum directory and files
1) Copy phpbbforum directory to your modules directory.
sites/all/modules/phpbbforum
3. Install and setup phpbbforum module
1) To test how you will be authenticated, login to your phpBB forum as admin.
2) Install phpbbforum module as usual.
Open new window in browser with your Drupal site, login as admin,
navigate to Administer >> modules and enable the phpBBforum and profile module.
3) Updating from the previous version
0. Backup
1. Disable the module
2. Remove sites/all/modules/phpbbforum directory
3. Copy the new phpbbforum directory to your modules directory
4. Enable the module
5. If Drupal Database updates is not up to date, run update.php
6. Go to Administer >> Site configuration >> phpBBforum settings
7. Clear Path to phpBB api file and Save configuration
The module will find the new location of phpbb_api.php in /phpbbdrupalbridge directory.
ここまでが、Drupalモジュールの通常のインストール作業になると思います。
ここからが設定の説明です。
4) Go to Administer >> Site configuration >> phpBBforum settings.
Navigate to phpBBforum settings and enter the path to
phpBB root (path to forum's config.php file).
(phpBB root path: /home/vb/www/example.com/public_html/phpBB3/)
Save settings and ensure that phpBBforum successfully connected
to the phpBB database and you are authenticated.
Your path settings should look like this
phpBB forum root path:
phpBB3をインストールしているパス
/home/vb/www/example.com/public_html/phpBB3/
Path to forum directory. Enter the full directory path where phpBB is installed.
Path to phpBB api file:
phpbb_api.phpを設置しているパス
sites/all/modules/phpbbforum/includes/
Enter the full directory path where phpBB api file is located.
Leave blank or clear for standard location.
私の場合は、phpBB3のモジュールとして導入したphpbbdrupalbridgeに同梱されているphpbb_api.phpを利用したのでphpBB3のphpbbdrupalbridgeのパスを指定しました。
phpbb_api.phpは、恐らくphpbbdrupalbridgeの各ファイルを使用しているのですが、phpbb_api.phpとphpbbdrupalbridgeの関連付けの設定をするところがないため、phpBB3のモジュールとしてphpbbdrupalbridgeを導入し、そのphpbb_api.phpを利用する形を標準と考えた方が良いと思っています。
phpBB api file name:
phpbb_api.php
Enter phpBB api file name.
デフォルトで、phpbb_api.phpが表示されます。
特に意図がなければ、そのままで良いと思います。
5) In order to run phpBB inside of drupal page select appropriate mode:
(To run correctly clean URLs must be enabled.)
クリーンURLを稼動させる必要があるようです。
phpBB display way:
In the window
In frame inside Drupal page
X In the Drupal page
Set other settings and Save configuration.
phpBB3を表示させる方法で、Drupalのページとして表示するを選択するように書かれています。
6) Ensure that corresponding profile.module fields exist.
If necessary create profile.module fields that match with
phpBB profile fields.
ユーザのプロフィールをphpBB3とDrupalと一致させるときに必要なのかな?
よく分からないので対応していません。
7) Navigate to Blocks.
Enable phpBBforum: Hidden authentication
block.
Configure its visibility settings
ブロックの設定で、Hidden authentication blockを有効化しろということだと思います。
Show block on specific pages:
* Show on every page except the listed pages.
Pages:
user/reset/*
user/password
ブロックを表示しないページの設定として、上の2つを追加します。
このブロックは、表示されないブロックです。
私は、色々と稼動テストをした後で、この説明の対応を読み飛ばしたことに気付き、設定を追加しました。
なので、この設定は必要ないのではないかという印象を持っているのですが、書いてあるのでとりあえず設定しました。
ただ、このブロックを有効にすると、Drupalに表示されたphpbb3関連のページで、時折行なわれるリダイレクトが上手くいかなくなりました。
そこで、phpBB redirectsの設定をUsing phpBB meta refreshとしていたのをImmediate redirectに変えてみたところ正常に稼動するようになりました。
次の説明はよく分からないので無視して、このブロックを有効にしました。
Do not disable it in the future if you want advanced synchronization.
Enable the phpBBforum blocks you want to use (optional).
8) Setup link to phpbbforum page.
1. Try link http://example.com/phpbbforum
ブラウザでDrupal配下のphpbbforumディレクトリ指定して表示させます
2. If page phpbbforum is not found, Go to Administer >> Site configuration >
Performance
Press Clear cached data
もし、表示されなければ、Drupalのキャッシュをクリアする
私の場合、これでも表示されなかったのですが、update.phpを実行したら、表示されるようになりました。(モジュールのインストールが上手くいかないときは「update.phpを実行しなさい」という記述が、readme.txtのどこかにあったような気がします。)
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.
たぶん、http://example.com/phpbbforumをナビゲータに表示させるかという説明だと思います。
適当にすればよいと思います。
4. Go to Administer >> Site building >> Menus >> Primary links
Enter Menu item phpbbforum.
Main page and link to phpBB in page is
phpbbforum
これも、たぶん、http://example.com/phpbbforumをメニューに表示させるかという説明だと思います。
適当にすればよいと思います。
To change this name you may add URL aliases.
Add next URL aliases (System path -> URL Alias)
For the path 'forums'
次に、URLエイリアスの設定のところで、次の内容を追加します。
phpbbforum -> forums
phpbbforum/index.php -> forums/index.php
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: http://example.com/phpbbforum
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.
It works with or without Clean URLs enabled.
9) To setup content submission to phpBB forum
1. Go to Content types > Edit your content type
Set in section phpBBforum submission settings
Drupal to phpBB submission:
( ) Disabled
(*) Enabled
2. (Drupal 6 only) To enable phpBB comments in the node, set Display below the
post in the setting:
Location of phpBB topic comments:
( ) Display only on the phpBBforum page
(*) Display below the post
If you want to display both Drupal and phpBB comments, you should change the setting:
Display Drupal comments:
(*) Display only phpBB comments
( ) Display both Drupal and phpBB comments
3. (Drupal 6 only) To display the phpBB topic comments in the node,you should insert in your theme in node-your_content_type.tpl.php these lines
<?php if ($phpbbforum_comments): ?>
<div id="phpbbforum-node-comments"><?php print $phpbbforum_comments; ?></div>
<?php endif; ?>
For the Garland theme you can use the example file garland.node-story.tpl.php.
Rename it to node-story.tpl.php and copy to the themes/garland directory.
よく分からないけど、Drupalの使用中テーマの ~node~.tpl.php のようなテンプレートの適当なところに、ここで説明している記述を追加しておきました。
ただ、今のところ、これが、何に影響しているのかは分かっていません。
4. Theming
You should realize that on phpbbforum page there will be css conflicts
between Drupal and phpBB css files.
The module is not responsible for that. You will have to resolve the css issues
yourself.
For the theming of the phpbbforum page the module provides:
1) two starter phpBB styles:
prosilver-embed
subsilver2-embed
2) file phpbbforum.css
3) default starter css files for your drupal theme for phpBB styles:
garland-phpbbforum-prosilver.css
garland-phpbbforum-subsilver2.css
bartik-phpbbforum-prosilver.css (Drupal 7 only)
bartik-phpbbforum-subsilver2.css (Drupal 7 only)
phpbbforum-prosilver.css
phpbbforum-subsilver2.css
You can copy this files to the drupal theme directory and customize them individually
for the pariticular theme.
In this case these default css files is not used.
4) file phpbbforum.theme.custom-sample.inc and two functions in it
phpbbforum_set_style_example_embed
phpbbforum_style_example_embed
If you use your own phpBB style then:
a) rename phpbbforum.theme.custom-sample.inc to phpbbforum.theme.custom.inc
b) Replace 'example' with the name of your phpBB theme
c) uncomment the suggested lines according your theme origin (prosilver or subsilver2)
or write your own code.
If you do not provide these function the module analyzes style name.
If your phpBB style is created from prosilver and its name contains string "prosilver"
or starts with "pro" the module treats this style as prosilver.
In other cases the module treats this style as subsilver2.
In these cases you do not need to create and edit these functions.
The styles prosilver-embed and subsilver2-embed are used only running phpBB inside
Drupal page.
The phpBB administrators or phpBB users should select only original styles prosilver
or subsilver2.
If you have your own custom style example, you should provide the style example-embed
(or example_embed)
and it should be active in order to run inside Drupal.
5. Miscellaneous
Need to set manually define('PHPBB_SEO_TOOLKIT', 1); in phpbb_api.php if you use
this modification of phpBB3.
phpbb_api.phpに記述を追加する必要があるようです。
ただ、追加しましたが、変化がわからず、また、名称に「SEO」という言葉が使われているので、とりあえずはずしています。
6. Hints
Your phpBB forum should be installed in
subdirectory of Drupal installation directory
in order to run inside Drupal page.
For example, it is /phpBB3. But you may use your own name, but not /phpbbforum.
phpBB3はDrupa配下のディレクトリに導入し、そのフォルダ名に「phpbbforum」は使ってはいけないということのようです。
Do not think that the embedded inside Drupal phpBB will work for your themes right
out of the box.
Install first locally and ensure that with your settings it works as you expect.
Setting up the module for the first time use Garland (Bartik) in Drupal and prosilver
in phpBB themes
instead of your custom themes.
Do not use exotic layout you will never use on the production site just to test
the module.
Do not use symlinks to phpBB root if you use "In the Drupal page" mode.
Do not use domain name with localhost http://localhost.example.com.
Start learning and testing the module with layout that is similiar to your layout
on production site.
Use at you risk on production site.
------------------------------------------------------------------------------
Module written by Vadim G.B. vb on http://drupal.org, http://drupal.ru
------------------------------------------------------------------------------
たぶん、説明の中に出てこなかったと思うので書いておこうと思うことがあります。
Drupalのphpbbforum 設定のSelect master registration
systemは phpBB master ではなく、Drupal master を用いるように設定しています。
これに伴って、マスタ管理のメインはDrupal側になるのだと思っています。
ただ、PHPBB3内で表示されるログインページや新規ユーザ登録ページやパスワード忘れページなどは、phpbb3のものが表示され、動きに統一感がありません。
PHPBB3の管理画面で、phpbbdrupalbridgeの設定で対応できそうな気もするのですが、知識不足のためだと思うのですが、管理画面にphpbbdrupalbridge関連のことを表示されることがどうしてもできませんでした。
そこでphpBB3のテンプレートやFunction.phpなどを修正して、ACPログイン関連以外は、全部、Drupalのシステムのものを用いるように修正しました。この内容は、記載するのが面倒なので省略します。
参考 Drupalの設定

Trackback URL
- admin's blog
- ログイン(登録)してコメントを投稿

コメント
9 11月 2008
2日 2時間
インストール作業の前に、Drupalのキャッシュ機能は、OFFにしておいた方がよさそうです。
phpBBのテンプレートを触ったりしたときに、反映したり、反映しなかったりして、自分の作業がどのようにシステムに影響しているのが分からなくなって、混乱してしまう可能性大です。
9 11月 2008
2日 2時間
サイドのエリアの各ブロックは、表示スペース確保の為、フォーラム関連ページでは表示しないように設定しました。
9 11月 2008
2日 2時間
当サイトにインストールしてみました
http://www.homepage.ok-jp.com/forums/
次のところで、not found になって少し手間取りましたが、キャッシュクリア、update.phpを2順くらいやると表示されるようになりました。
その理由などはよく分からず説明できませんが、2サイトに導入して、同じような感じで2サイトともにインストールできたので、この手順で大丈夫っぽいです。
ブラウザのキャッシュの問題かとも思ったのですが、ここで、not found になっているうちは、エリアスの登録ができないので、そうではないようです。
恐らく、Drupalのキャッシュの問題でもないと思います(キャッシュを無効にしているので)。
ということで、update.phpの実行によって、解決しているのではないかと思っています。
9 11月 2008
2日 2時間
phpBB3へのAutoMODモジュールの導入は、やってみると、非常に簡単でしたので、これを使わない手は無いと思いました。
phpBB3へのAutoMODモジュールの導入手順は、次のページで紹介していますので参考にして下さい。
http://www.homepage.ok-jp.com/blog/20111030268