Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: ravishu on May 17, 2017, 11:35:38 AM

Title: Post counts - setting character count for a post to count
Post by: ravishu on May 17, 2017, 11:35:38 AM
It would be great if there was a way to limit post counts so that only substantive content counted.  We get too many members that make one or two word posts just to get a certain number of posts needed to unlock certain areas of the board or access the PM function.

We've had problems with weirdos making stupid posts just so they could harass female members with indecent proposals via PM.  There are also members that make really thoughtful posts that get overshadowed by people playing in the game threads "Movies ABC" - start with a movie that begins with A, etc., that require just a few words to answer.
Title: Re: Post counts - setting character count for a post to count
Post by: Irisado on May 17, 2017, 11:55:13 AM
You can modify board permissions, so that certain boards do not increase post count.  That would solve at least some of the problems that you're referring to with game playing topics (assuming that they are all in the same board).  Otherwise, the problem sounds like one of moderation to me. Make it against the forum rules to post non-constructive one liner replies and delete any posts breaching those rules.
Title: Re: Post counts - setting character count for a post to count
Post by: ravishu on May 17, 2017, 12:15:07 PM
I am aware of the ability to make posts on certain boards not count.

Our board guarantees freedom of speech, so yeah drop a meme if you want, but I don't want it to count as a post.
Title: Re: Post counts - setting character count for a post to count
Post by: Shambles on May 17, 2017, 12:36:11 PM
Slap this mod in:

https://custom.simplemachines.org/mods/index.php?mod=1528

Yeah, it's spelt incorrectly (minimun  ::)) but you could use it to dispel posts with insignificant content.
Title: Re: Post counts - setting character count for a post to count
Post by: ravishu on May 18, 2017, 12:52:12 PM
Except I don't want to stop these posts, I just don't want them to count.
Title: Re: Post counts - setting character count for a post to count
Post by: Gluz on May 18, 2017, 05:26:03 PM
It's surprising that there is no MOD that does this.

Give me some time, I have the idea on how to do it, but need to test it.
Title: Re: Post counts - setting character count for a post to count
Post by: Shambles on May 18, 2017, 05:45:04 PM
The mod I linked to could easily be adapted to disable the postcount increment for qualifying posts.
Title: Re: Post counts - setting character count for a post to count
Post by: Gluz on May 18, 2017, 08:03:20 PM
Quote from: Shambles on May 18, 2017, 05:45:04 PM
The mod I linked to could easily be adapted to disable the postcount increment for qualifying posts.
That mod only trow an error if the message doesn't have the minimum characters or words to be posted, and that is way before the post options were passed to the createPost function.

The modifications that need that mod to disable the post count increment is to remove the only modification to the Post.php file and change it to the appropriate place, and that is basically making a new mod, because there are some more things to take in account when updating the post count.


I have tested some things, including delete posts, if that if they didn't update the post count on creation, then they didn't update the post count on removal. Have a setting in the Admin Panel next to the Max length of the post.
Title: Re: Post counts - setting character count for a post to count
Post by: Gluz on May 18, 2017, 10:46:28 PM
Well after test in a couple of test forums, I have the package, I'll submit that to the MOD site, but it won't show up until the team review and approve the MOD, and that could take some time.
Title: Re: Post counts - setting character count for a post to count
Post by: ravishu on May 19, 2017, 11:50:48 AM
Quote from: Gluz on May 18, 2017, 10:46:28 PM
Well after test in a couple of test forums, I have the package, I'll submit that to the MOD site, but it won't show up until the team review and approve the MOD, and that could take some time.

Awesome!  I am happy to wait.
Title: Re: Post counts - setting character count for a post to count
Post by: Steve on May 19, 2017, 02:39:54 PM
Will mark this solved then. :)
Title: Re: Post counts - setting character count for a post to count
Post by: Gluz on June 10, 2017, 04:13:38 PM
Hello,

The Customization Team has just approved the MOD, after a few revisions of the install code.

https://custom.simplemachines.org/mods/index.php?mod=4145