No Perm Ban
No Ban (Perm or Temp)
All credits to PJGIH
PHP:
<?php
if(!defined("IN_MYBB")) {
die("This file cannot be accessed directly.");
}
//Add Your Hooks
$plugins->add_hook("modcp_do_banuser_start", "nopermaban");
//REQUIRED
function nopermaban_info()
{
return array(
'name' => 'No PermaBan',
'description' => 'Disallows mods and supermods from permabanning members.',
'website' => 'http://wbcu.tk/PJGIH',
'author' => 'PJGIH',
'authorsite' => 'http://wbcu.tk/PJGIH',
'version' => '1.0',
);
}
function nopermaban_activate()
{
}
function nopermaban_deactivate()
{
}
function nopermaban() {
global $mybb,$db,$lang;
if($mybb->input['liftafter'] == "---" && $mybb->user["usergroup"] != 4)
{
error_no_permission();
}
}
?>
No Ban (Perm or Temp)
PHP:
<?php
if(!defined("IN_MYBB")) {
die("This file cannot be accessed directly.");
}
//Add Your Hooks
$plugins->add_hook("modcp_banning_start", "nopermaban");
//REQUIRED
function nopermaban_info()
{
return array(
'name' => 'No PermaBan',
'description' => 'Disallows mods and supermods from permabanning members.',
'website' => 'http://wbcu.tk/PJGIH',
'author' => 'PJGIH',
'authorsite' => 'http://wbcu.tk/PJGIH',
'version' => '1.0',
);
}
function nopermaban_activate()
{
}
function nopermaban_deactivate()
{
}
function nopermaban() {
global $mybb,$db,$lang;
if($mybb->input['liftafter'] == "---" && $mybb->user["usergroup"] != 4)
{
error_no_permission();
}
}
?>
All credits to PJGIH