Is there a way to customize the profile page in moodle without editing the core files? Is it possible to override the page and keep the edits within the theme files? similar to how overriding a renderer keeps all the edited render files inside of the theme folder?
You could use the the $CFG->customscripts setting to use a copy of profile.php :
create a customscripts folder
yourmoodlesite/customscripts
Then set
$CFG->customscripts = 'yourmoodlesite/customscripts';
Then create a user folder in customscripts and copy profile.php so you have
yourmoodlesite/customscripts/user/profile.php
and remove or comment out the require...config.php line.
Now Moodle will use /customscripts/user/profile.php when viewing a profile.
Have a look yourmoodlesite/config-dist.php for more details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With