Drupal 7
Disqus v1.10
Views v3.7

When using Ajax on the view and a paginator, the results that render during page load work fine, but when you paginate the view, the results loaded after that doesn't load the number of comments.

Example: When you load the page, the number of comments starts out showing 'Comments' and after a while it loads and shows what you set on your Disqus account configuration (0 Comments, {num} Comments). What happens is that it never loads those values set on the disqus account and just keeps showing 'Comments'

CommentFileSizeAuthor
#3 Filters and Ajax.png360.73 KBstefanotabarelli
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Guibfo’s picture

I just found out that it doesn't work with regular pager also if the view is using Ajax, so not really a Views Load more issue

Guibfo’s picture

Title: Views integration doesn't work with Views Load More » Views integration doesn't work when view is using ajax
Issue summary: View changes
stefanotabarelli’s picture

FileSize
360.73 KB

I would like to integrate this issue reporting that the problems applies also when you have exposed filters on the page (using Ajax). The page and the comments load correctly the first time but as it happens for the paginator, when we click on the filters the new list of items does not have the number of comments anymore.
See image.

Sora_tm’s picture

Work for me:

Drupal.behaviors.getDisqusComment = {
  attach: function(context, settings){
    // Make the AJAX call to get the number of comments.
    jQuery.ajax({
      type: 'GET',
      url: '//MYSHORTNAME.disqus.com/count.js',
      dataType: 'script',
      cache: false
    });
  }
};