My Findings on coComment and Movable Type 3.2 Integration


After 12-hours or so of usage and debug­ging my MT tem­plates to prop­er­ly inte­grate with coCom­ment, I final­ly got some­where to say the least. If you need to catchup to what this is all about, you may read my pre­vi­ous arti­cle on what coCom­ment can do.

Any­ways, I final­ly got around fix­ing my Indi­vid­ual Entry Archive tem­plate. I did the fol­low­ing:

  • I for­mat­ted the TITLE-tag as stat­ed in coCom­men­t’s Sup­port sec­tion,
  • fixed my old MT2.661 JS com­ment-relat­ed code to use the mt-site.js pro­vid­ed on MT3.2,
  • and edit­ed my CSS to reflect the change I have done with respect to the mt-site.js

Thing is, now I’ll have to fix the cook­ie part. It should be sim­ple. I think I just need to change the com­ment for­m’s vari­able to match that of mt-site.js. Then, match those changes in my CSS.

One oth­er issue I found through this lit­tle exper­i­ment was that coCom­ment looks for the default markup in terms of the sub­mit but­ton. That is,

<input type="submit" accesskey="s" name="post" id="comment-post" value="Post" />

So keep that in mind for those of you who just cut-and-past­ed your MT2.661 code dur­ing your upgrade to MT3.2. It’s just too bad that we can’t use our cus­tom image-but­tons. So @Steph, if you are read­ing, could you please address this as well with the team =)

Also, place­ment of the coCom­ment JS code in the head­er is tricky and strict. I was try­ing to fig­ure out why the heck it was­n’t work­ing when I went on to try JS place­ment. I end­ed with the fol­low­ing:

<script type="text/javascript" src="<$MTBlogURL$>js/general.js"></script>
<script type="text/javascript" src="<$MTBlogURL$>js/mt-site.js"></script>
<script type="text/javascript">
window.onload = function() {

// coComment entry-specific variables
var postURL = "<$MTEntryPermalink$>";
var postTitle = "<$MTEntryTitle smarty_pants="1"$>";

Last but not least, how do we tag key­words with mul­ti­ple words? I tried sep­a­rat­ing with com­mas, using dou­ble-quotes and plus-sign but to no avail. If you know, let me know. Help me, help you.

Oth­er than that, coCom­men­t’s cur­rent ver­sion is rock sol­id of a tool for blog­gers. Enjoy!


Comments Feed
  1. Steph

    Read­ing you, but I’m not quite sure I get the prob­lem. Could you explain the prob­lem with your cus­tom image-but­tons a bit more clear­ly for me? Thanks 🙂

  2. sherwin

    @Steph: I made a test-page with my pre­vi­ous tem­plate includ­ing the cus­tom image-but­ton for “Post” on the com­ment form. You may click here to go to the test-page itself.

    Note: I have dis­able the for­m’s action. But that should­n’t be a prob­lem. You should­n’t be able to see coCom­men­t’s over­lay next to the “Post” but­ton.

    PS. Any­way to tag mul­ti-key­words?

  3. Chris

    Regard­ing mul­ti-key­word tags… How about “mul­ti-key­word” or “multi_keyword”? Like you said, quotes and the plus don’t do the trick.

    Thank you for the test page with the image sub­mit but­ton prob­lem. I’ll try to get it to work there.

  4. sherwin

    NP Chris. Hope it all works out. It’ll add some val­ue to those want­i­ng cus­tom but­tons on their search forms for sure. Thanks again!