Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to Customize Profile Page on Moodle without touching core?

Tags:

php

moodle

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?

like image 579
Les Ballard Avatar asked Dec 04 '25 01:12

Les Ballard


1 Answers

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

like image 106
Russell England Avatar answered Dec 05 '25 14:12

Russell England



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!