1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained Hide Membertab and Memberlist for Guests 1.2,1

Hides the membertab from guests and disallows the access to the memberlist for guests

  1. ragtek

    ragtek Guest

    x3sphere, TheVisitors and Luis like this.
  2. Adam Howard

    Adam Howard Well-Known Member

    Finally, one that works and doesn't require edits.

    Thank you :)

    Small request.... If in the future it would also be nice if this also included the option for the Members Online Now in the sidebar, that would be wonderful. Did I say wonderful? I really mean outstanding. :D
     
  3. Ladegro

    Ladegro Member

    Exactly what I was looking for. Does the job perfectly, thanks!
     
  4. ragtek

    ragtek Guest

  5. Gleedo

    Gleedo Active Member

    Hello, is there a way to hide the memberlist tab from everyone using this?
     
    Adam Howard likes this.
  6. ragtek

    ragtek Guest

    yes


    change in https://github.com/ragtek/MLNP/blob/master/StaticMethods.php
    PHP:
     public static function hideNavbarLink(array &$paramsXenForo_Dependencies_Abstract $dependencies)
        {
            if (!
    XenForo_Visitor::getUserId() && isset($params['tabs']['members'])) {
                unset(
    $params['tabs']['members']);
            }
        }
    to
    PHP:
     public static function hideNavbarLink(array &$paramsXenForo_Dependencies_Abstract $dependencies)
        {
            
                unset(
    $params['tabs']['members']);
        }
     
    Gleedo likes this.
  7. sylvain

    sylvain Active Member

    Does it work with XF 1.2.0 ?
     
  8. snoopy5

    snoopy5 Well-Known Member

    is this addon still supported? Did anybody had issues with XF 1.2.4?
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page