Please upgrade here. These earlier versions are no longer being updated and have security issues.

How to remove the link?

This discussion is related to the Members List Enhanced addon.

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

    maxyaegerhgtonight
  • Sweet thanks

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    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.


    hgtonightmaxyaegerjackmaessen
  • vrijvlindervrijvlinder Papillon-Sauvage MVP

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

    maxyaeger
Sign In or Register to comment.