General developer forum

How to remove user's field when creating or editing users' profile

 
Picture of William Bergman
Re: How to remove user's field when creating or editing users' profile
 

Hello,


I would like to create a certificate that will display individual "code" per student.  I had planned to use the ICQ field and hide the field.  After hiding the field it is also hidden from the certificate.  Is there a way to remove the field from the "Edit Profile" page and leave it visible to the certificate plugin?  Moodle 3.3.1 using Custom Certificate Plugin 

Custom certificate
mod_customcert
3.3 release (Build: 2017050508)
2017050508
This is quite urgent, any assistance would be greatly appreciated.



 
Average of ratings: -
Picture of Michael Milette
Re: How to remove user's field when creating or editing users' profile
Core developersParticularly helpful MoodlersPlugin developers

You can remove the user's fields from just the profile edit page by specifying #page-user-edit which is a body tag ID. Example:

#page-user-edit #fitem_id_url,
#page-user-edit #fitem_id_icq,
#page-user-edit #fitem_id_skype,
#page-user-edit #fitem_id_aim,
#page-user-edit #fitem_id_yahoo,
#page-user-edit #fitem_id_msn,
#page-user-edit #fitem_id_idnumber {
    display:none;
}

 
Average of ratings: -
Picture of Yoel Gutierrez
Re: How to remove user's field when creating or editing users' profile
 

Hello, 


I am implementing moodle in my work, I am really new in this, can you tell me where is this file located to be edited. So I can make the edits.


thanks

 
Average of ratings: -
Picture of Chardelle Busch
Re: How to remove user's field when creating or editing users' profile
Core developers

Hi Yoel,

We are talking here about hiding things using css in your theme's stylesheet.  This will be put into your site themes css file which will be located under your theme folder, for example theme/yourtheme/style/custom.css.  Your theme may also have a custom css setting where you can add custom css, for example under Appearance>Themes>Your theme name

 
Average of ratings: -