Simply Threaded 1.0 Manual

Installing Simply Threaded

Installation is quite simple.

Extract the distribution and preserve the directories. The directories that have been extracted correspond to the directories in your Movable Type installation. Upload these directories to your Movable Type installation such that file structure looks like so:

MT_DIR/
    |__ php/
    |   \__ plugins/
    |      |__ block.MTRepliedComment.php
    |      |__ function.MTCommentReplyField.php
    |      |__ function.MTCommentReplyLink.php
    |      |__ init.simplythreaded.php
    |
    |__ plugins/
        \__ SimplyThreaded/
           |__ lib/
           |  |__ SimplyThreaded/
           |  |  \__ CommentThread.pm
           |  |
           |  |__ SimplyThreaded.pm
           |
           |__ simplythreaded.pl

If the plugin was successfully installed, you should see something similar to this on the Plugins listing under System Overview.

Simply Threaded Registration

Using Simply Threaded

As the name suggests, Simply Threaded is extremely easy to setup, just three steps:

  1. The first step is to add the <MTCommentReplyLink> template tag where you would like the Reply link to appear. This must be within an <MTComments> container tag. We recommend placing it in the comment posted byline:

    <p class="comment-footer">
          Posted by
          <$MTCommentAuthorLink default_name="<MT_TRANS phrase="Anonymous">"$> <$MTCommentAuthorIdentity$> |
          <a href="#comment-<$MTCommentID$>"><$MTCommentDate$></a> |
          <MTCommentReplyLink>
    </p>
    

    By default, MTCommentReplyLink creates a link with the text Reply. However, this can be customized by giving the tag an optional text attribute like so, for example <MTCommentReplyLink text="Reply to this comment">.

  2. The next step is to use a new <MTRepliedComment> container tag to show who the commenter is replying to. You can use any of the MTComment template tags you find in Movable Type within an MTRepliedComment container as well as <MTElse> which can be used as the "default" (i.e. if the comment is a new thread and not replying to someone else). Once again, this tag must be placed within an <MTComments> container tag and we recommend the posted byline:

    <p class="comment-footer">
          <MTRepliedComment>Posted, in reply to <a href="#c<MTCommentID>"><MTCommentAuthor>'s comment</a>, by<MTElse>Posted by</MTElse></MTRepliedComment>
          <$MTCommentAuthorLink default_name="<MT_TRANS phrase="Anonymous">"$> <$MTCommentAuthorIdentity$> |
          <a href="#comment-<$MTCommentID$>"><$MTCommentDate$></a> |
          <MTCommentReplyLink>
    </p>
    

    So with the above example, if the comment was replying to someone else, the posted byline would read

    Posted, in reply to X's comment, by Y
    

    whereas if it were a new thread, it would simply read

    Posted by Y
    
  3. The final step is to add the MTCommentReplyField template tag within your comment form. We recommend it is added straight after the "remember me" checkbox:

    <p>
       <label for="comment-bake-cookie"><input type="checkbox"
          id="comment-bake-cookie" name="bakecookie" onclick="if (!this.checked) forgetMe(document.comments_form)" value="1" />
          Remember personal info?</label>
    </p>
    <MTCommentReplyField>
    

Once these changes are made, make sure to rebuild the necessary files!

5 Comments

dan said:
on Dec 16, 2007 7:24 PM | Reply

My download of Simply Threaded does NOT contain this file structure:

MTDIR/ |_ php/ | __ plugins/ | |_ block.MTRepliedComment.php | |_ function.MTCommentReplyField.php | |_ function.MTCommentReplyLink.php | |_ init.simplythreaded.php | |_ plugins/ _ SimplyThreaded/ |_ lib/ | |_ SimplyThreaded/ | | __ CommentThread.pm | | | |_ SimplyThreaded.pm | |_ simplythreaded.pl

Where is this download?

Dan

figleaf said:
on Dec 19, 2007 12:32 AM | Reply

I've got a similar problem to Dan's. There's no definition for in the version of SimplyThreaded.pl I downloaded in mid-December 2007.

(Version information in the file is... I think... use base 'MT::Plugin'; our $VERSION = '1.02'; our $SCHEMA_VERSION = '1.11';)

Since I kind of need it at the moment I may take a poke at writing something (eww) but I might instead wish I had been patient. :-)

Thanks for all the great work on all these great plugins, Arvind. Very cool work.

fl

figleaf said:
on Dec 19, 2007 5:17 AM | Reply

Ok, so it looks like the tag MTRepliedComment is changed in the current version and there might be a couple other considerations. Anyway, the steps for "Creating Hierarchical Threads" listed in the sidebar contain all the correct and, correctly located and nested, tags.

fl

Jin said:
on Jan 23, 2008 5:58 AM | Reply

なんかね、動かないわけよ。 Replyをクリックしても、何もならないし。 なんで??

Carina said:
on Feb 10, 2008 11:03 AM | Reply

Arvind, please give a hint on how to get Simply-threaded to show which comment I am replying to as the manual does not cover that part as the functions with does not work on the MT4.1 version.

I got the threaded comments working but I would somehow like to show whom I am replying to or perhaps even better the comment I am replying to.

How do you get the quotes showing in reply to a comment?

Also Reply does only work if you are not logged in and there is no were it says that you need to be logged in to be able to reply to a comment. This should not be required as for example I am allowing anonymous comments requiring emails and they can never reply to a comment.

About

This is part of the official user manual for Simply Threaded, a plugin for Movable Type by Arvind Satyanarayan.

More Information »

Screenshots

Click a screenshot to browse through the gallery or the arrows to flip through them

←→

I Heart Melody