www.coComment.com

The official coComment weblog

Blog Integration

February 16th, 2006

As you might already have noticed, we added blog integration to our TeamBlog. Now you don’t have to remember to click the bookmarklet when posting on our TeamBlog. coComment is automatically turned on, as long as you are already logged into coComment (you need to be logged in, because we don’t want to harass non-coComment users with a pesky login screen all the time).

If you are not logged in, just use the bookmarklet as usual. If you don’t want to use coComment for posting, just press the bookmarklet and coComment is turned off.

If you already added the standard integration to your blog, it is very easy to also add complete integration. Just add the following lines at the end of the block of javascript you already added:

var cocomment_force = false;

Additionally, add the following script call just below the block you already have:

<script type=”text/javascript” xsrc=”http://www.cocomment.com/js/cocomment.js”></script>

For our own WordPress TeamBlog, this means the final code looks as follows:

<script type="text/javascript">

var blogTool = “WordPress”;
var blogURL = “<?php echo get_option(’siteurl’); ?>”;
var blogTitle = “<?php bloginfo(’name’); ?>”;
var postURL = “<?php the_permalink() ?>”;
var postTitle = “<?php the_title(); ?>”; <?php if ( $user_ID ) : ?>
var commentAuthor = “<?php echo $user_identity; ?>”; <?php else : ?>
var commentAuthorFieldName = “author”; <?php endif; ?>
var commentAuthorLoggedIn = <?php if ( !$user_ID ) { echo “false”; } else { echo “true”; }; ?>;
var commentFormID = “commentform”; var commentTextFieldName = “comment”;
var commentButtonName = “submit”;
var cocomment_force = false;

</script>

<script type=”text/javascript” src=”http://www.cocomment.com/js/cocomment.js”> </script>



  • 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: