Announcement

Collapse
No announcement yet.

Hide Memberlist Page from Guests

Collapse
This topic is closed.
X
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Free Mod Hide Memberlist Page from Guests

    As of this writing, there is no permission to prevent Member List page to be viewed by guests in vB5. A workaround is to hide the content via CSS. This is not a foolproof solution but enough for average users.

    Add this in css_additional template or via Sitebuilder > Style > CSS Editor.

    UPDATE: This mod is no longer needed since when Module Permissions were implemented.

    Code:
    .logged-out .memberlist-widget {
        visibility: hidden;
    }
    
    .logged-out .memberlist-widget:before {
        content: "Sorry, you are not authorized to view this page.";
        visibility: visible;
    }
    Screenshot:
    Click image for larger version  Name:	memberlist.png Views:	1 Size:	21.7 KB ID:	2179
    Last edited by glennrocksvb; 05-17-2018, 11:56 PM.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    #2
    It worked, thanks Glenn!

    Comment


      #3
      brilliant.... works great on my site!

      Comment


        #4
        thanks

        Comment


          #5

          This is great glennrocksvb

          Any idea how to also hide the field "Last Activity:" on all members's profiles?
          HostXNow - UK Web Hosting

          Comment


            #6
            Originally posted by webgeek247 View Post
            Any idea how to also hide the field "Last Activity:" on all members's profiles?
            This?
            Code:
            .profile-sidebar-widget .profileContainer .profile-info .profile-info-item:first-child {
                display: none;
            }
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment


              #7
              Originally posted by glennrocksvb View Post
              This?
              Code:
              .profile-sidebar-widget .profileContainer .profile-info .profile-info-item:first-child {
              display: none;
              }
              Great! How about so only admin can see it?
              HostXNow - UK Web Hosting

              Comment


                #8
                Try this to not hide it except Administrators usergroup: (Change usergroup id number accordingly)

                Code:
                body:not([data-usergroupid='6']) .profile-sidebar-widget .profileContainer .profile-info .profile-info-item:first-child {
                    display: none;
                }
                If you want to exclude more usergroups, just add another :not() selector like this:

                Code:
                body:not([data-usergroupid='6']):not([data-usergroupid='7']) .profile-sidebar-widget .profileContainer .profile-info .profile-info-item:first-child {
                    display: none;
                }
                Helpful? Donate. Thanks!
                Buy me a coffeePayPal QR Code
                Fast VPS Host for vBulletin:
                A2 Hosting & IONOS

                Comment


                  #9
                  Excellent! Thanks glennrocksvb
                  HostXNow - UK Web Hosting

                  Comment


                    #10
                    There is some option to specifically hide a publication within the page. For non-registered users.
                    For example, page 37 post 34. But only publication 34 is hidden and not the other publications that are related to that page. Thank you

                    A cordial greeting

                    Comment


                      #11
                      This mod was made during the time when there were no module permissions yet. So this mod is no longer needed.
                      Helpful? Donate. Thanks!
                      Buy me a coffeePayPal QR Code
                      Fast VPS Host for vBulletin:
                      A2 Hosting & IONOS

                      Comment


                        #12
                        Updated first post and close this topic.
                        Helpful? Donate. Thanks!
                        Buy me a coffeePayPal QR Code
                        Fast VPS Host for vBulletin:
                        A2 Hosting & IONOS

                        Comment

                        Users Viewing This Page

                        Collapse

                        There is 1 user viewing this forum topic.

                        • Guest Guest

                        Latest Posts

                        Collapse

                        Working...
                        X
                        Searching...Please wait.
                        An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                        Please push the back button and reload the previous window.'
                        An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                        Please push the back button and reload the previous window.'
                        An internal error has occurred and the module cannot be displayed.
                        There are no results that meet this criteria.
                        Search Result for "|||"