• Login
  • Register

DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Remove link from user menu

You are not authorized to post a reply.
Sort:


New Member


Posts:13
New Member

    Hi,

    I need to remove all link from user menù except logout: user menù is the menù that appear when click on User Display Name

    One solution would be hide link in user menù with css... but Is there other (clean, in my opinion) way?

    Best regards,

    progmr



    Veteran Member


    Posts:1051
    Veteran Member

      If you don't want the user name to show at all, remove the USER skin object from your skin.

      If you want the name to appear, but with no link, you could use javascript to remove the link, but keep the text.

      If you also want the target pages to not work, you can do that with their page permissions.

      The clean way would be to clone the USER skin object and create one that doesn't implement the link.
      Joe Craig
      DNN MVP
      Patapsco Research Group


      Veteran Member


      Posts:341
      Veteran Member

        if you are referencing the menu on the side of the user profile page ("Profile", "Friends" "Activity Feed", ..) , this console displays predefined pages from the site template existing beneath "Activity" in the root of your site. You may easily edit or remove the pages using the Content > Pages option in the bar on the left.


        Veteran Member


        Posts:828
        Veteran Member

          Posted By progmr on 23 Apr 2021 08:57 AM

          Hi,

          I need to remove all link from user menù except logout: user menù is the menù that appear when click on User Display Name

          One solution would be hide link in user menù with css... but Is there other (clean, in my opinion) way?

          Best regards,

          progmr

          If you mean this:
          AFAIK, you can currently only influence those using CSS

           

           

           



          New Member


          Posts:13
          New Member

            Thanks all for your advice: I found a clear solution, from Joe's advice.

            I copy original skin file and I modify this copy: I comment links creation

            Another solution is CSS Edit

            div.userProperties ul li.viewProfile, 

            div.userProperties ul li.userMessages, 

            div.userProperties ul li.userNotifications, 

            div.userProperties ul li.userSettings, 

            div.userProperties ul li.userProfilename,

            div.userProperties ul li.userProfile {

                display: none;

            }

            ...but I prefer modify a custom skin

            You are not authorized to post a reply.

            These Forums are dedicated to discussion of DNN Platform.

            For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

            1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
            2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
            3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
            4. No Flaming or Trolling.
            5. No Profanity, Racism, or Prejudice.
            6. Site Moderators have the final word on approving / removing a thread or post or comment.
            7. English language posting only, please.

            Would you like to help us?

            Awesome! Simply post in the forums using the link below and we'll get you started.

            Get Involved