MT InlineEditor 1.0
Seeing the flurry of activity around Inline Editing on Wordpress ever since Jay Allen mentioned it on his panel at SXSW, I thought it was time us MT'ers had something similar. Download the plugin. This animation better highlights what this plugin does (600kb)
Preserve the directories in the zip starting from your root MT directory (therefore files in the extlib/ folder in the zip go into MT's extlib/ directory and mt-ie-cookiecheck.php goes into your root mt directory etc.)
I'll need to talk you through installing this. For every blog you want this enabled on, you will need to create two index templates of the two text files in the zip (mt-inlineeditor.php and mt-inlineeditor.js) I've used MT Tags in those templates so they should work without any modification. They must be static index templates.
After that is done, add the following in the <head> section of all pages you want to be able to edit inline (I would recommend having the InlineEditor only on your Individual Entry Archives):
<script type="text/javascript" src="<MTCGIPath>mt-ie-cookiecheck.php"></script><script type="text/javascript" src="<MTBlogURL>mt-inlineeditor.js"></script>
Next just after the starting <MTEntries> tag (or just after <body> in your Individual Entry Archives) add the following
<script type="text/javascript" src="<MTCGIPath>mt-ie-cookiecheck.php"></script><script type="text/javascript" src="<MTBlogURL>mt-inlineeditor.js"></script>
<div id="entry-<MTEntryID>">
and then close the div just before the closing MTEntries (or body) tag.
Finally add the <MTInlineEditLink> tag in your template wherever you want the link to start inline editing to appear. This tag takes a text attribute that will let you specify what you want the hyperlink text to be (by default it is Edit This Entry)
For dynamic templates, you'll need to add the following rather than the tag above:
<script type="text/javascript" src="<MTCGIPath>mt-ie-cookiecheck.php"></script><script type="text/javascript" src="<MTBlogURL>mt-inlineeditor.js"></script>
<div id="entry-<MTEntryID>">
<script type="text/javascript" language="Javascript" src="<MTCGIPath>/mt-inlineeditor.cgi?id=<MTEntryID>&blog_id=<MTBlogID>"></script>
After a rebuild if you are logged into MT and have permissions to edit the entry in question, you should be able to click the InlineEditLink which will start up the inline editing form. If it experiences a javascript error, it will just take you to the entry edit page in the MT UI.
The fields present on the inline editing form are basically a watered down version of those present on MT's entry form. At the moment all the fields it will ever show are Title, Entry Body, Extended Entry, Excerpt and Keywords. Which of these fields appear depends on the field settings you have defined
If you experience any bugs post them in the comments and we'll troubleshoot it there.
Enjoy!
Thanks to Brad Choate for help with the PHP.

Geoff said:
on Mar 28, 2005 1:57 PM | Reply
Ok, I looked at the animation, but I am not quite sure what the benefits of "inline editing" are... can you explain a little bit about it before I install this? It doesn't seem to be a WYSIWYG editor, so how can it benefit me?
thanks!
Arvind Satyanarayan said:
on Mar 28, 2005 2:03 PM | Reply
You can always add a WYSIWYG editor by editing the mt-inlineeditor.php file!
The advantage (for me anyways) is not having to load MT up every time to edit an entry. My entries normally have a gramatical or spelling error and having to fire up MT and navigating through the UI is annoying, now as I see the error I just hit a link and correct it then and there!
Gregory Wild-Smith said:
on Apr 1, 2005 1:16 AM | Reply
Its one of those things I tihnk you'll either have a use for or not. I've had to field similar questions with WordPress: Touched. Its something that would be a nice feature to many, but an essensial to none.
I'm trying to incorporate a WYSIWYG addon to that for the 1.0 release. Its doable by basically an additional hunk of JS.
Top plugin though :) Which reminds me.. time to see if that Opera < 7.6 fix works "out of the box" with my code... not that I have Opera to test on tho...
George said:
on Apr 9, 2005 6:25 PM | Reply
Maybe I'm just being blind, but what tag? I can't seem to find which tag to use :(
Arvind Satyanarayan said:
on Apr 9, 2005 7:26 PM | Reply
Bah sorry, I had forgotten to encode the tag.