Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to remove the link?

Hi a noobie question, how do i remove the link that it ads on my navigation menu? I don't want the link "Members" .

Thanks!

Comments

  • jackmaessenjackmaessen ✭✭✭
    edited April 2016

    in default.php of the plugin you have this function:

      public function Base_Render_Before($Sender) {
            $Session = Gdn::Session();
    
            if (($Sender->Menu) &&
                    ((CheckPermission('Plugins.MembersListEnh.GenView')) ||
                    (CheckPermission('Plugins.MembersListEnh.IPEmailView')))) {
                     //$Sender->Menu->AddLink('Members', T('Members'), 'members'); // disable this line
            }
        }
    

    Disable line 7 above

  • Sweet thanks

  • R_JR_J Admin

    If you do not need that link, you could completely comment out public function Base_Render_Before?. There is no need to call that function if no action is taken there.

    Put a /* before and a */ below it.

  • People could still access the list even if you remove the link from view.

Sign In or Register to comment.