FastComments.com

Add Comments to Your Drupal Site

這是 FastComments 的官方 Drupal 模組。

一個將 FastComments 與 Drupal 10/11 整合的 Drupal 模組,提供 widget 區塊、實體欄位整合、SSO(單一登入)以及細緻的權限控制。

儲存庫

在 GitHub 上查看


安裝 Internal Link

  1. 將此模組放在您 Drupal 網站的 modules/custom/fastcomments/ 目錄中(或透過 Composer 安裝:composer require drupal/fcom)。
  2. 啟用此模組:
    drush en fastcomments
    或者透過管理介面在 擴充功能 (/admin/modules) 啟用。

小工具區塊 Internal Link

可以在 結構 > 區塊佈局 (/admin/structure/block) 找到多個區塊:

  • FastComments Widget - 主要的留言小工具。會自動偵測目前的實體。會跳過已經包含 FastComments 欄位的實體(以避免重複)。
  • FastComments Live Chat - 即時串流聊天。可以與同頁面的留言欄並列放置。
  • FastComments Collab Chat - 文字選取註記與討論。
  • FastComments Image Chat - 基於座標的影像註記。
  • FastComments Recent Comments - 顯示整個網站的近期留言。留言數量可設定。
  • FastComments Top Pages - 顯示留言數最多的頁面。

以內容為中心的區塊(Live Chat、Collab Chat、Image Chat)會自動偵測目前的實體,且在非實體頁面上會退回使用基於路徑的識別碼。

多語系 Internal Link

此模組會自動將目前的 Drupal 站點語言傳遞給所有小工具。

權限 Internal Link

  • Administer FastComments - 存取 FastComments 的設定表單。
  • View FastComments - 需要此權限才能查看評論小工具。
  • Toggle FastComments - 允許使用者透過欄位小工具針對每個實體啟用或停用評論。

運作方式 Internal Link

當使用者造訪啟用了 FastComments 欄位的實體時:

  1. FastComments 的 JavaScript 小工具會從 CDN 載入。
  2. 如果已設定 SSO,使用者的 Drupal 身分會傳送給 FastComments。
  3. 一個 <noscript> 回退機制會為沒有 JavaScript 的使用者提供伺服器端渲染的留言(僅限 Live Comments 與 Streaming Chat 模式)。

需要幫助?

如果您在使用 Drupal 模組時遇到任何問題或有任何疑問,請:

貢獻

歡迎任何貢獻!請造訪 GitHub 儲存庫 以取得貢獻指南。