This code displays the comments when the thread disqus_identifier is pointing to returns comments, but when it's a thread with zero comments, I get an error message that reads "We were unable to load Disqus. If you are a moderator please see our troubleshooting guide."
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'my_short_name'; // required: replace example with your forum shortname
var disqus_identifier = 'random';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
There has to be some way to create an empty thread. Thanks in advance.