ja:tips:integrate_with_phpbb3
差分
このページの2つのバージョン間の差分を表示します。
ja:tips:integrate_with_phpbb3 [2011-01-14 13:19] – 作成 61.213.142.216 | ja:tips:integrate_with_phpbb3 [2011-01-14 15:43] (現在) – 61.213.142.216 | ||
---|---|---|---|
行 1: | 行 1: | ||
====== phpBB3(の認証)との連携 ====== | ====== phpBB3(の認証)との連携 ====== | ||
===== 特徴 ===== | ===== 特徴 ===== | ||
- | * phpBB の認証システムを用いるので、phpBB にログインしていればDokuWikiに再ログインする必要はない(逆も同様)。もちろんログアウトも同じです。 | + | * phpBB の認証システムを用いるので、phpBB にログインしていればDokuWikiに再ログインする必要ありません(逆も同様)。もちろんログアウトも同じです。 |
* Using phpBB' | * Using phpBB' | ||
* // | * // | ||
行 9: | 行 9: | ||
==== 失われる機能 ==== | ==== 失われる機能 ==== | ||
* ユーザ登録 | * ユーザ登録 | ||
- | * Full name display (phpBB doesn' | + | * フルネームの表示(phpBBがデフォルトでユーザプロフィールにフルネームの情報を持っていません。代わりにユーザ名が表示されます。) |
* メディアマネージャとの連携。Wikiで画像が全く表示されない。(パスの問題?)((現在は完全に動作しているようです。下のコメントセクションを参照して下さい。)) | * メディアマネージャとの連携。Wikiで画像が全く表示されない。(パスの問題?)((現在は完全に動作しているようです。下のコメントセクションを参照して下さい。)) | ||
* Language support | * Language support | ||
行 24: | 行 24: | ||
==== inc/ | ==== inc/ | ||
**inc/ | **inc/ | ||
+ | (エラーが発生するようであれば、コメントセクションにあるように修正して下さい。) | ||
<file php phpbb3.class.php><? | <file php phpbb3.class.php><? | ||
行 212: | 行 213: | ||
==== inc/ | ==== inc/ | ||
- | **inc/ | + | **inc/ |
* utf8_strlen | * utf8_strlen | ||
* utf8_substr | * utf8_substr | ||
行 255: | 行 256: | ||
==== feed.php を編集 ==== | ==== feed.php を編集 ==== | ||
- | Knowing we have just renamed the cache class (see above) and knowing this class is called in feed.php, we also need to rename the calling to make RSS/ | + | cacheクラスの名前を変更した(上記参照)ので、このクラスが呼び出される |
- | Find: | + | |
+ | 変更前: | ||
<code php> | <code php> | ||
$cache = new cache($key, ' | $cache = new cache($key, ' | ||
</ | </ | ||
- | and replace with: | + | 変更後: |
<code php> | <code php> | ||
$cache = new wiki_cache($key, | $cache = new wiki_cache($key, | ||
</ | </ | ||
- | Otherwise you will have a very nice "XML Parsing Error". | + | もしこれを変更しないと |
- | ==== Edit inc/ | + | ==== inc/ |
- | To synchronize phpBB3' | + | phpBBとDokuWikiの日付フォーマットとタイムゾーンを同期するため、inc/ |
- | Search for: | + | 変更前: |
<code php> | <code php> | ||
global $conf; | global $conf; | ||
行 280: | 行 282: | ||
return strftime($format, | return strftime($format, | ||
}</ | }</ | ||
- | and replace it with: | + | 変更後: |
<code php> | <code php> | ||
global $user; | global $user; | ||
行 290: | 行 292: | ||
}</ | }</ | ||
- | So Dokuwiki uses the date configurations of phpBB3. | + | DokuWikiはphpBB3の日付設定を使用します。 |
- | ==== Set configuration variables | + | ==== 変数をセットする |
- | The last thing we have to do is: enable it! The file **conf/ | + | 最後にすることは、今までの変更を適用することです。**conf/ |
<code php><? | <code php><? | ||
/* | /* | ||
行 303: | 行 305: | ||
$conf[' | $conf[' | ||
?></ | ?></ | ||
- | $phpbb_root_path | + | $phpbb_root_path |
I did this, but it wouldn' | I did this, but it wouldn' | ||
- | ===== phpBB3 | + | ===== phpBB3の設定 |
- | ==== Cookie Settings | + | ==== cookieの設定 |
- | In order for the above integration to work well, it is important that the cookie settings in the phpBB3 ACP (admin control panel) | + | 上で行った変更がうまく動くようにするためには、phpBB3のACP (admin control panel)でのcookieを正しく設定することが重要です。例えば、cookieの設定が間違っていると、まずphpBB3にログインし、あるページをロードするとDokuWikiから強制的にログアウトさせられます。 |
- | If your phpBB3 | + | もし、phpBB3を"**%%www.yourdomain.com/ |
- | Instead, set the "Cookie path" | + | |
< | < | ||
- | ==== Security Settings | + | ==== セキュリティ設定 |
- | An other thing to check in the phpbb3 | + | phpBB3のACPで他にチェックすることは、セキュリティ設定の“リファラ設定”です。もし、この設定が“ホストとスクリプトパス”になっていると、上記の間違ったcookieパスの設定のように、うまく動作しません。このため、“リファラ設定”では“ホストとスクリプトパス”または“なし”を選択して下さい。 |
- | Be care... | + | |
行 326: | 行 326: | ||
- | ===== Credits | + | ===== クレジット |
- | * Thanks to [[http:// | + | * phpBBの公式フォーラムの[[http:// |
- | ===== Comments | + | ===== コメント |
* // | * // | ||
行 405: | 行 405: | ||
* I had some problems getting this integration to work, it would not authenticate. But, I found the problem: If $_SERVER[' | * I had some problems getting this integration to work, it would not authenticate. But, I found the problem: If $_SERVER[' | ||
| | ||
- | * I found a solution to make it work with the most recent version | + | * 私は、DokuWikiの最新バージョン(Anteater)でこれを解決する方法を見つけました。要するに、クラスが宣言される前にグローバル変数を宣言します。 |
- | * At the beginning of the file phpbb3.class.php | + | * phpbb3.class.php |
<code php><? | <code php><? | ||
行 454: | 行 454: | ||
{ | { | ||
- | HERE THE REST OF THE ORIGINAL | + | この下には、手順の一番上にある |
- | + | ||
- | * I don't really understand why it works now, so I haven' | + | * 今、私はこれがなぜうまく動作するのか分からないので、セキュリティの問題が起こるのを避けるために手順には加えていません。--- //Eivind 2010/09/12 // |
ja/tips/integrate_with_phpbb3.txt · 最終更新: 2011-01-14 15:43 by 61.213.142.216