PDA

View Full Version : Remove Flood Control for Contributing Members


Michael2
03-12-2005, 11:16 AM
I'd like to remove the "60 second rule" for a particular user group. Any ideas on how I'd go about this? Doesn't seem like it would be too difficult (and I've seen it done on another board) but I haven't had much luck finding an answer in the past.

Thanks in advance for any help. :)

beano33
04-05-2005, 09:18 PM
My sponsors are requesting this too.

why-not
04-05-2005, 10:08 PM
This is one of the only bad things about vBulletin, to many of the control are not centered around groups, which they should be!

You can do this by adding a extra bitwise mask to one of the usergroup permissions, then add a single radio yes or no row in the Admin Panel 'usergroup configuration' then just add the if() block in your script functions_newpost.php that will allow each configured group to by pass that check!

It is better to do it this way then then just hacking the script with if(this group or that group or some other group)!

If you want to do this that way then just do the following, but I don't recommend it!!!!!

FIND THIS... './includes/functions_newpost.php'

if (THIS_SCRIPT != 'editpost' AND $vboptions['floodchecktime'] > 0 AND $bbuserinfo['userid'] != 0 AND (TIMENOW - $bbuserinfo['lastpost']) <= $vboptions['floodchecktime'] AND !can_moderate($foruminfo['forumid']) AND !$post['preview'])
{
eval('$errors[] = "' . fetch_phrase('floodcheck', PHRASETYPEID_ERROR) . '";');
}



CHANGE TO...

if ( $bbuserinfo['usergroupid'] != ? )
{
if (THIS_SCRIPT != 'editpost' AND $vboptions['floodchecktime'] > 0 AND $bbuserinfo['userid'] != 0 AND (TIMENOW - $bbuserinfo['lastpost']) <= $vboptions['floodchecktime'] AND !can_moderate($foruminfo['forumid']) AND !$post['preview'])
{
eval('$errors[] = "' . fetch_phrase('floodcheck', PHRASETYPEID_ERROR) . '";');
}
}


Where as '?' would be replaced by the group id that can by pass the flood control, but remember, doing via the Admin Panel will make your job easier!

If you want it the other way, so you can configure via the Admin Panel, then tell me and I will make it real, quick! You will have make your own Help phrases, because I will not do the Admin help phrases, but everything else i will do!



Sonia

beano33
04-05-2005, 10:24 PM
If you want it the other way, so you can configure via the Admin Panel, then tell me and I will make it real, quick! You will have make your own Help phrases, because I will not do the Admin help phrases, but everything else i will do!
Sonia

Thanks, I'd much rather have it so the settings can be be changed in ACP. :)

why-not
04-05-2005, 10:40 PM
Thanks, I'd much rather have it so the settings can be be changed in ACP. :)


I am moving one of my server right now, but I'll be done in a half hour, after I will post you the code!


sonia

Michael2
05-03-2005, 09:37 AM
I am moving one of my server right now, but I'll be done in a half hour, after I will post you the code!


sonia
Thanks why-not, looking forward to it, I've been wanting this for a long time! :)

why-not
05-03-2005, 11:04 AM
Thanks why-not, looking forward to it, I've been wanting this for a long time! :)
Hi

Wow I forget about this, I am really sorry!


I will do this now, sorry for being like a turtle....

Sonia

Check back in a hour or two, I must go for coffee first, ;)

Michael2
05-05-2005, 01:58 PM
I didn't realize it had been a month when I posted that. Whenever you get a chance it will be greatly appreciated. :)

kau
11-16-2005, 04:06 AM
why-not thanks for this hack, worked fine!

MrWizard
08-31-2006, 07:54 AM
Anyone have an idea how to make this work in vb 3.6?

MrWizard
09-13-2006, 02:44 AM
*bump*

home9000
04-02-2007, 05:42 AM
any new in this request

tekstylez
06-08-2007, 02:55 PM
????

Hornstar
07-13-2007, 11:22 PM
I would love to have flood control based per usergroup for the private message system.