FastComments.com

Add Comments With Memberstack

FastComments ile, Memberstack ile birleştirildiğinde yalnızca üyelere özel yorum özelliği kurabiliriz!

Kod Internal Link

FastComments'i Memberstack ile küçük bir kod parçacığı ile kolayca bağlayabiliriz:

FastComments Memberstack Snippet
Copy Copy
1
2<script src="https://cdn.fastcomments.com/js/embed-v2.min.js"></script>
3<div id="fastcomments-widget"></div>
4<script>
5 window.$memberstackDom.getCurrentMember().then(({data: member}) => {
6 if (member) {
7 FastCommentsUI(document.getElementById('fastcomments-widget'), {
8 tenantId: "demo",
9 urlId: window.location.pathname,
10 simpleSSO: {
11 username: member.customFields.name || member.auth.email.replace(/@.+/, ''),
12 email: member.auth.email,
13 avatar: member.customFields.avatar
14 }
15 });
16 } else {
17 FastCommentsUI(document.getElementById('fastcomments-widget'), {
18 tenantId: "demo",
19 urlId: window.location.pathname,
20 simpleSSO: null
21 });
22 }
23 })
24</script>
25

Kullanıcı Memberstack üzerinden giriş yapmışken sitenizi veya uygulamanızı ziyaret ettiğinde, otomatik olarak FastComments'e giriş yapacak ve yorumları Verified olarak işaretlenecektir.

Giriş yapmamışlarsa, adlarını ve e-postalarını bırakarak da yorum yapabilecekler.

Sadece Üyelere Özel Yorum

Sadece üyelere özel yorum istiyorsanız, aşağıdaki kod parçacığını deneyin, ancak https://example.com/login adresini kullanıcıların Login düğmesine tıkladıklarında gitmelerini istediğiniz yere değiştirin:

Exclusive FastComments Memberstack Snippet
Copy Copy
1
2<script src="https://cdn.fastcomments.com/js/embed-v2.min.js"></script>
3<div id="fastcomments-widget"></div>
4<script>
5 window.$memberstackDom.getCurrentMember().then(({data: member}) => {
6 if (member) {
7 FastCommentsUI(document.getElementById('fastcomments-widget'), {
8 tenantId: "demo",
9 urlId: window.location.pathname,
10 simpleSSO: {
11 username: member.customFields.name || member.auth.email.replace(/@.+/, ''),
12 email: member.auth.email,
13 avatar: member.customFields.avatar
14 }
15 });
16 } else {
17 FastCommentsUI(document.getElementById('fastcomments-widget'), {
18 tenantId: "demo",
19 urlId: window.location.pathname,
20 simpleSSO: {
21 loginURL: 'https://example.com/login'
22 }
23 });
24 }
25 })
26</script>
27

Özelleştirme Internal Link

FastComments, sitenize uyacak şekilde özelleştirilmek üzere tasarlanmıştır.

Özel stil eklemek veya yapılandırmayı ayarlamak istiyorsanız, nasıl yapılacağını öğrenmek için Özelleştirme Dokümantasyonumuza göz atın.