www.coComment.com

The official coComment weblog

Catching ALL comments

May 1st, 2006

As you know we released a feature that allows you to catch ANY comment made on your blog regardless of the commenter being a coComment user or not. Added comfort for you and your readers with a simple javascript code,
life should always be that easy!

How can you do that? Chris posted a full explanation in the forum that I am reprinting here:

The following is just a quick draft updating the instructions for embedding coComment into your blogs. With this new approach, you will be able to track *all* the comments posted, not just the ones by fellow coComment users.

This first section you can skip, if coComment already extracts the correct information automatically. You only need it if the automatic extraction on your blog does not work or does not work reliably. This step is already documented in more detail at http://cocomment.com/integrate

<script type=”text/javascript”>
    var blogTool = “MyBlogManufacturer”;
    var blogURL = “http://www.domain.com/~myblog”;
    var blogTitle = “My Blog”;
    var postURL = “http://www.domain.com/~myblog/?p=42″;
    var postTitle = “This is Roger’s “great” post”;
    var commentTextFieldName = “messageTextArea”;
    var commentButtonName = “SubmitButton”;
    var commentAuthorLoggedIn = true;
    var commentAuthor = “Douglas Adams”;
    var commentFormName = “commentForm”;
</script>

In the following second section you’ll see the two additional attributes that you will need to include in the script tag if you want to track all comments:

<script id=”cocomment-fetchlet”
    trackAllComments=”true”
    src=”http://www.cocomment.com/js/enabler.js”>
</script>

Note that in this example I linked to the new enabler.js file instead of the cocomment.js file. Pointing directly to the cocomment.js file should work as well, but I hope loading the enabler.js file first will provide a performance benefit. If you try this new track-all-comments feature with both possible configuration options, pointing to the enabler.js and to the cocomment.js then please let us know whether you notice a performance difference.

I tried it on my blog and it works pretty well. Cool stuff, thanks Chris!



  • About

    Welcome to the blog of the coComment team. News, stories, releases, here is all you need to know about the tool helping you track your conversations on the web!

    This blog is
    coComment
    coComment

    RSS feed

    Search this blog: