Community Page
- blog.disqus.net/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Good to hear that you are doing some enhancements with your system and services. Looking forward for the improved results.
- Nobody cares ? All the threads in the Support forum are with no reply :(
- Only my spirit is young. I've been on this earth quite a while, possibly longer than you. And if have read much about our history both American and the rest of the world. I also studied my...
- Interesting indeed! http://fakesteveballmer.blogspot.com
- Hey I like your stuff here! Do you got a job dude? http://fakesteveballmer.blogspot.com
DISQUS Blog and Forum
The official Disqus forum. This is the place to receive beta support and offer suggestions.
I just added Disqus comments to RSSmeme (http://www.rssmeme.com/). It works pretty well but what I really wanted to do was have the embed.js work on an arbitrary div. Currently it works on a div with id "disqus_thread" which is fine for most blogs but I wanted to have a link on every story that would slide down the thread and comment form.
In order for that to work I need to be able to tell embed.js two things. 1) what div to work it's magic on so I can have a different id for each div and 2) the corresponding url for this thread.
I might be missing something, but I'm not sure that this is possible at the moment.
In order for that to work I need to be able to tell embed.js two things. 1) what div to work it's magic on so I can have a different id for each div and 2) the corresponding url for this thread.
I might be missing something, but I'm not sure that this is possible at the moment.
1 year ago
You're not missing anything. Unfortunately this isn't configurable at the moment. This would make a nice documented option for developers.
We'll talk it over a bit and see what we can do. Please feel free to shoot us any suggestions or needs you may have.
1 year ago
var disqus_url = 'set_to_something';
var disqus_container_id = 'set_to_something';
$.getScript('http://disqus.com/forums/rssmeme/embed.js'); <-- that's jQuery
But it didn't work :(
1 year ago
1 year ago
We do allow you to set the container id, I stand corrected. My mistake.
1 year ago
1 year ago
That should load the Disqus thread into thread_NUM but as you can see it doesn't. It just blanks the screen and starts loading something. Firebug shows no errors.
The relevant javascript can be seen at http://media.benjamingolub.com/rssmeme/js/rssme... under the numComments function. Any help would be really appreciated; I think Disqus is great (and also built using Django, a big plus in my book!)
1 year ago
But it is quirky. If you click the comment link for a story it will correctly load it. Then go to click on one ABOVE that story and again it will work fine. Go try to load the comments for a story BELOW a story that has already loaded and it loads the comments on the FIRST one it sees.
I looked at thread.js and found that it is ONLY searching for the div with id dsq-content. I could copy this locally and fix things but I'm feeling like I'm monkey patching way too much here. Could you modify thread.js so that it looks for dsq-content WITHIN the div with id disqus_container_id instead?
1 year ago
Now we're talking!
1 year ago
1 year ago
1 year ago
1 year ago