Announcement

Collapse
No announcement yet.

Disabling the Memberlist from all but Admin

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

  • [Forum] Disabling the Memberlist from all but Admin

    Hello;

    How would I go about disabling the Full Memberlist from all members (including Moderators) except for myself, the Administrator?

    I am putting together a paid-for forum/site, and I do not want the Full Memberlist on display for anyone but myself, because I don't want any member to be able to go down that list and directly solicit everyone on my site (as I run paid-for advertising).

    Thank you for any help,

    Jack
    Website | Facebook | Flickr Photostream

  • #2
    do you mean the community sub tab at the top?

    Comment


    • #3
      Yes, but not just the tab, but even the ability to type-in www.mywebsite.com/memberlist.php and pulling it up that way.

      In my current phpBB board, I was isntructed by forum support there to change 3 files and given MOD adjustments to completely disable all members from being able to view the memberlist at all. This is the MOD. These adjustments fixed it so that even if existing members tried to view the memberlist.php directly: they would automatically re-direct to the index. Because of the coding adjustments, only the Administrator could view the Memberlist.

      I am looking to accomplish the same thing in my VBulletin Board memberlist, so that only I can view it, before I actually import/transfer my existing phpBB board into my new VBulletin board.

      Thank you for responding,

      Jack
      Website | Facebook | Flickr Photostream

      Comment


      • #4
        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.
        Last edited by josiah; Sun 19th Feb '12, 7:47am.
        <<<<<<<<< It is over there !

        Comment


        • #5
          i think if you set 'Can View Member Info' to no in the usergroup permissions they won't be able to view memberlist either. That achieves most of what you need but it also turns off profiles completely.

          if you wanted just achieve exactly the same as the mod links then you'd need to modify the code. I haven't looked but it should be reasonable straightforward.

          $vbulletin->userinfo is the variable that holds the usergroup number, i think.

          good luck

          Comment


          • #6
            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.
            Thank you for the suggestion, but I am looking for something more permanent that that ... which doesn't require constant back-and-forth effort.



            Originally posted by punchbowl View Post
            i think if you set 'Can View Member Info' to no in the usergroup permissions they won't be able to view memberlist either. That achieves most of what you need but it also turns off profiles completely.
            if you wanted just achieve exactly the same as the mod links then you'd need to modify the code. I haven't looked but it should be reasonable straightforward.
            $vbulletin->userinfo is the variable that holds the usergroup number, i think.
            good luck
            Exactly, I need to modify the code, and that "modification to the code" is what I am hoping someone will help me with

            What I don't want to do is remove User Permissions to View Profiles (I want them to be able to do this). What I am hoping for is that someone here will help me by providing the code for me to use (and which files I need to use it in) with my new VBulletin code, like I was helped in the phpBB forums when I had an issue with their software.

            Thank you,

            Jack
            Last edited by MacroPhotoPro; Sun 19th Feb '12, 8:26am.
            Website | Facebook | Flickr Photostream

            Comment


            • #7
              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.
              MARK.B | vBULLETIN SUPPORT

              TalkNewsUK - My vBulletin 5.5.6 Demo
              AdminAmmo - My Cloud Demo

              Comment


              • #8
                Thank you very much, Mark. I will give it a shot!

                I appreciate you taking the time to help

                Cheers,
                Website | Facebook | Flickr Photostream

                Comment


                • #9
                  Originally posted by Mark.B View Post
                  Code:
                  if ($vbulletin->userinfo['userid'] != xxx)   
                   {
                        print_no_permission();
                   }
                  Change xxx to your userid.

                  Would this not be giving myself no permission?

                  Sorry for any confusion!
                  Website | Facebook | Flickr Photostream

                  Comment


                  • #10
                    Originally posted by MacroPhotoPro View Post
                    Would this not be giving myself no permission?

                    Sorry for any confusion!
                    No...you would be gving everyone BUT yourself no permission.

                    The key in the code is this:

                    !=

                    That means in effect "does not equal" or "is not equal to".

                    So what the code says is: "if the userid of the person viewing the forum DOES NOT EQUAL xxx, show a no permission error".
                    This will also mean guests get a no permission error as well.
                    MARK.B | vBULLETIN SUPPORT

                    TalkNewsUK - My vBulletin 5.5.6 Demo
                    AdminAmmo - My Cloud Demo

                    Comment


                    • #11
                      Once again, I thank you for your time taken to school a newbie
                      Website | Facebook | Flickr Photostream

                      Comment


                      • #12
                        me n all, very useful but where exactly does the code go ?
                        <<<<<<<<< It is over there !

                        Comment


                        • #13
                          AdminCP > Plugins & Products > Add New Plugin
                          MARK.B | vBULLETIN SUPPORT

                          TalkNewsUK - My vBulletin 5.5.6 Demo
                          AdminAmmo - My Cloud Demo

                          Comment


                          • #14
                            Plug in = Trouble.

                            On this occassion I'll take a chance..........., many thanks


                            Edit...
                            Had a crack at it but no luck...........what is a hook location ? there are more of them than big ants in a big ant colony acting big.........

                            Execution order ? .........is that legal without the backing of Parliament.
                            Last edited by josiah; Sun 19th Feb '12, 4:37pm.
                            <<<<<<<<< It is over there !

                            Comment


                            • #15
                              Originally posted by josiah View Post
                              Plug in = Trouble.

                              On this occassion I'll take a chance..........., many thanks
                              Plugins aren't trouble at all, as long as you're careful. Worst case scenario, you just disable it again.

                              In this case it's the simplest little bit of code ever, so no real risk. But as I say, worst case scenario you disable the plugin.
                              MARK.B | vBULLETIN SUPPORT

                              TalkNewsUK - My vBulletin 5.5.6 Demo
                              AdminAmmo - My Cloud Demo

                              Comment

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