Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: mistake89 on November 19, 2014, 01:36:37 PM

Title: Word count in each post
Post by: mistake89 on November 19, 2014, 01:36:37 PM
Hi everyone,
I'm looking for a word count in each post.

I write in a blog and we need to count the exact number of characters we have. I don't want to stop someone posting because of the number of character, but just a number in each post.

Exists something like that?

Thank you
Title: Re: Word count in each post
Post by: Arantor on November 19, 2014, 01:49:33 PM
Characters or words? Calculating it on demand, storing it? Showing it to everyone, or only some people?

What are you calling 'words' exactly? Computers are kind of dumb like that, they don't know what a 'word' is.
Title: Re: Word count in each post
Post by: Kindred on November 19, 2014, 01:54:55 PM
not a word count... or a character count (up) --- but this mod shows characters REMAINING before the post is cut off...

http://custom.simplemachines.org/mods/index.php?mod=3722
Title: Re: Word count in each post
Post by: mistake89 on November 19, 2014, 02:52:02 PM
Perfect, it's a characters counter and this has to be visible to everyone in each post. Like in the end of the message
"Mistake89 used 250 characters".

Is it possible?
Title: Re: Word count in each post
Post by: Arantor on November 19, 2014, 02:53:23 PM
That depends on what you're calling a character, too.

Are line breaks characters? I'm also presuming that you mean an apostrophe is a single character too? (SMF does not store apostrophes as single characters. Amongst many other things)

(This clarifications might seem stupid but they are important.)

And I'm still trying to work out if you mean characters or words at this point :-/
Title: Re: Word count in each post
Post by: mistake89 on November 19, 2014, 05:15:37 PM
Yes, everything is a characters, a space as well. :)

So, not a word. I mean "home" are 4 characters.

Thank you