PDA

View Full Version : Minimum Time between Posts for Admins and Mods too.


oulman
03-22-2012, 05:10 PM
Hello
Greetings.
I want to know, if there is any Addon or Hack available or customization to set Minimum Time between posts for Admins and Mods too????
By Default, Admins and Mods are excluded from Flood check, and i want to add them to..

oulman
03-23-2012, 05:56 PM
Can anyone update me please????

Lynne
03-23-2012, 08:08 PM
I think you may have to actually modify the code around line 454 of class_dm_threadpost.php to change this for posts. Do a search in your files for "floodchecktime" and you'll see the various files it shows up in (checking in blogs, visitormessages, report posts, picture comments and group messages all use it).

oulman
03-28-2012, 03:39 PM
I think you may have to actually modify the code around line 454 of class_dm_threadpost.php to change this for posts. Do a search in your files for "floodchecktime" and you'll see the various files it shows up in (checking in blogs, visitormessages, report posts, picture comments and group messages all use it).

Hello Lynne
Thanks for your Reply, as i am a newbie. I am stuck on Line 454
!can_moderate($this->info['forum']['forumid'], '', $user['userid'], $user['usergroupid'] . (trim($user['membergroupids']) ? ",$user[membergroupids]" : '')))
Should i ad usergroup ids in $user['usergroupid'] . (trim($user['membergroupids']) ? "?
and what to do after this?
Need bit detail if possible.

Lynne
03-28-2012, 07:01 PM
Try removing the part about can_moderate.

Was:
if ($user['lastpost'] <= TIMENOW AND
!can_moderate($this->info['forum']['forumid'], '', $user['userid'], $user['usergroupid'] . (trim($user['membergroupids']) ? ",$user[membergroupids]" : '')))
Try:
if ($user['lastpost'] <= TIMENOW)