No announcement yet.

Word Count by Post or by Forum

  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Word Count by Post or by Forum

    I'm currently working on putting together a forum with some writing groups on it. One thing I'd like is to have a wordcount function within vBulletin -- meaning if a user posts a 1,200 word story, then the post will actually say 1,200 words. Up till now, users have been using 3rd-party programs to get the wordcount and type it in before posting.

    It seems like this would be a simpler feature, but I don't find it built in and I have yet to find any mods or add-ons that do so. Is there a feature like this already, and if so, how would I go about adding it in? If not, how difficult would it be to create?

    Another thing I'm curious about is, assuming it's possible to count words in a post, would it be possible to count a user's words by thread, or even by forum? Just to give a generic example, let's say there are two sub-forums, one for Poetry, one for Short Stories. I'd like to be able to see if a user has 5,000 words' worth of Poetry and 10,000 words in Short Stories.

    Thank you for any assistance with this.

  • #2
    No there is no feature like this. I would think you could write a plugin to get the word count. Use the php function str_word_count. Depending on how you write your code (like if you store this number, or where your plugin is hooked, etc.), you may be able to get this for a thread or forum.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help


    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.