Not Solved unrestrict usergroup to search flood limit
#1
Not Solved
I notice as admin, i am free to make unlimited searches in X time. So i assume there is a settings somewhere that allows X user groups unrestricted searches. But i dont see it. Basically the flood time does not effect admins. I would like to add other user groups to this "do not restrict with flood time" For searches and posts.
Reply
#2
Not Solved
Hi there and thank you for asking. I do not believe that there is a way to disable the search flood limit for specific groups however you can disable it site wide (this is not recommended)

1) Open the admin panel
2) Click configuration
3) Click settings in the sidebar (if not already selected)
4) Scroll down to Search System and click it.
5) Set "Search Flood Time (seconds)" to 0

I hope this resolves your issue and I apologize that I do not see a way to do on a group by group basis.
Software Engineer specializing in C# Program Development
Reply
#3
Not Solved
That kills it for everyone. I want to select which user groups get unrestricted/restricted. I know there is a plugin to restrict usergroup flood posting....but not search flooding.
Reply
#4
Not Solved
(2016-11-30, 08:58 PM)metulburr Wrote: That kills it for everyone. I want to select which user groups get unrestricted/restricted. I know there is a plugin to restrict usergroup flood posting....but not search flooding.

I understand that it is not an optimal solution but at the moment there is no solution in MyBB. You might be able to find a plugin or do 'core edits' however I am not aware of the solution you are looking for at the moment. Have you considered just lowering the flood maybe like 10 or 15 seconds rather than 30? I know the solution you want isn't available at the time however I am hoping to help you find a happy middle spot.
Software Engineer specializing in C# Program Development
Reply
#5
Not Solved
You can edit this line: https://github.com/mybb/mybb/blob/featur....php#L1601.
$floodignore = array(3,4,6);
if($mybb->settings['searchfloodtime'] > 0 && !in_array($mybb->user['usergroup'], $floodignore))

Would need to do this same thing on this line to: https://github.com/mybb/mybb/blob/featur....php#L1470
Reply
#6
Not Solved
(2016-11-30, 09:18 PM)dragonexpert Wrote: You can edit this line: https://github.com/mybb/mybb/blob/featur....php#L1601.
$floodignore = array(3,4,6);
if($mybb->settings['searchfloodtime'] > 0 && !in_array($mybb->user['usergroup'], $floodignore))

Would need to do this same thing on this line to: https://github.com/mybb/mybb/blob/featur....php#L1470

The issue with core edits is that they have to be made again if a file that was edited, is updated with a MyBB update. I can understand the user's frustration. That being said you've provided a good solution for the user Smile
Software Engineer specializing in C# Program Development
Reply
#7
Not Solved
I know metalburr is comfortable doing core edits. It wouldn't be terribly hard to make a plugin for it. I could always add it to my Fast Search Plugin.
Reply
#8
Not Solved
(2016-11-30, 09:46 PM)dragonexpert Wrote: I know metalburr is comfortable doing core edits. It wouldn't be terribly hard to make a plugin for it. I could always add it to my Fast Search Plugin.

I didn't see his high post count. I apologize however it might not be a bad idea to add that option into your plugin to help users avoid the whole core edit scenario.
Software Engineer specializing in C# Program Development
Reply
#9
Not Solved
dragonexpert Wrote:You can edit this line: https://github.com/mybb/mybb/blob/featur....php#L1601.
$floodignore = array(3,4,6);
if($mybb->settings['searchfloodtime'] > 0 && !in_array($mybb->user['usergroup'], $floodignore))

Would need to do this same thing on this line to: https://github.com/mybb/mybb/blob/featur....php#L1470
thanks. This means that usergroup 3,4,and 6 are not restricted in flood time, while all else are. Correct?
Reply
#10
Not Solved
(2016-12-01, 12:04 AM)metulburr Wrote:
dragonexpert Wrote:You can edit this line: https://github.com/mybb/mybb/blob/featur....php#L1601.
$floodignore = array(3,4,6);
if($mybb->settings['searchfloodtime'] > 0 && !in_array($mybb->user['usergroup'], $floodignore))

Would need to do this same thing on this line to: https://github.com/mybb/mybb/blob/featur....php#L1470
thanks. This means that usergroup 3,4,and 6 are not restricted in flood time, while all else are. Correct?

That's correct. The variable $floodignore stores an array of numbers. Anytime you desire to exempt a usergroup from the search flood, just add the group number to the array. Any group that's not in the array will be subject as normal.
Software Engineer specializing in C# Program Development
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)