: Html integration for user end only for moodle How can I integrate my customized theme to only the user end and not to the admin end for moodle. The admin end should remain the same,but when
How can I integrate my customized theme to only the user end and not to the admin end for moodle. The admin end should remain the same,but when user logins the theme should change.
More posts by @Nimeshi995
1 Comments
Sorted by latest first Latest Oldest Best
Just tried to answer this on stackoverflow but the question got moved :)
You could work around it - set the user end theme as the default and change the user theme for the admins to standard :
Go to /admin/settings.php?section=themesettings and ensure the option for allowuserthemes is ticked.
On the same page, you might also want to limit the list of themes to yourthemename,standard
Or add the following to the config.php file
$CFG->allowuserthemes = true;
$CFG->themelist = 'yourthemename,standard';
Then update the admin user themes to the standard - first you will need a list of admin ids.
SELECT value FROM mdl_config WHERE name = 'siteadmins';
Then copy the list into
UPDATE mdl_user SET theme = 'standard' WHERE id in ([listofadminids]);
So when an admin logs in, they will see the standard theme. All other users will see the default theme which is yourthemeame.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.