PDA

View Full Version : Removing FloodTimer for 1 usergroup


Morgo
11-11-2001, 01:54 PM
HI,

I have one usergroup which I would not like to experience limitation of a flood timer. What do I need to change in the code so that this usergroup is floodtime free as moderators and admins?

Cheers

Admin
11-11-2001, 01:57 PM
In newthread.php and newreply.php, find this:
if ($bbuserinfo[userid]!=0 and time()-$bbuserinfo[lastpost]<=$floodchecktime and !ismoderator($foruminfo[forumid])) {
and replace it with this:
if ($bbuserinfo[userid]!=0 and time()-$bbuserinfo[lastpost]<=$floodchecktime and (!ismoderator($foruminfo[forumid] and $bbuserinfo[usergroupid]!=XXX))) {
Don't forget to chagne XXX to the ID of that usergroup!

Morgo
11-11-2001, 02:05 PM
Thank you :D

Morgo
11-11-2001, 04:26 PM
I implemented what was suggested, however it didn't seem to solve the trick.

reading the syntax below i can make a guess (and that's all it would be as I wouldn't know where to begin with PHP) should it be an 'OR' rather than 'AND' for selecting moderators and usergroupid=xxx?

Admin
11-11-2001, 05:16 PM
Wait, use this code: :)
if ($bbuserinfo[userid]!=0 and time()-$bbuserinfo[lastpost]<=$floodchecktime and (!ismoderator($foruminfo[forumid]) and $bbuserinfo[usergroupid]!=XXX)) {
(again change XXX)