How To Add Comments To The Site

Table of contents:

How To Add Comments To The Site
How To Add Comments To The Site

Video: How To Add Comments To The Site

Video: How To Add Comments To The Site
Video: Add Commenting to Your Website 2024, May
Anonim

On many sites, users have the ability to leave comments. As a rule, the administrator connects a special module to ensure this. It is difficult to develop such a module on your own, but you can use ready-made solutions.

How to add comments to the site
How to add comments to the site

Instructions

Step 1

In the event that a professional platform is used for the site, usually a paid one, it already contains all the necessary modules, including the comment block. But what if you are just getting started with web design, have created a simple website in pure html and want to give visitors the opportunity to leave messages?

Step 2

To add a comment block to the site, use the service Disqus. After installing this platform on the site, its visitors will be able to leave their cues

Step 3

Register on the service. In the Site URL field, enter the address of our site. In the Site Name field - its name. It's a little more complicated with the Site Shortname field - here you need to enter the short name of the site, that is, without http, www and ru. For example, if your site is named httr: //site12345.ru, then enter site12345 as a short name. This will create a subdomain site12345.disqus.com. By clicking on it, you will be taken to the comments settings panel.

Step 4

After entering all the data, click the Continue button, the settings panel will open. Select Russian, then configure Optional Features. In the Facebook Connect item, you can give Facebook users the ability to leave comments from their account. To do this, you need to enter the API Key: you can get it by clicking on the link just below the Facebook Connect item, but for this you must have an account on this service. In the Twitter @Replies field, enter the name of your twitter account, it will be used for replies.

Step 5

Now set up the checkboxes (switch). If you check Media Attachments, then all links to media files will be shown at the bottom of the comment as attachments. Trackbacks - shows trackbacks to the page. Akismet - anti-spam service connection. Reactions - Shows online mentions of your site. Finally, if you check the Display login buttons with comment box checkbox, service buttons will appear above the comment form - Facebook, Twitter, etc.

Step 6

After filling out the form, click Continue. A new page will display options for connecting to different platforms. If you wrote the code for the site yourself, select the Universal Code item. To install the code, copy it from point 1, and then paste it into the place of your page where the comments should be. Then copy the code from step 2 and paste it before the closing / body tag.

Step 7

All you have to do is to correctly form the links leading to the page with comments. For example, if the page for comments looked like httr: //site12345.ru/comment.html, then the link should be made like this: httr: //site12345.ru/comment.html #disqus_thread. After that, check the ability to leave comments, everything should work.

Recommended: