Mobile app version of vmapp.org
Login or Join
Nimeshi995

: 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

@Nimeshi995

Posted in: #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 user logins the theme should change.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray432

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme