FastComments.com


FastComments๋Š” ํŠน์ • ํŽ˜์ด์ง€๋‚˜ ๊ฒŒ์‹œ๋ฌผ์˜ ๋Œ“๊ธ€ ์ˆ˜๋ฅผ ํ‘œ์‹œํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐ€๋ณ๊ณ  ๋…๋ฆฝ์ ์ธ ๋Œ“๊ธ€ ์ˆ˜ ์œ„์ ฏ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ์œ„์ ฏ์€ ๋ฉ”์ธ ๋Œ“๊ธ€ ์œ„์ ฏ๊ณผ ๋ถ„๋ฆฌ๋˜์–ด ์žˆ์œผ๋ฉฐ ์ „์ฒด ๋Œ“๊ธ€ ์ธํ„ฐํŽ˜์ด์Šค ์—†์ด ๋Œ“๊ธ€ ์ˆ˜๋ฅผ ํ‘œ์‹œํ•˜๋ ค๋Š” ๊ณณ ์–ด๋””์—๋‚˜ ์‚ฌ์šฉํ•˜๋„๋ก ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋Œ“๊ธ€ ์ˆ˜ ์œ„์ ฏ์€ ๋‘ ๊ฐ€์ง€ ์œ ํ˜•์ด ์žˆ์Šต๋‹ˆ๋‹ค:

  1. Comment Count Widget - ๋‹จ์ผ ํŽ˜์ด์ง€์˜ ๋Œ“๊ธ€ ์ˆ˜๋ฅผ ํ‘œ์‹œํ•˜๊ธฐ ์œ„ํ•ด
  2. Bulk Comment Count Widget - ๋™์ผํ•œ ํŽ˜์ด์ง€์—์„œ ์—ฌ๋Ÿฌ ํŽ˜์ด์ง€์˜ ๋Œ“๊ธ€ ์ˆ˜๋ฅผ ํšจ์œจ์ ์œผ๋กœ ํ‘œ์‹œํ•˜๊ธฐ ์œ„ํ•ด

์ด ๋ฌธ์„œ์—์„œ๋Š” VanillaJS ์œ„์ ฏ์„ ๋‹ค๋ฃน๋‹ˆ๋‹ค. ๋‹น์‚ฌ์˜ React/Angular/etc ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์—๋„ ์ž์ฒด ์œ„์ ฏ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

๋Œ“๊ธ€ ์ˆ˜ ์œ„์ ฏ ์„ค์น˜ Internal Link

๋Œ“๊ธ€ ์ˆ˜ ์œ„์ ฏ์€ ๋‹จ์ผ ํŽ˜์ด์ง€์˜ ๋Œ“๊ธ€ ์ˆ˜๋ฅผ ํ‘œ์‹œํ•˜๋„๋ก ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๊ฐ€๋ณ๊ณ  ๊ตฌ์„ฑํ•˜๋ฉด ์‹ค์‹œ๊ฐ„ ์—…๋ฐ์ดํŠธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

๊ธฐ๋ณธ ์„ค์น˜

Comment Count Widget Installation
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
3<div id="comment-count"></div>
4<script>
5 window.FastCommentsCommentCount(document.getElementById('comment-count'), {
6 tenantId: 'demo'
7 });
8</script>
9

๊ตฌ์„ฑ ์˜ต์…˜

FastCommentsCommentCount ํ•จ์ˆ˜๋Š” ๋‹ค์Œ ๊ตฌ์„ฑ ์˜ต์…˜์„ ํ—ˆ์šฉํ•ฉ๋‹ˆ๋‹ค:

  • tenantId (ํ•„์ˆ˜): FastComments ํ…Œ๋„ŒํŠธ ID
  • urlId (์„ ํƒ์‚ฌํ•ญ): ํŽ˜์ด์ง€ ์‹๋ณ„์ž. ์ง€์ •ํ•˜์ง€ ์•Š์œผ๋ฉด window.location.href๊ฐ€ ๊ธฐ๋ณธ๊ฐ’
  • numberOnly (์„ ํƒ์‚ฌํ•ญ): true์ด๋ฉด ํ…์ŠคํŠธ ์—†์ด ์ˆซ์ž๋งŒ ํ‘œ์‹œ. ๊ธฐ๋ณธ๊ฐ’์€ false
  • isLive (์„ ํƒ์‚ฌํ•ญ): true์ด๋ฉด ์นด์šดํŠธ๊ฐ€ ์ž๋™์œผ๋กœ ์—…๋ฐ์ดํŠธ๋จ. ๊ธฐ๋ณธ๊ฐ’์€ false

๊ณ ๊ธ‰ ์˜ˆ์ œ

์‚ฌ์šฉ์ž ์ •์˜ URL ID

Comment Count with Custom URL ID
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
3<div id="comment-count-custom"></div>
4<script>
5 window.FastCommentsCommentCount(document.getElementById('comment-count-custom'), {
6 tenantId: 'demo',
7 urlId: 'my-custom-page-id'
8 });
9</script>
10

์ˆซ์ž๋งŒ ํ‘œ์‹œ

Comment Count Number Only
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
3<div id="comment-count-number"></div>
4<script>
5 window.FastCommentsCommentCount(document.getElementById('comment-count-number'), {
6 tenantId: 'demo',
7 numberOnly: true
8 });
9</script>
10

์‹ค์‹œ๊ฐ„ ์—…๋ฐ์ดํŠธ

Live Comment Count Updates
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
3<div id="comment-count-live"></div>
4<script>
5 window.FastCommentsCommentCount(document.getElementById('comment-count-live'), {
6 tenantId: 'demo',
7 isLive: true
8 });
9</script>
10

์œ„์ ฏ ๋ฉ”์„œ๋“œ

์œ„์ ฏ์€ ๋‹ค์Œ ๋ฉ”์„œ๋“œ๋ฅผ ๊ฐ€์ง„ ๊ฐ์ฒด๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค:

  • destroy(): ์œ„์ ฏ์„ ์ œ๊ฑฐํ•˜๊ณ  ๋ชจ๋“  ํƒ€์ด๋จธ๋ฅผ ์ •๋ฆฌ
  • update(config): ์ƒˆ ๊ตฌ์„ฑ์œผ๋กœ ์œ„์ ฏ์„ ์—…๋ฐ์ดํŠธ

์‚ฌ์šฉ ์˜ˆ์ œ

Widget Methods Example
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
3<div id="comment-count-methods"></div>
4<script>
5 const widget = window.FastCommentsCommentCount(document.getElementById('comment-count-methods'), {
6 tenantId: 'demo'
7 });
8
9 // Update the widget to show a different page's count
10 setTimeout(() => {
11 widget.update({
12 tenantId: 'demo',
13 urlId: 'different-page-id'
14 });
15 }, 5000);
16
17 // Destroy the widget after 10 seconds
18 setTimeout(() => {
19 widget.destroy();
20 }, 10000);
21</script>
22

์Šคํƒ€์ผ๋ง

์œ„์ ฏ์€ ๋Œ“๊ธ€ ์ˆ˜๊ฐ€ ํฌํ•จ๋œ ์ผ๋ฐ˜ HTML์„ ๋ Œ๋”๋งํ•˜๋ฉฐ ์ตœ์†Œํ•œ์˜ ์Šคํƒ€์ผ๋ง์ด ์ œ๊ณต๋ฉ๋‹ˆ๋‹ค. CSS๋กœ ์™ธ๊ด€์„ ์‚ฌ์šฉ์ž ์ •์˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:

Custom Styling
Copy CopyRun External Link
1
2<style>
3 .comment-count-styled {
4 background: #f0f0f0;
5 padding: 5px 10px;
6 border-radius: 15px;
7 font-size: 14px;
8 color: #666;
9 display: inline-block;
10 }
11</style>
12<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
13<div id="comment-count-styled" class="comment-count-styled"></div>
14<script>
15 window.FastCommentsCommentCount(document.getElementById('comment-count-styled'), {
16 tenantId: 'demo'
17 });
18</script>
19

๋Œ“๊ธ€ ์ˆ˜ ์œ„์ ฏ ์ผ๊ด„ ์„ค์น˜ Internal Link

๋ฒŒํฌ ๋Œ“๊ธ€ ์ˆ˜ ์œ„์ ฏ์€ ๋™์ผํ•œ ํŽ˜์ด์ง€์—์„œ ์—ฌ๋Ÿฌ ํŽ˜์ด์ง€์˜ ๋Œ“๊ธ€ ์ˆ˜๋ฅผ ํšจ์œจ์ ์œผ๋กœ ํ‘œ์‹œํ•˜๋„๋ก ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๊ฐ ๋Œ“๊ธ€ ์ˆ˜์— ๋Œ€ํ•ด ๊ฐœ๋ณ„ API ํ˜ธ์ถœ์„ ํ•˜๋Š” ๋Œ€์‹ , ์ด ์œ„์ ฏ์€ ์ตœ์ ์˜ ์„ฑ๋Šฅ์„ ์œ„ํ•ด ์š”์ฒญ์„ ์ผ๊ด„ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

๊ธฐ๋ณธ ์„ค์น˜

Bulk Comment Count Widget Installation
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/embed-widget-comment-count-bulk.min.js"></script>
3
4<!-- Multiple elements with comment counts -->
5<div class="fast-comments-count" data-fast-comments-url-id="page-1"></div>
6<div class="fast-comments-count" data-fast-comments-url-id="page-2"></div>
7<div class="fast-comments-count" data-fast-comments-url-id="page-3"></div>
8
9<script>
10 window.FastCommentsBulkCountConfig = {
11 tenantId: 'demo'
12 };
13</script>
14

์ž‘๋™ ๋ฐฉ์‹

๋ฒŒํฌ ์œ„์ ฏ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค:

  1. fast-comments-count ํด๋ž˜์Šค๋ฅผ ๊ฐ€์ง„ ์š”์†Œ๋ฅผ ํŽ˜์ด์ง€์—์„œ ์Šค์บ”
  2. ๊ฐ ์š”์†Œ์—์„œ data-fast-comments-url-id ์†์„ฑ ์ฝ๊ธฐ
  3. ์—ฌ๋Ÿฌ ๋Œ“๊ธ€ ์ˆ˜๋ฅผ ํšจ์œจ์ ์œผ๋กœ ๊ฐ€์ ธ์˜ค๊ธฐ ์œ„ํ•ด API ์š”์ฒญ ์ผ๊ด„ ์ฒ˜๋ฆฌ
  4. ๊ฐ ์š”์†Œ๋ฅผ ์ ์ ˆํ•œ ๋Œ“๊ธ€ ์ˆ˜๋กœ ์—…๋ฐ์ดํŠธ

๊ตฌ์„ฑ ์˜ต์…˜

FastCommentsCommentCountBulk ํ•จ์ˆ˜๋Š” ๋‹ค์Œ ๊ตฌ์„ฑ ์˜ต์…˜์„ ํ—ˆ์šฉํ•ฉ๋‹ˆ๋‹ค:

  • tenantId (ํ•„์ˆ˜): FastComments ํ…Œ๋„ŒํŠธ ID
  • apiHost (์„ ํƒ์‚ฌํ•ญ): ์ž์ฒด ํ˜ธ์ŠคํŒ… ์ธ์Šคํ„ด์Šค๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ •์˜ API ํ˜ธ์ŠคํŠธ

์‹ค์ œ ์˜ˆ์ œ

๋ธ”๋กœ๊ทธ ๊ฒŒ์‹œ๋ฌผ ๋ชฉ๋ก์—์„œ ๋ฒŒํฌ ์œ„์ ฏ์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๋ณด์—ฌ์ฃผ๋Š” ์‹ค์šฉ์ ์ธ ์˜ˆ์ œ:

Blog Post Listing with Comment Counts
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/embed-widget-comment-count-bulk.min.js"></script>
3
4<style>
5 .blog-post {
6 border: 1px solid #ddd;
7 margin: 10px 0;
8 padding: 15px;
9 border-radius: 5px;
10 }
11 .post-meta {
12 color: #666;
13 font-size: 14px;
14 margin-top: 10px;
15 }
16 .comment-count {
17 background: #e7f3ff;
18 padding: 2px 8px;
19 border-radius: 12px;
20 font-size: 12px;
21 display: inline-block;
22 }
23</style>
24
25<div class="blog-post">
26 <h3>How to Install FastComments</h3>
27 <p>Learn how to add FastComments to your website in just a few minutes...</p>
28 <div class="post-meta">
29 Published: March 15, 2024 |
30 <span class="fast-comments-count comment-count" data-fast-comments-url-id="how-to-install-fastcomments"></span>
31 </div>
32</div>
33
34<div class="blog-post">
35 <h3>Advanced FastComments Configuration</h3>
36 <p>Dive deep into the advanced configuration options for FastComments...</p>
37 <div class="post-meta">
38 Published: March 10, 2024 |
39 <span class="fast-comments-count comment-count" data-fast-comments-url-id="advanced-fastcomments-config"></span>
40 </div>
41</div>
42
43<div class="blog-post">
44 <h3>FastComments vs Other Solutions</h3>
45 <p>See how FastComments compares to other commenting solutions...</p>
46 <div class="post-meta">
47 Published: March 5, 2024 |
48 <span class="fast-comments-count comment-count" data-fast-comments-url-id="fastcomments-comparison"></span>
49 </div>
50</div>
51
52<script>
53 window.FastCommentsBulkCountConfig = {
54 tenantId: 'demo'
55 };
56</script>
57

์„ฑ๋Šฅ ๊ณ ๋ ค์‚ฌํ•ญ

๋ฒŒํฌ ์œ„์ ฏ์€ ๋‹ค์Œ์„ ํ†ตํ•ด ์ž๋™์œผ๋กœ ์„ฑ๋Šฅ์„ ์ตœ์ ํ™”ํ•ฉ๋‹ˆ๋‹ค:

  • ์š”์ฒญ ์ผ๊ด„ ์ฒ˜๋ฆฌ: ๋‹จ์ผ API ํ˜ธ์ถœ๋กœ ์—ฌ๋Ÿฌ ๋Œ“๊ธ€ ์ˆ˜๋ฅผ ๊ฐ€์ ธ์˜ด
  • ์š”์ฒญ ํฌ๊ธฐ ์ œํ•œ: URL ๋ชฉ๋ก์ด ๋„ˆ๋ฌด ๊ธธ์–ด์ง€๋ฉด(1,000์ž ์ดˆ๊ณผ) ์š”์ฒญ์ด ์ž๋™์œผ๋กœ ๋ถ„ํ• ๋จ
  • ์ค‘๋ณต ์ œ๊ฑฐ: ๋™์ผํ•œ data-fast-comments-url-id๋ฅผ ๊ฐ€์ง„ ์—ฌ๋Ÿฌ ์š”์†Œ๊ฐ€ ๋™์ผํ•œ ์ˆ˜๋ฅผ ๊ณต์œ 

๋™์ผํ•œ URL ID๋ฅผ ๊ฐ€์ง„ ์—ฌ๋Ÿฌ ์š”์†Œ

๋™์ผํ•œ data-fast-comments-url-id๋ฅผ ๊ฐ€์ง„ ์—ฌ๋Ÿฌ ์š”์†Œ๋ฅผ ํŽ˜์ด์ง€์— ๋ฐฐ์น˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ชจ๋‘ ๋™์ผํ•œ ์ˆ˜๋กœ ์—…๋ฐ์ดํŠธ๋ฉ๋‹ˆ๋‹ค:

Multiple Elements Same URL ID
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/embed-widget-comment-count-bulk.min.js"></script>
3
4<style>
5 .count-example {
6 margin: 10px 0;
7 padding: 10px;
8 background: #f9f9f9;
9 border-radius: 5px;
10 }
11</style>
12
13<div class="count-example">
14 Header Count: <span class="fast-comments-count" data-fast-comments-url-id="shared-article"></span>
15</div>
16
17<div class="count-example">
18 Sidebar Count: <span class="fast-comments-count" data-fast-comments-url-id="shared-article"></span>
19</div>
20
21<div class="count-example">
22 Footer Count: <span class="fast-comments-count" data-fast-comments-url-id="shared-article"></span>
23</div>
24
25<script>
26 window.FastCommentsBulkCountConfig = {
27 tenantId: 'demo'
28 };
29</script>
30

๋กœ์ปฌ๋ผ์ด์ œ์ด์…˜

๋ฒŒํฌ ์œ„์ ฏ์€ FastComments ์–ธ์–ด ์„ค์ •์— ๋”ฐ๋ผ ์ž๋™์œผ๋กœ ๋Œ“๊ธ€ ์ˆ˜๋ฅผ ํฌ๋งทํ•ฉ๋‹ˆ๋‹ค. ๋‹ค์Œ์— ๋Œ€ํ•œ ์ ์ ˆํ•œ ํ…์ŠคํŠธ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค:

  • ๋Œ“๊ธ€ ์—†์Œ
  • ๋Œ“๊ธ€ 1๊ฐœ
  • ์—ฌ๋Ÿฌ ๋Œ“๊ธ€

๋ฒŒํฌ vs ์‹ฑ๊ธ€ ์œ„์ ฏ ์‚ฌ์šฉ ์‹œ์ 

๋ฒŒํฌ ์œ„์ ฏ ์‚ฌ์šฉ ์‹œ:

  • ๋™์ผํ•œ ํŽ˜์ด์ง€์— ์—ฌ๋Ÿฌ ๋Œ“๊ธ€ ์ˆ˜๊ฐ€ ์žˆ๋Š” ๊ฒฝ์šฐ
  • ๋Œ“๊ธ€ ์ˆ˜๊ฐ€ ์žˆ๋Š” ๊ฒŒ์‹œ๋ฌผ/๊ธฐ์‚ฌ ๋ชฉ๋ก์„ ํ‘œ์‹œํ•˜๋Š” ๊ฒฝ์šฐ
  • ์„ฑ๋Šฅ์ด ์ค‘์š”ํ•œ ๊ฒฝ์šฐ (API ํ˜ธ์ถœ ๊ฐ์†Œ)

์‹ฑ๊ธ€ ์œ„์ ฏ ์‚ฌ์šฉ ์‹œ:

  • ํŽ˜์ด์ง€์— ๋Œ“๊ธ€ ์ˆ˜๊ฐ€ ํ•˜๋‚˜๋งŒ ํ•„์š”ํ•œ ๊ฒฝ์šฐ
  • ์‹ค์‹œ๊ฐ„ ์—…๋ฐ์ดํŠธ๊ฐ€ ํ•„์š”ํ•œ ๊ฒฝ์šฐ (์‹ฑ๊ธ€ ์œ„์ ฏ์€ ์‹ค์‹œ๊ฐ„ ์—…๋ฐ์ดํŠธ ์ง€์›)
  • ๊ฐœ๋ณ„ ์œ„์ ฏ ๋™์ž‘์„ ๋” ์„ธ๋ฐ€ํ•˜๊ฒŒ ์ œ์–ดํ•˜๊ณ  ์‹ถ์€ ๊ฒฝ์šฐ

FastComments ๋Œ“๊ธ€ ์ˆ˜ ์œ„์ ฏ์€ ์‚ฌ์ดํŠธ ์ „๋ฐ˜์— ๊ฑธ์ณ ๋Œ“๊ธ€ ์ˆ˜๋ฅผ ํ‘œ์‹œํ•˜๋Š” ๊ฐ„๋‹จํ•˜๊ณ  ํšจ์œจ์ ์ธ ๋ฐฉ๋ฒ•์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

์ด ๋ฌธ์„œ๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๊ธฐ๋ฅผ ๋ฐ”๋ž๋‹ˆ๋‹ค.