How to integrate coComment with Movable Type (>= 3.2)
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
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.
Cerca nel Blog
Annoiato delle solite ricerche? Prova un tag cloud!
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
Non conosci i feed RSS? Hai paura che sia una fregatura? Questa breve presentazione fa al caso tuo... prenditi 5 minuti, è divertente! :)
Ultimi commenti
Ultimi post
- Benvenuto Ruby.HTML.it
- The SuckRank ®
- Quale framework PHP utilizzare?
- Libro Ship it! A Practical Guide to Successful Software Projects
- C'è (34.821) posta per te
- Versione evoluta dei Google Sitelinks: sitelinks e form di ricerca
- Guida completa a Google AdSense
- Libro TextMate - Power Editing for the Mac
- Convertire un feed da RSS 0.91 a RSS 2.0
- Blogger, iscriviti al tuo feed!
Movable Type 4.1


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
If you wish, you can remove 'author' variable and use the following instead
authorID: "author",