Best practice forum (Archived)

Adjusting or Customizing the 'My profile settings' menu

 
WellerErik
Adjusting or Customizing the 'My profile settings' menu
WellerErik 发表于 2013年05月3日 Friday 08:04
 

Hi Everybody,

 

We are hosting a spot with just e-learning courses. Therefore we want to keep the users pages and menus as clean as possible.

Right now I am trying to loose some of the links in the 'My profile settings' menu.

So far, I have figured out how to get the menu to look like this:

But I still would like to loose the links 'Security Keys', 'Messaging' and 'Blogs'. Is there anybody who could help me find the right check boxes to check or uncheck?!

Thanks for your suggestions.

 

Kind regards,

Chris

Curry (Core Developer)David
Re: Adjusting or Customizing the 'My profile settings' menu
Curry (Core Developer)David 发表于 2013年05月7日 Tuesday 16:06
小组 Totara

Hey Erik,

It looks like the Security Keys link is added if you have RSS feeds or web services running, so if you want to turn it off those are the places I would start looking. If it is the RSS feeds then it looks like it will show for everyone, though websevices will only make it show to people with the ability to create new tokens. If you still want to get rid of the link without turning either of those pieces of functionality off then you would have to make a small custom change to the code, commenting out this line in lib/navigationlib.php
#4153             $usersetting->add(get_string('securitykeys', 'webservice'), $url, self::TYPE_SETTING);

Hope this helps,
David

WellerErik
Re: Adjusting or Customizing the 'My profile settings' menu
WellerErik 发表于 2013年05月8日 Wednesday 05:54
 

Hi David,

 

Thanks for your reply. You are right, I have disabled the RSS feeds altogether and now it doesn't show anymore.

The same thing worked for the Blog link

Now I only need to remove the 'Messaging' link. That may be the hardest. Do you have an idea on where to remove that one?

Thank you.

 

Kind regards,

Chris  

Curry (Core Developer)David
Re: Adjusting or Customizing the 'My profile settings' menu
Curry (Core Developer)David 发表于 2013年05月8日 Wednesday 13:52
小组 Totara

Well it's not what I originally thought, there is a setting in advanced settings called messaging. If you have turned that off trying to make this dissapear you might want to turn it back on, a lot of tasks/alerts depend on it (program messages for example). To make that link dissapear you would have to remove the permissions below from the roles you want it hidden for.

moodle/user:editownmessageprofile
moodle/user:editmessageprofile

Cheers
David