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

Hide Membertab and Memberlist for Guests 1.2,1

No permission to download

Adam Howard

Well-known member
#2
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
 
R

ragtek

Guest
#6
Hello, is there a way to hide the memberlist tab from everyone using this?
yes


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