Add discussions using disqus.com
Once you completed the setup steps on disqus.com you can use the same link in your ICE document over and over again to dynamically add discussions to any page you require.
To add discussions:
Register on http://www.disqus.com
Add a blog
Create a HTML file using the Javascript code snippet, for example
<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Discussions on Disqus.com</title>
</head>
<body>
<div id="disqus_thread" />
<script type="text/javascript" src="http://disqus.com/forums/ice/embed.js" /><noscript>
<a href="http://ice.disqus.com/?url=ref"> View the forum thread.</a>
</noscript>
<a href="http://disqus.com" class="dsq-brlink"> blog comments powered by <span class="logo-disqus"> Disqus </span></a><script type="text/javascript">
function() {links = document.getElementsByTagName('a');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/ice/get_num_replies.js' + query + '"> </' + 'script>');}
)();
</script>
</body>
</html>
Add the HTML file to your ICE content and link using the parameter embed, for example
http://localhost:8000/www/media/disqus.html?embed- See below for the result.Note: The discussions will only work once your content is exported and hosted. For discussions within ICE the annotations feature is more suitable (coming feature).



