Fred,
This seems like something that's more appropriate for the Roller Dev
list. I've cc'd the list for your convenience.
Matt
On 4/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Would integration with cocoment be possible in roller?
CoComent allows you to track conversations..
Rqw code to implement is here:
The general code
With the code below, coComment will work in an optimal way on your blog:
* Ensures that titles and urls are correctly detected
* Enables all comments to be tracked
* Does not depend on your visitors using a bookmarklet or browser extension
JavaScript to add to your blog template
The following code should be added to the pages where your comment form appears:
<script type="text/javascript">
// this ensures coComment gets the correct values
coco =
{
tool : "MyBlogTool",
siteurl : "http://example.com/~myblog",
sitetitle : "Tom's Great Blog Title",
pageurl : "http://example.com/~myblog/?p=42",
pagetitle : "My \"Incredible\" Post",
author : "Douglas Adams",
formID : "commentform",
textareaID : "comment",
buttonID : "submit"
}
</script>
<script id="cocomment-fetchlet" src="http://www.cocomment.com/js/enabler.js"
type="text/javascript">
// this activates coComment
</script>
Note: the old code previously provided here still works, but is deprecated.
tool
name of the blog tool (choose a new one for new blog platforms)
E.g. "Blogger", "Xanga", "Kaywa", "MSN Spaces", "MySpaces", "TypePad", "Wordpress",
"Flickr" etc.
siteurl
complete URL of the blog
E.g. "http://www.domain.com/~myblog/"
sitetitle
title of the blog
E.g. "MyBlog"
pageurl
URL the post
E.g. "http://www.domain.com/~myblog/?p=19?
pagetitle
title of the post
E.g. "This is Tom?s \"great\" post"
textareaID
the name of the comment text(area) containing the text of the comment when the
form is submitted
E.g. for <textarea name="commentTextArea"></textarea> use "commentTextArea"
buttonID
name of the submit button
E.g. for <input name="SubmitButton" type="submit"> use "SubmitButton"
author OR authorID
author
author of the post, as defined in the blog tool (not on coComment)
E.g. "Douglas Adams" (if the author is unknown, this entry can be left out)
authorID
name of the input field containing the author name defined in the blog tool
E.g. for <input type="text" name="authorName"> use "authorName"
formID OR formName OR formNumber
formID
id of the form containing the comment message (if the form does not have an
id, use formName OR formNumber instead)
E.g. for <form action="submit.jsp" id="commentForm"> use "commentForm"
formName
name of the form containing the comment message, e.g. comment-form (if the
form does not have a name, use formID OR formNumber instead)
E.g. for <form action="submit.jsp" name="commentForm"> use "commentForm"
formNumber
number of the form containing the comment message, starting at 0 (if the
form DOES have a name or id, use formName OR formID instead)
E.g. 3 for the fourth form in the page (if either comment-form-name or
comment-form-id is given, this entry is ignored and can be left out)
If you prefer not to specify the type attribute in each of the script elements,
you can omit it and add the following meta tag to your page header:
<meta http-equiv="Content-Script-Type" content="application/javascript" />
--just thinking out loud
I do not have access to the comemt template at jroller.com or I would try it
already and have a user report to show you..
What do you think?
--
http://raibledesigns.com