PDA

View Full Version : Stop mods permenanently banning


Duckface
04-27-2015, 10:14 PM
Hiya,

I want my mods to be able to normally ban up to around 3 months, however anything after that I want to stop them from using that $liftdate.

I've tried myself and failed. So overall, I want this to be global across the board if:


if (can_moderate(0, '', $userinfo['userid'], $userinfo['usergroupid'] . (trim($userinfo['membergroupids']) ? ",$userinfo[membergroupids]" : ''))

I've revoked my changes and I've come here to see if anyone else has tried this?

alcazarx
04-28-2015, 06:47 AM
You need to edit the "banning.php" in your ModCP-directory and remove the dates from the periodoptions array you dont want to have.

Note, this will also apply for administrators, since the ACP-Ban-Function links to the ModCP.
You will need then to check if the user is an administrator, when yes allow all ban-options, else restrict them.

May the Force(HSS) be with you :rolleyes:

Duckface
04-28-2015, 02:13 PM
I see, thank you.