#1 2006-04-29 08:52:03
- steph
- coComment Team
- Registered: 2006-01-13
- Posts: 204
update integrate page
http://cocomment.com/integrate needs updating to reflect that non-coCo comments on integrated blogs are now captured. (Except if I totally misunderstood the whole thing.)
Offline
#2 2006-04-29 11:57:40
- Mocha
- Senior Member
- Registered: 2006-04-22
- Posts: 234
Re: update integrate page
Yes, that page is outdated. What it says is still correct, since non-Coco comments will NOT be tracked if you follow those instructions - but obviously we should mention the new & better ways of embedding coComment in blogs, using the trackAllComments script attribute. Is that even documented *anywhere* at this point?
Offline
#3 2006-04-30 01:03:10
- Mocha
- Senior Member
- Registered: 2006-04-22
- Posts: 234
Re: update integrate page
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.
Also, keep in mind that this is an experimental feature. We are curious what your experiences will be, how well it will work and where it will break :-)
Chris
Last edited by Mocha (2006-04-30 09:01:29)
Offline
#4 2006-04-30 20:53:35
- Lau
- New member
- Registered: 2006-01-04
- Posts: 6
Re: update integrate page
Wow, thanx for that. I just put it on my blog and it works like a charm. We'll update the documentation with this asap, another proof we should really have a wiki for that
Last edited by Lau (2006-04-30 20:54:18)
Offline
#5 2006-05-01 00:50:14
- drei
- New member
- Registered: 2006-02-15
- Posts: 7
Re: update integrate page
Using the enabler.js before calling cocomment.js apparently disregards the cocomment_force setting when it is set to false.
Offline
#6 2006-05-01 03:16:30
- Mocha
- Senior Member
- Registered: 2006-04-22
- Posts: 234
Re: update integrate page
What's the symptom you've seen as a result of this? Do you get a login window? That would be bad. But if you get an enable button then that's the intended behavior.
Certainly, it should behave the same way, though, no matter whether you point to enabler.js or cocomment.js. I'm looking into it...
Offline
#7 2006-05-01 04:39:57
- jackyan
- Senior Member
- Registered: 2006-02-08
- Posts: 146
Re: update integrate page
Mocha, if I am using Blogger, where do I put the enabler.js code, please? Is it in the headers of the page?
Offline
#8 2006-05-01 09:02:30
- Mocha
- Senior Member
- Registered: 2006-04-22
- Posts: 234
Re: update integrate page
It doesn't matter really *where* you put it, as long as you can find a way of getting the script tags into your comment form pages, which is exactly the problem with Blogger. At least I'm not aware of a way that can be done in Blogger. Is anybody else?
Offline
#9 2006-05-01 09:03:37
- Mocha
- Senior Member
- Registered: 2006-04-22
- Posts: 234
Re: update integrate page
Convincing Blogger.com to add that option for everybody would be the solution, I guess :-)
Offline
#10 2006-05-01 10:01:31
- jackyan
- Senior Member
- Registered: 2006-02-08
- Posts: 146
Re: update integrate page
Thank you, Mocha.
Offline
#11 2006-05-01 13:35:26
- Mocha
- Senior Member
- Registered: 2006-04-22
- Posts: 234
Re: update integrate page
@drei: For the record, the recommended approach is to NOT set the cocomment_force global variable to false (basically, to not set it at all) when using the new trackAllComments feature.
Last edited by Mocha (2006-05-01 13:36:01)
Offline

