Hello.
I'm having this problem when using Disqus with
Views load more Version: 7.x-1.5
or
Views Infinite Scroll Version: 7.x-1.1
Does anybody has the same bug?

Comments

errand created an issue.

lunitin’s picture

lunitin’s picture

I noticed the same problem when trying to use Disqus with a View displaying teasers and Views Infinite Scroll.

After a quick look at the JS it appears that the disqus behavior is firing properly after Views Infinite Scroller triggers an AJAX load, but the .once() call is preventing any AJAX requests to disqus.com/count.js so new elements do not get the count.

There is probably a better way to refactor this so that once() will work on each element, but a quick fix is to move the once() closing brace above the if (settings.disqusComments || false) conditional.

emerham’s picture

Co-worker has same issue, he does have a patch but his comments are not showing up

lunitin’s picture

As emerham says, same problem with Disqus 7.x-1.12 and Views 7.x-3.3 and Views Infinite Scroll 7.x-1.1

After a quick look at the JS it appears that the disqus behavior is firing properly after Views Infinite Scroller triggers an AJAX load, but the .once() call is preventing any AJAX requests to disqus.com/count.js so new elements do not get the count.

There is probably a better way to refactor this so that once() will work on each element, but a quick fix is to move the once() closing braces }); from line 83 to line 73 above the if (settings.disqusComments || false) conditional.

errand’s picture

Hello lunitin,
i tried your quick fix but it doesn't work.
Sorry.

pribeh’s picture

Anybody find a fix for this that works?