jystewart.net : reading, writing, web development

services | portfolio | code | blog | about | contact

Code: Movable Type

MTPastEntries

Introduction

Simple instructions for MTPastEntries 0.3, by James Stewart

MTPastEntries allows you to register entries on a moveable type blog as previous versions of another, and load in the comments from those previous entries.

Installation

You will need to copy the file PastEntries.pl to the 'plugins' folder of your MT installation, and the contents of the 'php' folder to the 'php/plugins' folder of your MT installation.

Use

To register which entries should be counted as previous versions of this one, you will need to list them in this entry's keywords, using the format previously:xxx where xxx is the ID of the previous entries.

eg: if the previous versions are blog entries 12 and 132 then the keywords field should contain: previously:12 previously:132

You can then use the tags in a manner very similer to MTSimpleComments. ie:

<MTPastEntries>
	<div class="comments-body">
	
	<MTPastEntriesIfTrackback>
		<p><a name="trackback-<MTPingID>"></a><a href="<MTPingURL>">
		<MTPingBlogName></a>
		 - <$MTPingDate format="%b %e, %Y %l:%M %p"$>
		 <br /><MTPingExcerpt><br /> Read 
		 more in <a href="<$MTPingURL$>">
		 <$MTPingTitle$> »</a></p>
	</MTPastEntriesIfTrackback>
	
	<MTPastEntriesIfComment>
		<p><a name="comment-<MTCommentID>"></a>
		<$MTCommentAuthorLink$> - 
		<$MTCommentDate format="%b %e, %Y %l:%M %p"$>
		<br /><$MTCommentBody$></p>
	</MTPastEntriesIfComment>
	
	</div>
</MTPastEntries>

Download

The latest version is 0.3 and it can be downloaded here.