|
IntenseDebateComments
How to integrate IntenseDebate commenting
IntroductionIntegrating IntenseDebate commenting into N-13 News is very simple to do. See the below screenshot for an example of how it looks. (Click to enlarge) IntegrationThe first thing you need to do is create an account over at IntenseDebate. Once you've created your account and logged in you'll need to register your site. Go here to do that. Step 1
Step 2
Choose Generic Install at the bottom. This will provide you with the code you need to integrate into the news system.
There are 2 pieces of code you need (shown in the image above) to integrate IntenseDebate. The code in the first box is what is used to display the actual comments + commentting form, the best place to put this is within the Comments Structure section of your template. Delete all other tags except the {news} tag then paste the code from the first box. Now all you need to do is show the amount of comments each news article has, that's were the second piece of code comes in handy. Paste the following code within the News section of your template wherever you want the comment count to be displayed, delete the old {comments} tag as it'll no longer be needed. <script>
var idcomments_acct = 'xxxxxxxxx';
var idcomments_post_id = '{id}';
var idcomments_post_url = 'http://dev.network-13.com/news/?id={id}';
</script>
<script type="text/javascript" src="http://www.intensedebate.com/js/genericLinkWrapperV2.js">You will have your own unique idcomments_acct provided to you by IntenseDebate. The idcomments_post_id variable is set to {id} which is the unique ID each news article has. idcomments_post_url is the URL to view the full news article/comments of a particular article, change this to match your own path. | |
