Answer the question
In order to leave comments, you need to log in
How to solve the problem of identical Disqus comments?
The essence of the problem: the same comments for all posts.
HTML code:
<a class="label label-default push" role="button" data-toggle="collapse" href="#showcomment{{page.id}}"
data-disqus-identifier="{{ page.id }}"
data-disqus-url="http://127.0.0.1:8000/category/{{category_name}}/{{ page.id }}"
data-disqus-title="{{ page.title }}"
data-disqus-category="{{ category_name }}">
<div class="glyphicon glyphicon-chevron-down show-comments" aria-hidden="true">
</div>
</a>
<div class="collapse" id="showcomment{{page.id}}">
<div class="well del" id="">
</div>
</div>
$('.push').click(function(){
$dis = $(this)
$('.del').removeAttr('id');
$dis.next('div').children('.del').attr('id', 'disqus_thread');
var disqus_shortname = 'allfreecourses';
var disqus_identifier = String($dis.data('disqus-identifier'));
var disqus_url = $dis.data('disqus-url');
var disqus_title = $dis.data('disqus-title');
var disqus_category_id = $dis.data('disqus-category');
dsq = document.createElement('script');
dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.head||document.body).appendChild(dsq);
})
Answer the question
In order to leave comments, you need to log in
Maybe not quite on the topic, and it's too late, but suddenly someone will come in handy. I had a similar situation due to the fact that one discussion began to have an address like " http://site/post " (probably as a result of a change in the address of the post, but not exactly). And should have " http://website/post/postname ". I changed it manually through the disqus administration panel in the "community" tab, click on the "moderate comments" bar and there should be a "discussions" item in the menu. It turned out to click on the link next to the name and change it manually. It is worth paying attention if there is a discussion with a title in the spirit of "Post Page". Although this is not the final solution yet, now the discus for each new post creates such a discussion and needs to be corrected manually...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question