1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Does an add on exist to deal with flooding.

Discussion in 'Resource and Add-on Requests' started by jonsidneyb, Sep 7, 2013.

  1. jonsidneyb

    jonsidneyb Well-Known Member

    I want to be able to limit how many conversations are started per hour.
     
  2. AndyB

    AndyB Well-Known Member

    Are you having issues with spammers?
     
  3. borbole

    borbole Well-Known Member

    I have such a mod for sale. It limits the conversations per hour and it is on a group per group basis. So you can set the limit differently for each group. Please let me know if you are interested in purchasing it.
     
  4. Nobita.Kun

    Nobita.Kun Well-Known Member

    I think it simple extends XenForo_ControllerPublic_Conversation::actionInsert();
    Find line from 590 to 593:
    PHP:
    if (!$conversationDw->hasErrors())
            {
                
    $this->assertNotFlooding('conversation');
            }
    Replace by:
    Code:
    if (!$conversationDw->hasErrors())
            {
                $this->assertNotFlooding('conversation', 3600);
            }
     
    intradox likes this.
  5. jonsidneyb

    jonsidneyb Well-Known Member

    Much worse than that. I have had a huge number of shills and sockpuppets but that is not why I want this.
     
  6. jonsidneyb

    jonsidneyb Well-Known Member

    Can you send me a message about this?
     
  7. borbole

    borbole Well-Known Member

    Sure. I just pm'ed you.
     
  8. Matthew Hawley

    Matthew Hawley Well-Known Member

    Wouldn't it be
    Code:
    ('conversation', '3600')
     
  9. Nobita.Kun

    Nobita.Kun Well-Known Member

    PHP:
    public function assertNotFlooding($action$floodingLimit null)
    With @param integer|null $floodingLimit so It's should be 3000 not '3000' ('3000' is string)
     
    RoldanLT likes this.

Share This Page