Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
lunitin CreditAttribution: lunitin commentedComment #3
lunitin CreditAttribution: lunitin commentedI 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.
Comment #4
emerham CreditAttribution: emerham as a volunteer commentedCo-worker has same issue, he does have a patch but his comments are not showing up
Comment #5
lunitin CreditAttribution: lunitin as a volunteer commentedAs 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.
Comment #6
errand CreditAttribution: errand commentedHello lunitin,
i tried your quick fix but it doesn't work.
Sorry.
Comment #7
pribeh CreditAttribution: pribeh commentedAnybody find a fix for this that works?