DISQUS

DISQUS Hello! DISQUS Blog and Forum is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

DISQUS Blog and Forum

The official Disqus forum. This is the place to receive beta support and offer suggestions.
« Back
Author

Naming threads when displaying comment count (using #disqus_thread)

Started by ryanw · 1 year ago

I figured out the javascript way (disqus_title = 'title') to name a thread on the post page, easy enough, and very handy. But, on the index page of posts, when displaying the comment count (by adding #disqus_thread to the post url), it actually creates threads in disqus for these posts, and doesn't run through the custom javascript naming.

What's the method for making sure the title is set appropriately when displaying a page of posts with comment counts? Would it be possible to not actually create the thread until it is displayed on the post page?

7 comments

  • Hi Ryan,

    I'm having a bit of trouble understanding the issues you're having. I'll take a stab at it, but let me know if I misunderstood:

    The titles should always automatically be set correctly on your Community Page; we do have a persisting bug that shows the URL instead sometimes. We are looking into it right now.
  • Let's see if I can clear this up. I'm using the straight javascript integration. I have a home page that lists a bunch of posts, just the posts, not the comments. But, I started to add the disqus comment counts by adding #disqus_thread to the end of the links to the individual posts. Nowhere on this home page is there any disqus_title being set. By virtue of adding #disqus_thread to the links on the home page, threads are being created in Disqus. But, these threads don't have the proper titles, because the title logic is on the post page. So, here are my questions, hopefully a little more clear now:

    - When are threads created? (can you verify that by adding #disqus_thread to a link, a thread gets created?)
    - If they're created this way, how would a custom title be set?
    - Can I postpone thread creation until the post page is viewed for the first time? (comment count would be 0 for threads that don't exist yet)
  • Threads are not created when you anchor to disqus_thread. The thread creation should only occur the first time the post page is viewed, as you stated. Feel free to email me if you want me to help take a look at it. I am seeing threads with the title "Twitter Confessions" which are the ones I'm assuming you are talking about.
  • Thanks Jason, looks like it's working fine now, as in only creating threads when viewing the post. Yes, there were a bunch of threads with "Twitter Confessions" as the title, and it seemed like there were a lot more than I had actually viewed, but it was probably my user error.
  • BTW, the community page you linked to is not the one with the issue (nor is it mine). http://twitterconfessions.disqus.com/ is the community page and http://twitterconfessions.com is the implementation. I've removed the #disqus_thread from the home page links for now to prevent this problem.
  • thank you very much
  • thank u for twitterconfessions.com i love it :)

Add New Comment

Returning? Login