Topic: Disallow moderators to ban some user groups exept admins

can i do it and HOW can i do it? smile

Re: Disallow moderators to ban some user groups exept admins

I'm afraid you can't.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Disallow moderators to ban some user groups exept admins

it's a pity... vip-users will not appear at my forum smile

Re: Disallow moderators to ban some user groups exept admins

Just instruct your moderators to not ban people in that user group?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Disallow moderators to ban some user groups exept admins

Well, if you want a quick and dirty hack to do this:
admin_bans.php
FIND

        // Make sure we're not banning an admin
        if (isset($group_id) && $group_id == PUN_ADMIN)
            message('The user '.pun_htmlspecialchars($ban_user).' is an administrator and can\'t be banned. If you want to ban an administrator, you must first demote him/her to moderator or user.');

AFTER, ADD

        // Make sure we're not banning a VIP
        if (isset($group_id) && $group_id == [VIP group])
            message('The user '.pun_htmlspecialchars($ban_user).' is a VIP and can\'t be banned.');

where [VIP group] is the id of the group that VIPs are

Re: Disallow moderators to ban some user groups exept admins

ok, it's great. thanks