
์ธ์ด ๐ฐ๐ท ํ๊ตญ์ด
์์ํ๊ธฐ
์ค์
๋ฌธ์
Add Comments to Your Drupal Site
์ด๊ฒ์ FastComments์ ๊ณต์ Drupal ๋ชจ๋์ ๋๋ค.
FastComments๋ฅผ Drupal 10/11๊ณผ ํตํฉํ๊ณ , ์์ ฏ ๋ธ๋ก, ์ํฐํฐ ํ๋ ํตํฉ, SSO, ์ธ๋ถํ๋ ๊ถํ์ ์ ๊ณตํฉ๋๋ค.
์ ์ฅ์
์ค์น 
- ์ด ๋ชจ๋์ Drupal ์ฌ์ดํธ์
modules/custom/fastcomments/๋๋ ํฐ๋ฆฌ (๋๋ Composer๋ก ์ค์น:composer require drupal/fcom). - ๋ชจ๋์ ํ์ฑํํ์ธ์:
๋๋ ๊ด๋ฆฌ UI์ Extend (drush en fastcomments/admin/modules)์์ ํ์ฑํํ์ธ์.
์ค์ 
๋ค์ ์์น๋ก ์ด๋ํ์ธ์: ๊ด๋ฆฌ > ๊ตฌ์ฑ > ์ฝํ
์ธ > FastComments (/admin/config/content/fastcomments).
์ค์
- Tenant ID (ํ์) - ๊ทํ์ FastComments Tenant ID์ ๋๋ค. ์ค์ > API/SSO (EU)์์ ํ์ธํ์ธ์.
- API Secret - Secure SSO, ์นํ ๊ฒ์ฆ ๋ฐ ํ์ด์ง ๋๊ธฐํ์ ํ์ํฉ๋๋ค. ์ค์ > API/SSO (EU)์์ ์ฐพ์ ์ ์์ต๋๋ค.
- SSO Mode - ์ฑ๊ธ ์ฌ์ธ์จ ํตํฉ:
- None - SSO ์์, ์ฌ์ฉ์๋ ๊ฒ์คํธ๋ก ๋๊ธ์ ๋ฌ๊ฑฐ๋ FastComments ๊ณ์ ์ ์์ฑํฉ๋๋ค.
- Simple - ์๋ฒ ์ธก ๊ฒ์ฆ ์์ด Drupal ์ฌ์ฉ์ ์ ๋ณด(์ด๋ฆ, ์ด๋ฉ์ผ, ์๋ฐํ)๋ฅผ FastComments๋ก ์ ๋ฌํฉ๋๋ค.
- Secure - HMAC-SHA256 ๊ฒ์ฆ์ ์ฌ์ฉํ์ฌ Drupal ์ฌ์ฉ์๋ฅผ FastComments์ ์์ ํ๊ฒ ์ธ์ฆํฉ๋๋ค(๊ถ์ฅ).
- Commenting Style - ํ์ํ ์์ ฏ ์ ํ:
- Live Comments - ์ค์๊ฐ ์ค๋ ๋ํ ๋๊ธ.
- Streaming Chat - ๋ผ์ด๋ธ ์ฑํ ์ธํฐํ์ด์ค.
- Collab Chat - ๋ณธ๋ฌธ ์์ญ์์์ ํ์ ํ ์คํธ ์ ํ ์ฃผ์ ๊ธฐ๋ฅ.
- Collab Chat + Comments - ํ์ ์ฑํ ๊ณผ ์ผ๋ฐ ๋๊ธ ๋ชจ๋.
- CDN URL - FastComments CDN URL (๊ธฐ๋ณธ๊ฐ:
https://cdn.fastcomments.com). - Site URL - FastComments ์ฌ์ดํธ URL (๊ธฐ๋ณธ๊ฐ:
https://fastcomments.com). - Email notifications - ์ ๋๊ธ์ด ๊ฒ์๋๋ฉด ์ฝํ ์ธ ์์ฑ์์๊ฒ ์ด๋ฉ์ผ์ ์ ์กํฉ๋๋ค.
์ฝํ ์ธ ์ ํ์ ๋๊ธ ์ถ๊ฐ
๊ตฌ์กฐ > ์ฝํ ์ธ ์ ํ > [type] > ํ๋ ๊ด๋ฆฌ๋ฅผ ํตํด ์ฝํ ์ธ ์ ํ์ FastComments ํ๋๋ฅผ ์ถ๊ฐํ์ธ์. ์ด ํ๋์๋ ์ํ ํ ๊ธ๊ณผ ์ํฐํฐ๋ณ ์ ํ์ ์ปค์คํ ์๋ณ์๊ฐ ์์ต๋๋ค.
EU ๋ฐ์ดํฐ ๋ ์ง๋์
EU ๋ฐ์ดํฐ ๋ ์ง๋์๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด ๋ค์์ ์ ๋ฐ์ดํธํ์ธ์:
- CDN URL ์
https://cdn-eu.fastcomments.com๋ก ๋ณ๊ฒฝ - Site URL ์
https://eu.fastcomments.com๋ก ๋ณ๊ฒฝ
์์ ฏ ๋ธ๋ก 
๋ค์ ๋ธ๋ก๋ค์ 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)์ ํ์ฌ ์ํฐํฐ๋ฅผ ์๋์ผ๋ก ๊ฐ์งํ๋ฉฐ, ์ํฐํฐ๊ฐ ์๋ ํ์ด์ง์์๋ ๊ฒฝ๋ก ๊ธฐ๋ฐ ์๋ณ์๋ก ๋์ฒด๋ฉ๋๋ค.
๋ค๊ตญ์ด 
์ด ๋ชจ๋์ ํ์ฌ Drupal ์ฌ์ดํธ ์ธ์ด๋ฅผ ๋ชจ๋ ์์ ฏ์ ์๋์ผ๋ก ์ ๋ฌํฉ๋๋ค.
๊ถํ 
- Administer FastComments - FastComments ์ค์ ์์์ ์ ๊ทผํฉ๋๋ค.
- View FastComments - ๋๊ธ ์์ ฏ์ ๋ณด๊ธฐ ์ํด ํ์ํฉ๋๋ค.
- Toggle FastComments - ํ๋ ์์ ฏ์ ํตํด ์ฌ์ฉ์๊ฐ ์ํฐํฐ๋ณ๋ก ๋๊ธ์ ํ์ฑํ/๋นํ์ฑํํ ์ ์๊ฒ ํฉ๋๋ค.
์๋ ๋ฐฉ์ 
์ฌ์ฉ์๊ฐ FastComments ํ๋๊ฐ ํ์ฑํ๋ ์ํฐํฐ๋ฅผ ๋ฐฉ๋ฌธํ๋ฉด:
- FastComments JavaScript ์์ ฏ์ด CDN์์ ๋ก๋๋ฉ๋๋ค.
- SSO๊ฐ ๊ตฌ์ฑ๋ ๊ฒฝ์ฐ, ์ฌ์ฉ์์ Drupal ์ ์์ด FastComments๋ก ์ ๋ฌ๋ฉ๋๋ค.
- A
<noscript>๋์ฒด(fallback)๋ JavaScript๊ฐ ์๋ ์ฌ์ฉ์์๊ฒ ์๋ฒ์์ ๋ ๋๋ง๋ ๋๊ธ์ ์ ๊ณตํฉ๋๋ค (Live Comments and Streaming Chat modes only).
์๊ตฌ ์ฌํญ 
- Drupal 10 ๋๋ 11
- PHP 8.1+
- FastComments ๊ณ์
๋์์ด ํ์ํ์ ๊ฐ์?
Drupal ๋ชจ๋์ ๋ฌธ์ ๊ฐ ๋ฐ์ํ๊ฑฐ๋ ์ง๋ฌธ์ด ์๋ ๊ฒฝ์ฐ, ๋ค์์ ์ด์ฉํ์ธ์:
๊ธฐ์ฌ
๊ธฐ์ฌ๋ ํ์ํฉ๋๋ค! ๊ธฐ์ฌ ๊ฐ์ด๋๋ผ์ธ์ GitHub ์ ์ฅ์๋ฅผ ๋ฐฉ๋ฌธํ์ธ์.