Why? I dunno.. I just thought it maybe a good idea.
In lang.lib.account_blocked.php add somewhere after " $LANG['blocked'] = array ( ":
"You are not able to block this member.", //MOD
In lib.account_blocked.php BEFORE " // Insert blocked " comment section add:
$result = $DB->query("SELECT group_id FROM " . DB_PREFIX . "members WHERE member_id = '$id' AND group_id = 1 LIMIT 1");
if ($DB->num_rows($result)) {
$TEMPLATE->set_message("error", ($LANG['blocked']['cant_block_member']), 0, 0);
redirect(VIR_PATH . ($PREFS->conf['fancy_urls'] ? "member/$id/" : "index.php?m=member_profile&p=profile&id=$id"));
}
//MOD END
Please note, re: group_id = 1
where 1 is your admin group's id (if it is something different change the number)





Comments
Log in to leave a comment