> 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"](/files/-LTRXo43CA8Nw_Mua7lZ)

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

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

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

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

![Item Comment (Setting 2)](/files/-LTRXo462u0A26MrzgQy)

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

![Item Comment (Setting - 3)](/files/-LTRXo49wlpKCAfrk6Tf)

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

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

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

![Item Comment (Setting - 4)](/files/-LTRXo4BPmNjyWeZLgDf)

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

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