DNN Forums

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

Remove link from user menu

 4 Replies
 3 Subscribed to this topic
 19 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 26
New Around Here

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: 1246
Veteran Member
MVP
MVP
You're an MVP!
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.
Veteran Member
Posts: 546
Veteran Member
MVP
MVP
You're an MVP!
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.
Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!
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 Around Here
Posts: 26
New Around Here

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

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. 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