Announcement

Collapse
No announcement yet.

Banning Other Users

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Banning Other Users

    Hi

    I have several Non Moderator groups that I need to be 'ban-able' is this possible? Because currently they can only be banned if they are a Normal user

  • #2
    In user.php (mod folder!), replace this:
    Code:
      if ($banuser['usergroupid']!=2 or $ismod) {
    with this:
    Code:
      if (($banuser['usergroupid']!=2 and $banuser['usergroupid']!=76 and $banuser['usergroupid']!=45) or $ismod) {
    Just change 76 and 45 to the ID of the groupd you'd like to be able to ban. You can add/remove more usergroups.
    Chen Avinadav
    Better to remain silent and be thought a fool than to speak out and remove all doubt.

    גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

    Comment


    • #3
      Thanks!

      How do I find out which number a usergroup is? And also which line do I edit, as there are to with the same format, if ($banuser['usergroupid']!=2 or $ismod) {

      Cheers,

      Comment


      • #4
        You must replace that code in both places, or it won't work!

        And you can find out the ID of a usergroup by going to Usergroups => Modify => Hover [edit] for that usergroup and see the ID in the status bar. (Admin CP)
        Chen Avinadav
        Better to remain silent and be thought a fool than to speak out and remove all doubt.

        גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

        Comment


        • #5
          Brilliant works first time too! Unusual for me!

          Thanks again,

          Comment


          • #6
            I know this isn't connected but I would like to allow my moderators to edit users profiles, could you tell me how to do this please?

            Comment


            • #7
              That would require a lot more hacking to user.php.
              I know a lot people asked for this, so you could try and bump a post in the Requests forum.
              Chen Avinadav
              Better to remain silent and be thought a fool than to speak out and remove all doubt.

              גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              X