Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Posting limit

Is there a way to limit the number of posts in a row that a forum user can make? For example, I want to limit a forum user from making 5 posts in a row in the same thread.

Comments

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited June 2013

    You can use Flood Control in the Dashboard to set limits as to how frequently users can post, but I don't know of anything to stop them posting a fixed number of consecutive posts, although maybe someone else does.

  • Options
    hgtonighthgtonight ∞ · New MVP
    edited June 2013

    Hmmm... You would have to hook into comment posting, look/load the discussion data set and compare the last x InsertUserIDs and throw a validation error if needed.

    Go through the Example plugin and start by dumping the sent object on the CommentModel_BeforeSaveComment_Handler hook.

    public function CommentModel_BeforeSaveComment_Handler($Sender) {
      var_dump ($Sender);
    }
    

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    I've got a plugin to do this, if you are seriously interested in this @ghurley.

    I hesitate to add it to the add-ons, since it is so esoteric.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    @ghurley

    try this - made for you - based on your specs.

    http://vanillaforums.org/addon/maxcomment-plugin

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    hgtonighthgtonight ∞ · New MVP

    Just looked at the code.

    Looks almost exactly like what I would have done. :D

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

Sign In or Register to comment.