Word count plugin for Movable Type

Freshness Warning
This article is over 17 years old. It's possible that the information you read below isn't current.

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.

Trackback from patchwork progression
September 2, 2003 11:45 AM

MT Tweaks

Excerpt: General, indispensible links for MT setup and configuration include: Movable Type, the girlie matters, Empty Pages, Scriptygoddess, and CSS Zen Garden. To minimize the tehno-babble on this blog while keeping track of this behemoth project, here is the ...

mashby
September 27, 2003 10:17 AM

I love this plugin! It works perfectly, and you're total weblog count works wonders too, so thank you for that too. The only thing that I wish it had was a method for adding a comma separator as needed. For example, 10,000 verses 10000. Is there anyway to do this, or have I missed something?

Trackback from -Funtime Franky-
October 10, 2003 7:04 AM

In other news today...

Excerpt: Will over at Basingstoke Life has redesigned his site with a Black theme, which while I like the black and white theme, I’m not too sure about the massive image of the Thames. Over here, I have rejigged certain parts...

Trackback from BradHeintz.com
October 14, 2003 9:32 AM

More Improvements

Excerpt: Some of them are behind the scenes, but there have been a bunch of improvements to the site over the past few days. A thousand thanks to the Six Apart people for making Movable Type, the software behind this site...

Joshu'a M
October 20, 2003 1:26 PM

Is there anyway to incorporate this into mtarchivelist so that the wordcount will show up beside each entry reference?

Megalion
October 21, 2003 12:23 AM

I'm surprised no one has asked for an option to count JUST the words in the Extended Entry. Been reading through everything in here and EntryCount and haven't found anything that indicates that either plugin could do it. Did I miss something? Or if I didn't... any chance it could be added? Thanks

JM
October 22, 2003 11:00 AM

I am getting a similar error (as reported Jun 30, 2002) with other MT plugins. Could you please specify how you got around the problem ? MT::App::CMS=HASH(0x140f18) Use of uninitialized value in split at plugins

Aine
October 26, 2003 5:12 PM

I'm trying to figure out how to limit the word count to just one category, or to do it by categories instead of on each individual entry. I've looked all over the MT site and MTplugins site, but haven't found the answer, and since I'm relatively new to MT, I'm not sure how to go about it. I got it to count the words for every single one of my entries, but what I would like is to be able to display in the sidebar, by category, the number of words in each category. Can you help me out?

Michael Heraghty
November 8, 2003 6:23 AM

Does this plugin still work for version 2.64?

Trackback from Ones and Zeros
November 13, 2003 9:03 AM

Workin' in a code mine

Excerpt: I created a modified version of MTWordCount that has the property 'exclude' that allows selection of just the Body or just the Extended Entry.

Michael
November 13, 2003 9:08 AM

This plugin works fine in 2.63. MegaLion: I also wanted the ability to just get Body or Extended Count. Go to my web page for a link to a modified version. Note: While my code works for me, this is really my first try with Perl. Luckily, this is a small plugin to work on.

Trackback from diachrony
November 19, 2003 5:31 PM

Rambling On

Excerpt: I don’t suppose this has any practical value but I came across a script for totalling the word count of a MovableType blog (which I’ve incorporated into the title bar of both my blogs). The original script was posted by...

Trackback from Mind of Knowledge
December 17, 2003 2:30 PM

MT Word Count

Excerpt: Word count plugin for Movable Type :: Kalsey Consulting Group...

Trackback from chris' introspective
September 28, 2004 2:43 PM

MTPHPWordCount

Excerpt: With the shifting of Movable Type templates to dynamic pages, many of the existing Perl plugins won't work (since PHP can't execute Perl). One function I've been waiting to see was the wordcount plugin, however I can't find one. So...

Trackback from Atomkinder Broadcast
October 5, 2004 3:12 PM

Rebuilding EmpireHax

Excerpt: You know it. I know it. Zorak know it. Moltar know it. Rebuilding the Atomkinder news system with MovableType turned into quite a mission. I used a bunch of stuff to do it, here be the record of the process...

These are the last 15 comments. Read all 67 comments here.

This discussion has been closed.

Follow me on Twitter

Best Of

  • Lock-in is bad T-Mobile thinks they'll get new Hotspot customers with exclusive content and locked-in devices.
  • The importance of being good Starbucks is pulling CD burning stations from their stores. That says something interesting about their brand.
  • Comment Spam Manifesto Spammers are hereby put on notice. Your comments are not welcome. If the purpose behind your comment is to advertise yourself, your Web site, or a product that you are affiliated with, that comment is spam and will not be tolerated. We will hit you where it hurts by attacking your source of income.
  • Where do the RSS ad startups fit in? Yahoo's RSS advertising service could spell trouble for pure-play RSS advertising services unless they adapt their business model.
  • Simplified Form Errors One of the most frustrating experiences on the Web is filling out forms. When mistakes are made, the user is often left guessing what they need to correct. We've taken an approach that shows the user in no uncertain terms what needs to be fixed.
  • More of the best »

Recently Read

Get More

Subscribe | Archives

Recently

Dysfunctions of output-oriented software teams (Sep 17)
Whatever you call it, the symptom is that you're measuring your progress by how much you build and deliver instead of measuring success by the amount of customer value you create.
Evaluative and generative product development (Aug 30)
Customers never even talk to the companies that don't fit their needs at all. If the only product ideas you're considering are those that meet the needs of your current customers, then you're only going to find new customers that look exactly like your current customers.
Product Manager Career Ladder (Aug 19)
What are the steps along the product management career path?
Building the Customer-Informed Product (Aug 15)
Strong products aren't composed of a list of features dictated by customers. They are guided by strong visions, and the execution of that vision is the primary focus of product development.
Assumptions and project planning (Feb 18)
When your assumptions change, it's reasonable that your project plans and needs change as well. But too many managers are afraid to go back and re-work a plan that they've already agreed to.
Feature voting is harmful to your product (Feb 7)
There's a lot of problems with using feature voting to drive your product.
Encouraging 1:1s from other managers in your organization (Jan 4)
If you’re managing other managers, encourage them to hold their own 1:1s. It’s such an important tool for managing and leading that everyone needs to be holding them.
One on One Meetings - a collection of posts about 1:1s (Jan 2)
A collection of all my writing on 1:1s

Subscribe to this site's feed.

Contact

Adam Kalsey

Mobile: 916.600.2497

Email: adam AT kalsey.com

Twitter, etc: akalsey

Resume

PGP Key

©1999-2019 Adam Kalsey.