Modifying the myprofile/Logged in User block

Modifying the myprofile/Logged in User block

by Chris Pratt -
Number of replies: 1

Hi all

New to Moodle block development. I'd like to modify the myprofile / Logged in User block to display some custom user profile fields that we have. I've tried USER$->[customfieldshortname] as suggested in an old Moodle forum post but that didn’t work.

Thanks in advance!

Average of ratings: -
In reply to Chris Pratt

Re: Modifying the myprofile/Logged in User block

by Chris Pratt -

Solved it:

 

$USER->profile_field_PROFILEFIELDSHORTNAME['text']

 

That displays the text required.