FastComments.com

Drupal 사이트에 실시간 댓글 추가

설치 Internal Link

FastComments Drupal 모듈은 Drupal의 기본 댓글 기능을 빠르고 실시간 댓글 시스템으로 대체합니다. 이 모듈은 drupal.org에 게시됨이며 Drupal 10 및 11에서 작동합니다.

설치 방법은 두 가지가 있습니다.

Composer로 설치

composer require drupal/fcom
drush en fastcomments

수동 설치

Download the module from drupal.org/project/fcom and place it in your site's modules/custom/fastcomments/ directory. Then enable it with drush en fastcomments, or from the admin UI at Extend (/admin/modules).

참고! 이 모듈은 Drupal 코어 (user and field). 다른 Drupal 모듈이나 라이브러리는 필요하지 않습니다.

모듈이 활성화되면 Configuration 섹션으로 이동하여 Tenant ID와 API Secret을 설정하세요.

위젯 블록 Internal Link

이 모듈은 Structure > Block layout (/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)은 현재 엔티티를 자동으로 감지하며, 엔티티가 아닌 페이지에서는 경로 기반 식별자로 대체됩니다. 즉, 추가 설정 없이 taxonomy 페이지, views, 커스텀 라우트에서 작동합니다.

콘텐츠 유형 필드 Internal Link


대부분의 사이트에서 댓글을 추가하는 가장 쉬운 방법은 FastComments 필드를 콘텐츠 유형에 추가하는 것입니다. Structure > Content types > [type] > Manage fields로 이동하여 필드를 추가하세요.

Each entity that has the field gets:

  • 편집자가 각 엔티티에서 댓글 기능을 켜거나 끌 수 있는 상태 토글.
  • 선택적 사용자 지정 식별자로, Drupal 엔티티 경로에 묶여 있지 않은 안정적인 ID를 사용할 수 있습니다.

The main FastComments Widget block knows about this field, and will skip entities that already have it attached. That way you can mix per-entity comments with the block without seeing the widget twice on the same page.

권한 Internal Link

이 모듈은 People > Permissions에서 역할별로 할당할 수 있는 세 가지 Drupal 권한을 추가합니다.

  • Administer FastComments - /admin/config/content/fastcomments에 있는 FastComments 설정 양식에 대한 액세스.
  • View FastComments - 댓글 위젯을 보려면 필요합니다. 이 권한이 없으면 위젯이 렌더링되지 않습니다.
  • Toggle FastComments - 필드 위젯을 사용하여 사용자가 엔터티별로 댓글을 활성화하거나 비활성화할 수 있도록 허용합니다.

기본적으로 administer site configuration 권한을 가진 사용자만 FastComments 설정을 변경할 수 있습니다. 방문자가 위젯을 보게 하려면 익명 사용자 및 인증된 사용자에게 View FastComments 권한을 부여하세요.

다국어 Internal Link

이 모듈은 현재 Drupal 사이트의 언어를 모든 FastComments 위젯에 자동으로 전달합니다. Drupal 사이트가 다국어로 구성된 경우, 댓글 UI는 추가 구성 없이 일치하는 언어로 렌더링됩니다.

이것은 모든 위젯 유형에 적용됩니다: Live Comments, Streaming Chat, Collab Chat, Image Chat, Recent Comments, 그리고 Top Pages.

EU 데이터 저장 위치 Internal Link

If your FastComments account is hosted in the EU, update two settings at Administration > Configuration > Content > FastComments:

  • CDN URL - https://cdn-eu.fastcomments.com
  • Site URL - https://eu.fastcomments.com

You'll also want to pull your Tenant ID and API Secret from the EU dashboard at eu.fastcomments.com/auth/my-account/api instead of the default US dashboard. Everything else in the module works the same.

맞춤화 Internal Link


FastComments는 귀하의 사이트에 맞게 맞춤화할 수 있도록 설계되었습니다.

맞춤 스타일을 추가하거나 구성을 조정하려면, 맞춤 설정 문서를 확인하여 방법을 알아보세요.