> For the complete documentation index, see [llms.txt](https://xoops.gitbook.io/xoonips-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xoops.gitbook.io/xoonips-tutorial/jp/4admin/41readme/417item_comment_xoonipssite_policiesitem_informatio.md).

# 1.7. コメント機能

コメント機能を利用するには外部モジュールのaltsys,d3forumモジュールのインストールが必須です。

d3forumモジュールであらかじめフォーラムを作成しておくことも必須です。

* ディレクトリ名の設定

  コメント機能で利用するd3forumのディレクトリ名を指定します。
* フォーラムIDの設定

  あらかじめコメント用にd3forumで作成したフォーラムID番号を指定します。

!["Item Comment"](https://1238315904-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6Mk8IMfCUPLQPG759%2Fsync%2Fb934dfbd3f04f712016b720032705b8b43d3a06a.png?generation=1601839806957416\&alt=media)

**Figure 4.9.** **コメント機能の設定**

その他に必要な設定として

altsysモジュールのテンプレート編集機能等を利用してxoonips\_detail.htmlの最終行を修正します。

先頭の<{\* 3文字と最後の3文字 \*}> を削除します。

![Item Comment (Setting 2)](https://1238315904-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6Mk8IMfCUPLQPG759%2Fsync%2Fddf63c61413c6c4a57f1c5ce2cf997e9f0220a06.png?generation=1601839772213623\&alt=media)

**Figure 4.10.** **コメント機能の設定2**

![Item Comment (Setting - 3)](https://1238315904-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6Mk8IMfCUPLQPG759%2Fsync%2Ffadd9a6feb2f573f80a6318376e514f683927ce9.png?generation=1601839788464746\&alt=media)

**Figure 4.11.** **コメント機能の設定3**

d3forumのフォーラム管理画面で「コメント統合時の参照方法」の欄に

**{XOOPS\_URL}/modules/xoonips/detail.php?item\_id=%s**と入力します。

![Item Comment (Setting - 4)](https://1238315904-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6Mk8IMfCUPLQPG759%2Fsync%2F5e7832a215abc1504bcd573addabb319d4ae652d.png?generation=1601839780166593\&alt=media)

**Figure 4.12.** **コメント機能の設定4**

&#x20;アイテムの詳細画面でアイテムに対してコメントを付けることが出来るようになります。
