Tired of counting posts?

I’m working on a new post scoring system – instead of counting the total posts of a given user, it gives each post a score based on the length and where it was posted.

Math geeks, keep reading. Everyone else should probably skip this next section:

First, we define a few constants:

DEFAULT_SCORE    = 0.1
MODIFIER_FIRST   = 0.1
MODIFIER_WORD    = 0.02
MODIFIER_CHAR    = 0.0005
MODIFIER_FORUM_* = 1 unless set by the administrators of the forum

… and a few variables:

CHARS = [the number of alphanumeric characters in the post, not counting markup]
WORDS = [the number of whitespace-separated strings of characters, not counting markup]
FORUM = [the forum that the user posted in]
FIRST = [1 if the post is the first in a topic, 0 otherwise]

… then we solve this equation:

SCORE = (DEFAULT_SCORE +
         MODIFIER_FIRST * FIRST +
         MODIFIER_CHAR * ln(CHARS)^2 +
         MODIFIER_WORD * ln(WORDS)^2) *
         MODIFIER_FORUM_{FORUM}

AutoRank is available for download, or you can try it out on my test forum.

I’ve tried to avoid some of the mistakes made in previous post count plugins – When moving a topic to another forum, editing, or (un)deleting posts, AutoRank automatically updates the score for each user involved. If anything gets out of sync due to bugs or alien invasions, there is a recount option under the tools menu.

AutoRank works nicely with Post Count Plus, but does not require it.

Advertisements