📜 ⬆️ ⬇️

Installing IntenseDebate in Drupal

Those who read me already know, of course, that I recently installed the popular IntenseDebate comment system on my blog. And it seemed to me here that the task of setting up a debate on a drupal is relatively nontrivial and much more complicated than its counterparts for other CMS (there are just ready-made modules for many). So, it’s a sin to bury such an experience, even more so that I myself have been looking for any manuals on the net for a long time and haven’t found anything intelligible.

So. The IntenseDebate installation consists of two parts. The first is, in fact, the placement of a block of comments under each post. The second is the placement on the main link of the type Comments (#) again under each entry.

1. We remove the standard comment system of drupal, there are hardly anyone willing to combine the two commenting methods. Difficulties should not arise, it is carried out simply - we disconnect the module of the same name.
2. Create a new region in which our comment tree will be displayed. At this point, I will not reinvent the wheel, but simply share a link to a good article on creating an arbitrary region in Drupal. After creating a region, the simplest remains. By standard means of drupal we create a block, which we locate in the newly created region. The content of the block should be the code given to you by IntenseDebate.
Actually, the first part is over. Now under each post we display the appropriate comment block with IntenseDebate.

In order for comment counters to appear on the main page under each entry, we need to install the Content Templates module. Well, now there is a sheer trifle. We go to your_site / admin / content / templates / story and write in the Teaser template the second part of the code that we received when registering for the debate.
And everything would be fine, but in this form it will not work. You must pass the script the correct parameters idcomments_post_id and idcomments_post_url . Which, fortunately, is not difficult. After editing, the block should look like this:
')
<?php print $teaser ?>



But this is probably all.
For help in setting up this whole thing, many thanks SolarWind .

Original article here .

Source: https://habr.com/ru/post/52409/


All Articles