Hello,

I am trying to incorporate the full disqus comment form into the teaser of a content type so my visitors can see all comments and add their own from my homepage: http://visualpause.com. The challenge is that my homepage displays teasers for 25 nodes, and it appears that disqus can only present the comments and form for one node at a time. I would like to give my users the ability to see comments for posts and leave a comment without having to click through to the node page. My plan is to add the full disqus form to the teaser, and have its visibility toggled with jquery. But that means displaying disqus for multiple nodes, and it doesn't appear as though disqus can do that?

This is something I can achieve with drupal core comments by checking "display node comments" in the "Row style" configuration of the view.
Is there a way to achieve a similar functionality with disqus?

Thanks,
Andy

Comments

halefx’s picture

Subscribing

neelan’s picture

Subscribing

Mujtaba Mir’s picture

subscribing

makeapage’s picture

subscribing

Mujtaba Mir’s picture

Including below javascript code code in your each node will help yoy display disqus comments on the same page.

DISQUS.reset({ reload: true, config: function () { this.page.identifier = "newidentifier"; this.page.url = "http://yoursite.com/node/"; } });

above code is responsible for ajax calls actually.
include script tag before and after the above code

Open Social’s picture

Nice, I will check this out.

infojunkie’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Also need this on the D7 branch. Has anyone got this working in a reliable way?

MorganL’s picture

Component: Documentation » Code
Category: Support request » Feature request
Issue summary: View changes

I'm looking for a way to display/add comment threads from multiple rendered nodes which are being output in one page using a view (with pagination). Disqus is using a div with a single ID for all nodes: <div id="disqus_thread">. IDs are supposed to be unique within a page, so this isn't just preventing the display of multiple comment threads within one page, it's also generating bad HTML.

There are comment thread links being generated correctly within the <noscript> tags for each node, so the data needed to fix this should be there. Seems like either the ID values need to be serialized somehow, or a class should be used instead of an ID for the div.

MorganL’s picture

Title: How can I display full disqus comments and form for multiple nodes on the same page? » Display full Disqus comments and form for multiple nodes on the same page