Content Management
Word count plugin for Movable Type
Freshness Warning
This blog post is over 22 years old. It's possible that the information you read below isn't current and the links no longer work.
27 Jun 2002
MTWordCount is a Movable Type plugin that counts your entry’s words and inserts it into your page.
Tim Appnel has taken over the maintenance and support of this plugin as of Oct 2004.
Download
You can get MTWordCount 1.3 by downloading WordCount.zip.
Installation
Once you’ve downloaded and unzipped WordCount.zip, connect to your FTP server and open the directory where you have Movable Type installed.
Create a directory there called plugins if there isn’t one already.
Copy WordCount.pl to the plugins directory and set the permissions to 755.
Using MTWordCount
Once you’ve installed MTWordCount, using it is as simple as placing a new Movable Type tag in your template.
The <MTWordCount>
tag goes between the <MTEntries></MTEntries>
tags. The tag will count the number of words in your Main Entry text and your Extended Entry text and insert the count into your page.
Example:
<MTEntries> <p><MTEntryTitle><br> <MTEntryExcerpt> (<MTWordCount> Words) </MTEntries>
New in version 1.4 is the <MTImageCount>
tag. Authors of photo blogs can use this tag just like WordCount to get a count of all the images in an entry.
License
Like our other freeware, this plugin is released under the open-source MIT License. In plain English, that means you can do whatever you want with the software, including modifying it, selling it, or eating it, but we’re not responsible for anything that goes wrong.
Revision History
1.4 - Aug 31, 2002
(New) New tag: <MTImageCount>
.
(Changed) Speed improvements.
1.3 - July 14, 2002
(Changed) Text inside HTML tags is ignored.
(Changed) Text is split on any whitespace instead of just the space character.
1.2 - July 14, 2002
(New) Better error handling.
1.1 - June 30, 2002
(Fix) If Entry text or Extended Entry text is empty, an error may occur.
1.0 - June 27, 2002
Initial release.