Welcome, Guest. Please Login or Register.
May 14, 2025, 12:42:05 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  disable flood control for certain membergroups?! « previous next »
Pages: [1] Reply Ignore Print
Author Topic: disable flood control for certain membergroups?!  (Read 667 times)
Cerberus
Full Member
***
Posts: 100


Who's a llama?!

WWW
disable flood control for certain membergroups?!
« on: July 16, 2003, 09:23:36 PM »
Reply with quote

Subj. This should be easy for gurus ::).

Thanks in advance!
Logged

Best Regards, Cerberus
Check out http://www.pocketpcrussia.com :)
Grudge
Global Moderator
Full Member
*****
Posts: 178


Damn llama's don't like me :(

Re:disable flood control for certain membergroups?!
« Reply #1 on: July 16, 2003, 09:40:48 PM »
Reply with quote

This is the best I could do:
In sources/post.php

Look for:
   
if ($waction == 'preview')
      Preview();

   spam_protection();

Repalce it with:
   
if ($waction == 'preview')
      Preview();
if($settings[7] != 'Administrator' && $settings[7] != 'Global Moderator' && !in_array($username, $moderators)
   spam_protection();

This would VERY simply remove the flood control for admins/mods. To enable it for certain member groups. I think to have a special member group you would do something like

if ($waction == 'preview')
      Preview();
$request = mysql_query("SELECT memberGroup FROM {$db_prefix}members
      WHERE memberName=$username
      LIMIT 1") or database_error(__FILE__, __LINE__);
   list($membergroup) = mysql_fetch_row($request);
if($membergroup!="MEMBERGROUP")
spam_protection();

Where MEMBERGROUP is the name of the group to exclude for flood protection.

Note - none of this is tested etc and is off the top of my head. Also - the tabs will not work so don't try it in boardmod :D

Hope this helps
Logged
Cerberus
Full Member
***
Posts: 100


Who's a llama?!

WWW
Re:disable flood control for certain membergroups?!
« Reply #2 on: July 17, 2003, 10:23:23 AM »
Reply with quote

Thanks! Now I see where my mistake was  ;)
Logged

Best Regards, Cerberus
Check out http://www.pocketpcrussia.com :)
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  disable flood control for certain membergroups?! « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.027 seconds with 17 queries.