Announcement

Collapse
No announcement yet.

Disabling the Memberlist from all but Admin

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

  • #16
    Read edit to my previous post please mark.
    <<<<<<<<< It is over there !

    Comment


    • #17
      Easist thing to do is just disable the members list. As an administrator you can search for users in the admincp.

      Comment


      • #18
        Originally posted by Zachery View Post
        Easist thing to do is just disable the members list. As an administrator you can search for users in the admincp.
        Is there a simple button that does this ... withOUT disabling the UCP?

        I inserted the plugin Mark suggested and it seems to work fine.

        Jack
        Website | Facebook | Flickr Photostream

        Comment


        • #19
          Erm, why would disbling the member list disable the users control panel?

          Comment


          • #20
            Where do you disable the memberlist?

            Thanks!
            Website | Facebook | Flickr Photostream

            Comment


            • #21
              Hook location is the long dropdown list, as specified in my earlier post the one to use is memberlist_start. Just go down the list until you get to it, they are alphabetical.
              MARK.B | vBULLETIN SUPPORT

              TalkNewsUK - My vBulletin 5.5.6 Demo
              AdminAmmo - My Cloud Demo

              Comment


              • #22
                Originally posted by josiah View Post
                The only way is to turn off the memberlist in "options" then put it back on when you want to see it. If you want to be sure that no one else sees it turn off the forum while you look.


                Acp > options > user listing options.
                Originally posted by MacroPhotoPro View Post
                Where do you disable the memberlist?

                Thanks!
                Reply #4
                <<<<<<<<< It is over there !

                Comment


                • #23
                  Originally posted by Mark.B View Post
                  Strictly speaking, the below is a code modification. If you don't say anything, neither will I.
                  This restricts viewing of the memberlist to just admins:
                  Add the following plugin:
                  Product: vBulletin
                  Hook Location: memberlist_start
                  Title: memberlist permissions
                  Execution Order: 5
                  Plugin PHP Code:
                  Code:
                  if ($vbulletin->userinfo['usergroupid'] != 6)   
                   {
                        print_no_permission();
                   }
                  This assumes your admin usergroup is numbered 6.

                  If you want it to be JUST YOU:

                  Code:
                  if ($vbulletin->userinfo['userid'] != xxx)   
                   {
                        print_no_permission();
                   }
                  Change xxx to your userid.

                  Okay, I just tested this out with a Test User and it didn't work

                  Any ideas?
                  Website | Facebook | Flickr Photostream

                  Comment


                  • #24
                    Originally posted by Mark.B View Post
                    Hook location is the long dropdown list, as specified in my earlier post the one to use is memberlist_start. Just go down the list until you get to it, they are alphabetical.

                    I did everything you described to a "T" but I can still see the memberlist, with a "Test User" I created with normal permissions.

                    How can I just disable the memberlist, as Zachery suggested?

                    Thanks,

                    Jack
                    Website | Facebook | Flickr Photostream

                    Comment


                    • #25
                      Just wanted to note (and admit, to my embarrassment ) that this plugin DID work, Mark, I just didn't activate it

                      So thanks again!
                      Website | Facebook | Flickr Photostream

                      Comment


                      • #26
                        Originally posted by Mark.B View Post
                        Strictly speaking, the below is a code modification. If you don't say anything, neither will I.

                        This restricts viewing of the memberlist to just admins:

                        Add the following plugin:

                        Product: vBulletin
                        Hook Location: memberlist_start
                        Title: memberlist permissions
                        Execution Order: 5
                        Plugin PHP Code:
                        Code:
                        if ($vbulletin->userinfo['usergroupid'] != 6)   
                         {
                              print_no_permission();
                         }
                        This assumes your admin usergroup is numbered 6.
                        Thank you very much, this works great. My only issue is that I want to allow Mods and Supermods to access the list as well, but I think my coding is off:

                        Code:
                        if ($vbulletin->userinfo['usergroupid'] != 5,6,7)   
                         {
                              print_no_permission();
                         }
                        When I use that, everyone has permission again. What am I doing wrong?

                        Comment


                        • #27
                          Originally posted by logismod View Post
                          Thank you very much, this works great. My only issue is that I want to allow Mods and Supermods to access the list as well, but I think my coding is off:

                          Code:
                          if ($vbulletin->userinfo['usergroupid'] != 5,6,7)   
                           {
                                print_no_permission();
                           }
                          When I use that, everyone has permission again. What am I doing wrong?
                          You can't use a comma separated values directly like that. Use this instead:
                          Code:
                          if (!is_member_of($vbulletin->userinfo, 5, 6, 7))   
                           {
                                print_no_permission();
                           }

                          Comment


                          • #28
                            Hi Mark,

                            I've been using this for quite some time! Brilliant thank you..
                            However, recently it's just stopped working.

                            I need to keep the showgroups.php options to admins only and this used to work lovely, but not anymore.
                            Any ideas as to what we can do?

                            Many thanks

                            Comment


                            • #29
                              '
                              Originally posted by Mark.B View Post
                              Strictly speaking, the below is a code modification. If you don't say anything, neither will I.

                              This restricts viewing of the memberlist to just admins:

                              Add the following plugin:

                              Product: vBulletin
                              Hook Location: memberlist_start
                              Title: memberlist permissions
                              Execution Order: 5
                              Plugin PHP Code:
                              Code:
                              if ($vbulletin->userinfo['usergroupid'] != 6)
                              {
                              print_no_permission();
                              }
                              This assumes your admin usergroup is numbered 6.

                              If you want it to be JUST YOU:

                              Code:
                              if ($vbulletin->userinfo['userid'] != xxx)
                              {
                              print_no_permission();
                              }
                              Change xxx to your userid.
                              Would this also work for vBulletin 5? I can't find the hook location 'memberlist_start' in the list...

                              Comment


                              • #30
                                Nope, it won't.

                                Comment

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