How to integrate coComment with Movable Type (>= 3.2)

| | Commenti (2) | TrackBack (0)

On Semptember 18, coComment staff posted a news about an update of the code used to integrate comments tracking on your blog.

The code sets a few blog variables such as page title or blog name used by coComment system to ensure that all blog details are correctly detected.
If you use a coComment supported blogging platform you can forget to manually integrate coComment inside your blog, but it's always recommended.


To integrate coComment into your Movable Type blog you should follow these instructions.

Movable Type code

Starting from the new tracking code schema, the following code is the Movable Type version.

<MTIfCommentsActive>
<script type="text/javascript">

// this ensures coComment gets the correct values
coco =
{
tool : "MovableType",
siteurl : "<$MTBlogURL$>",
sitetitle : "<$MTBlogName encode_html="1"$>",
pageurl : "<$MTEntryPermalink$>",
pagetitle : "<$MTEntryTitle encode_html="1"$>",
author : "<$MTEntryAuthorDisplayName encode_html="1"$>",
formID : "comments_form",
textareaID : "text",
buttonID : "post"
}
</script>
<MTIfCommentsAccepted>
<script id="cocomment-fetchlet" src="http://www.cocomment.com/js/enabler.js" type="text/javascript">
// this activates coComment
</script>
</MTIfCommentsAccepted>
</MTIfCommentsActive>

Edit Individual Entry Archive template

In a default Movable Type 3.2 or 3.3 installation the comment form is included into the Individual Entry Archive Template.
Open your template manager (Main Menu > Select your blog > Templates > Archives > Individual Entry Archive) and add the code above before the </head>.

Edit Comment Preview Template

Now it's the turn of Comment Preview Template.
Open your template manager (Main Menu > Select your blog > Templates > System > Comment Preview Template) and add the tracking code, again, before the </head>.

Work in progress...

Rebuild your site

Now save and close all templates and rebuild your blog.

Note. This quick tutorial is valid for a default Movable Type Installation.
If you changed default templates it's up to you find the right templates to add the tracking code.

0 TrackBacks

Listed below are links to blogs that reference this entry: How to integrate coComment with Movable Type (>= 3.2).

TrackBack URL for this entry: http://www.simonecarletti.com/mt4/mt-script-tb3.cgi/481

2 Comments

srah Author Profile Page said:

The line:

author : "",

Seems to make it always list *my* name as the commenter's name on CoComment. What tag should I be using to display the commenter's name instead?

Hi srah,
this is true, this tag will display your name.

Looking at Cocomments docs it seems the value is correct.

Here http://www.cocomment.com/tools/integrate
I read

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)

If you wish, you can remove 'author' variable and use the following instead


authorID: "author",

Leave a comment

Disclaimer:
SPAM comments or messages posted just in order to take advantage of search engines popularity might be removed without any notice.
Comments are filtered against Akismet antispam service, keyword filters and blacklists.

FeedBurner Network

Questo blog è parte del network Web Marketing e Motori di ricerca (a FeedBurner Network).

Scopri di cosa si tratta (sì, lo so, il post introduttivo è un po' lungo...)

Non perderti gli aggiornamenti

Feed Sottoscrivi il feed

Non conosci i feed RSS? Hai paura che sia una fregatura? Questa breve presentazione fa al caso tuo... prenditi 5 minuti, è divertente! :)

servizi e curiosità

Add to Technorati Favorites
Aggiungi il blog al tuo elenco di preferiti su Technorati.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 4.1