DISQUS

The Disqus Blog: Naming threads when displaying comment count (using #disqus_thread)

  • Daniel Ha · 1 year ago
    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.
  • ryanw · 1 year ago
    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)
  • Jason · 1 year ago
    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.
  • ryanw · 1 year ago
    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.
  • ryanw · 1 year ago
    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.
  • اس ام اس عید نوروز · 8 months ago
    thank you very much
  • dodado.com · 5 months ago
    thank u for twitterconfessions.com i love it :)