FastComments.com

Add Live Commenting to Framer Sites


Με το FastComments μπορούμε εύκολα να προσθέσουμε ζωντανά σχόλια σε οποιονδήποτε ιστότοπο κατασκευασμένο με το Framer.

Σε αυτό το σεμινάριο θα καλύψουμε μόνο την εγκατάσταση του widget Live Commenting. Εάν χρειάζεστε βοήθεια για την εγκατάσταση άλλων widgets, ή για τη ρύθμιση του SSO, μη διστάσετε να δημιουργήσετε ένα αίτημα υποστήριξης.


Βήμα 1: Άνοιγμα του επεξεργαστή Internal Link

Πρώτα, ανοίξτε τον επεξεργαστή για τον ιστότοπό σας.

Στο παράδειγμά μας θα προσθέσουμε το FastComments στις σελίδες του ιστολογίου μας, αλλά οποιοσδήποτε τύπος σελίδας θα πρέπει να λειτουργεί.

Άνοιγμα επεξεργαστή
Άνοιγμα επεξεργαστή

Βήμα 2: Προσθήκη μπλοκ ενσωμάτωσης Internal Link

Τώρα, ας προσθέσουμε ένα μπλοκ Embed.

Go to Insert in the top left:

Κάντε κλικ στο Insert
Κάντε κλικ στο Insert

Then scroll the left hand sidebar down and mouse over Utility.

Next you'll want to κάνετε κλικ και σύρετε the Utility block to the end of your blog.

It's important you κάνετε κλικ και σύρετε as shown, and not just click it. If you just click it, then Framer will insert it outside of your blog and you'll have to drag it around later.

Εντοπίστε το Embed Widget
Εντοπίστε το Embed Widget
Σύρετε και Αποθέστε το Embed Widget
Σύρετε και Αποθέστε το Embed Widget

Now you'll have an empty Embed widget, and when you select it you'll get a sidebar on the right. You can expand the sidebar, and you'll see something like this:

Ανοίξτε τις Ρυθμίσεις Embed
Ανοίξτε τις Ρυθμίσεις Embed

Now let's change the Embed widget type to HTML:

Ορίστε ως HTML Widget
Ορίστε ως HTML Widget

Now you're ready for the FastComments Framer Code snippet in the next step.

Βήμα 3: Αντιγράψτε και επικολλήστε τον κώδικα FastComments ειδικό για το Framer Internal Link

The Framer Live Comments FastComments snippet is below.

FastComments Framer - Ειδικό Απόσπασμα Σχολίων
Copy Copy
1
2<script src="https://cdn.fastcomments.com/js/embed-v2.min.js"></script>
3<div id="fastcomments-widget" style="width: 100%;height: 100%;"></div>
4<script>
5 (function fcLoad() {
6 function tryLoad() {
7 // κάποιοι πάροχοι αλλάζουν το snippet κώδικα ώστε να γίνει async
8 const container = document.getElementById('fastcomments-widget');
9 if (!container) {
10 return waitRetry();
11 }
12 if (!window.FastCommentsUI) {
13 return waitRetry();
14 }
15 if (container.fastCommentsSetup) {
16 return;
17 }
18 window.FastCommentsUI(container, {
19 tenantId: 'demo',
20 pageTitle: top.document.title,
21 url: top.location.href,
22 urlId: top.location.pathname
23 });
24 container.fastCommentsSetup = true;
25 }
26 function waitRetry() {
27 setTimeout(tryLoad, 500);
28 }
29 tryLoad();
30 })();
31</script>
32

Or, alternatively, you can use the Streaming Chat widget. The Framer Streaming Chat FastComments snippet is:

FastComments Framer - Ειδικό Απόσπασμα Ζωντανής Συνομιλίας
Copy Copy
1
2<script src="https://cdn.fastcomments.com/js/embed-live-chat.min.js"></script>
3<div id="fastcomments-live-chat-widget" style="width: 100%;height: 100%;"></div>
4<script>
5 (function fcLoad() {
6
7 function tryLoad() {
8 // κάποιοι πάροχοι αλλάζουν το snippet κώδικα ώστε να γίνει async
9 const container = document.getElementById('fastcomments-live-chat-widget');
10 if (!container) {
11 return waitRetry();
12 }
13 if (!window.FastCommentsLiveChat) {
14 return waitRetry();
15 }
16 if (container.fastCommentsSetup) {
17 return;
18 }
19 window.FastCommentsLiveChat(container, {
20 tenantId: 'demo',
21 pageTitle: top.document.title,
22 url: top.location.href,
23 urlId: top.location.pathname
24 });
25 container.fastCommentsSetup = true;
26 }
27 function waitRetry() {
28 setTimeout(tryLoad, 500);
29 }
30 tryLoad();
31 })();
32</script>
33

FastComments supports the Framer editor, so you should see something like this once you paste the code in (you might have to click Publish):

Προεπισκόπηση Widget Σχολίων
Προεπισκόπηση Widget Σχολίων

Now when you view your site you should see the comment area! In the sidebar of Framer you can set the widget as full width as well, if desired.

Note that Framer limits the height of widgets and does not support auto-resizing, so we've chosen the Live Chat widget here since it is fixed height.

Βήμα 4: Προσαρμόστε το ύψος του widget και της σελίδας Internal Link

Μπορούμε να βελτιώσουμε τη θέση του widget κάνοντας δύο πράγματα.

Πρώτον, στο αριστερό πλαίσιο, ορίστε το ύψος του widget σε fill και 1fr:

Ύψος Widget Σχολίων
Ύψος Widget Σχολίων

Στη συνέχεια πρέπει να διορθώσουμε την προεπιλεγμένη ρύθμιση σελίδας του Framer. Από προεπιλογή ορίζει το ύψος της σελίδας σε ένα σταθερό μέγεθος, το οποίο μπορεί να κόψει νήματα σχολίων. Οπότε ας το ορίσουμε κι αυτό σε fill.

Ορισμός Ύψους Σελίδας
Ορισμός Ύψους Σελίδας

Ενδέχεται να χρειαστεί να πειραματιστείτε με το ύψος της σελίδας για να το ρυθμίσετε όπως θέλετε.

Προσαρμογή Internal Link


Το FastComments έχει σχεδιαστεί ώστε να προσαρμόζεται για να ταιριάζει με τον ιστότοπό σας.

Εάν θέλετε να προσθέσετε προσαρμοσμένο στιλ ή να τροποποιήσετε τη διαμόρφωση, Δείτε την τεκμηρίωση προσαρμογής μας για να μάθετε πώς.