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

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" .



  • 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 Ex-Fanboy 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.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

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

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!