Code Snippet #1
<div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/subconcious/embed.js"></script><noscript><a href="http://subconcious.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
Instructions
- Paste Code Snippet #1 in your HTML where you'd like the thread to appear.
- To make a link show the current comment count, add #disqus_thread to the end of the URL.
- For example, you may have a link that looks like:
<a href="http://my.website/article-permalink#disqus_thread">View Comments</a>
Paste Code Snippet #2 at the bottom before the closing </body>
Code Snippet #2
- Optional: For Step 2
<script type="text/javascript"> //<![CDATA[ (function() { var links = document.getElementsByTagName('a'); var query = '?'; for(var i = 0; i < links.length; i++) { if(links[i].href.indexOf('#disqus_thread') >= 0) { query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&'; } } document.write('<script type="text/javascript" src="http://disqus.com/forums/subconcious/get_num_replies.js' + query + '"></' + 'script>'); })(); //]]> </script> Done ยป
