Pioneer theme - Removing User Profiles and Preferences

Pioneer theme - Removing User Profiles and Preferences

by Annali Nicolaou -
Number of replies: 7

Hi,


I am running Moodle 3.1 with the Pioneer theme.


When logged in as a student the drop down menu at the top left

(as per the image attached)


The drop-down provide 2 options that I need to remove completely:


  • Profile
  • Preferences

I have tried to look through the theme options and other editing options as I am not sure if this issue is theme related issue.


If it is not possible, I need to remove the options under these links under Preferences.

  • User account
  • Repositories

and the following links under Profile


  • User Detail
  • Miscellaneous
  • Reports


These options are not used by our users, and I do not want them to be able to view or edit any of these options.


I have tried editing these out with CSS with no luck, and cannot find the options under any of the site administration.


Any help would be greatly appreciated, as I am working against a deadline.


Thank you!

Annali



Attachment Forum_2.jpg
Average of ratings: -
In reply to Annali Nicolaou

Re: Pioneer theme - Removing User Profiles and Preferences

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Before posting, please read: https://moodle.org/mod/forum/discuss.php?d=333733 and state theme version.

In reply to Gareth J Barnard

Re: Pioneer theme - Removing User Profiles and Preferences

by Annali Nicolaou -

My apologies, my Pioneer version is:  Pioneer v1.4.4


Thank you

In reply to Annali Nicolaou

Re: Pioneer theme - Removing User Profiles and Preferences

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers

The menu is actually built into Moodle and not related to the theme.  You can add items or customize it by going to Site Administration > Appearance > Theme Settings.  On this page find User Menu halfway down the page.  

You can add a remove items from this area. 

Average of ratings: Useful (1)
In reply to Chris Kenniburg

Re: Pioneer theme - Removing User Profiles and Preferences

by Annali Nicolaou -

Hi Chris,


Thank you so much for your response!


I managed to remove the preferences, But I am still struggling to remove the Miscellaneous and Reports sections under the User profile. (as per the attached image)


I would really appreciate if you could tell me where I ca disable these options.


Kind Regards,

Annali

Attachment Forum3.jpg
In reply to Annali Nicolaou

Re: Pioneer theme - Removing User Profiles and Preferences

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Annali,

You can try this, but I am pretty sure it will remove most elements from the profile page:

.userprofile .profile_tree {
    display: none;
}

Paste the code above into the Custom CSS area of the Pioneer theme on the General Settings Page.

The profile page is generated by Moodle and I do not know if there is any control over what appears there without turning off something.

I'll see if there is something else that can be done but this is more related to how Moodle displays the content of the page.

Average of ratings: Useful (1)
In reply to Chris Kenniburg

Re: Pioneer theme - Removing User Profiles and Preferences

by Annali Nicolaou -

Hi Chris,


Once again - thank you, it worked perfect, except now it just shows a list of available courses under the profile link, is there a way to remove the profile link from the drop-down altogether?


Thank you!

In reply to Annali Nicolaou

Re: Pioneer theme - Removing User Profiles and Preferences

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Annali,

This code should hide the entire menu from view:

.jsenabled .usermenu .moodle-actionmenu.show .menu {display: none;}

You'd need to provide the user/login block so that users could logout properly. 


Something else you can try instead of the code above is this.  This will try to target just the preference item in the list.

.moodle-actionmenu[data-enhanced].show .menu li:nth-child(3) {display: none;}


None of this is truly tested so you'd have to run down different screen sizes and devices to ensure it stays hidden.