Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-24 12:40:40

Sam
Member
From: New York City
Registered: 2004-06-26
Posts: 127
Website

[request] Show Article Word Count

I would love to have a plugin that would show the total number of words in an article, that for instance I could use in a form.

Title, Date, Word Count, Comments link, etc...

Both zem_article_info and lam_article_info gather this information but only show it admin-side.

Would this be an easy plugin to create?

Thanks.

Offline

#2 2009-08-24 13:21:43

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,493
Website

Re: [request] Show Article Word Count

Sam wrote:

I would love to have a plugin that would show the total number of words in an article

You mean something like this? Very rough round the edges. Could expand it to do other stuff long term…

# Name: smd_article_stats v0.1 (compressed)
# Type: Client side plugin
# Get article/excerpt statistics and display them to visitors
# Author: Stef Dawson
# URL: http://stefdawson.com/
# Recommended load order: 5

# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................

H4sIAAAAAAAAA6VWbW/aSBD+HKT+hzknFdCLAUNIgnlRe+nLVcrlKrXVndRWaG0veFXb6+6u
SxHKf7+ZtZ2YJO298QHw7MzzzLuX+Z7n77R/4jsZS7kz1b535js6jZZMGREmfKkNM5oOTn2H
FSaWymp5vvPW8BU8ZxstMysa1ArLQgmSDIe+ExuT+/2+Rt3IqvZCmfbpFHm+cqVFaT3ynUHP
q6EjrkMlclMdjie+84obqHzq828hV7kB8k1olGlgWQSR0HnCtmBinoKR8FVoYaSy3mOEoYxs
hGdj9HRVZCHBw71YO0fMGH0MRyYW2Xp+9f7ysgu7R62DdSIDlli5riymj1p4wLTmytQonW4p
5d+MYqHpJM8QrsOUYtsOig/aG8Vyw9ZtmC+g3T62sjBBECtZLl++v7p49/r3q+WyPAsUZ5/3
tBMW8OS+5C6oMDxtCLoYE4XWrRw8CmS0hTlmEVO9RGMMvRHbhzadtz+R9sFRnfIfqFcqtQWx
o3oklwnWqGOfy5ONVJHGo4F9kgWhlvmpPFtJDDmMo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VPz6p6l674/0Pd+BH/jRZezS0DzZ6manD0Si6Y5HSlW/X
aDv/kHP+/f5sGhsW4FjuNiIysT8ZPN7rkrpJqprXTeHxdC9RJjqGxlMMuwZz2Twlcd07vTHe
ZQZ7GEViF4A2rl0ULi0KX38pmLqbH9rjQmEwuzIh+HcPKRGIVKV/XI0U0J/RvWnq2RvCjbpr
ZE4mpIT7kPxorLYXV88fWmzVlT2N7J1hhBf94Vk0DoNzzgerk9Mh48OT4DwaToYDj6/OWXDq
TK//Ahf9mDVuDAAA

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2009-08-24 13:27:11

Sam
Member
From: New York City
Registered: 2004-06-26
Posts: 127
Website

Re: [request] Show Article Word Count

Heh, and again I’m reminded as to why I love Textpattern and it’s community so much!

Very much appreciated Stef, great (fast) work! Thanks a lot.

Offline

Board footer

Powered by FluxBB