mikelietz dot org

coded by mikelietz

 

____  _____  _____  _____  
 /  __|/  _  \|  _  \|  ___| 
(  (__(  (_)  ) |_\  \  ___| 
 \____|\_____/|______/_____|

two word count plugins for habari

Habari? What's that?

Habari is an open-source next-generation blogging platform that is actively developed and enhanced by a community of developers and users. It can be modified with plugins to extend its functionality.

What do these plugins do?

These plugins provide a quick and easy tally of words used in individual posts and all posts with a given tag. For example, a National Novel Writing Month participant could tag all of their novel's posts with 'nano' and see the tally at a glance, in addition to being able to see the count from each post.

Requirements

Version 0.4.1 of Habari or later

Download

These will always link to the most recent versions:

Word Count by Tag

Post Word Count

Installation and use

Word Count by Tag

Unzip wordcountbytag.zip in /user/plugins. Then activate and configure it in the Plugins Admin page. If you leave the 'tags to include' box empty it will count all words from published posts with all tags.

Here is the template tag for adding to your theme:

echo $word_count;

Post Word Count

Unzip postwordcount.zip in /user/plugins. Then activate it in the Plugins Admin page. There is nothing to configure.

Here is the template tag for adding to your theme, inside the posts loop:

echo PostWordCount::get_word_count( $post->content_out );

Links

Questions and Comments

belong on the launch post, or can be directed to me via my contact page.

History

0.1 (14 May 2008): Page created. Code is quite messy. Results adequate.