Assign Theme to user or at login

Assign Theme to user or at login

by lida lida -
Number of replies: 3

Hi
Not sure if this is the right place to ask this question but here goes. We are currently setting up our moodle site and so far so good. What i have been ask to do is give different users different themes. We are offering e-learning to different institutes and companies and would like the theme to be slightly different eg: institutes logo could be different. I have looked and looked and have not found any module or plugins that could do this. 
I didn't want to create several installations of moodle as it could become confusing.

Does anybody know it there is a way to assign a theme to a uses or assign a theme at login.
Any help on this would be great.
Many thanks

Average of ratings: -
In reply to lida lida

Re: Assign Theme to user or at login

by Paul Holden -
Picture of Core developers Picture of Moodle HQ Picture of Moodle Workplace team Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
In reply to Paul Holden

Re: Assign Theme to user or at login

by Frederic Nevers -

Would that 'force' the theme on users, though? I'd like to achieve something similar to offer a different look and feel to primary school, and secondary school students. 

Cheers, 

Fred

In reply to Frederic Nevers

Re: Assign Theme to user or at login

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

No it wouldn't, it allows the user to choose the theme in a setting on their profile page - but there are options: you could set the theme in the database directly using a script and then use css to hide the option to change it from the user profile page.

OR

You could use the user profile fields to add the user's company/institution e.g. in the Optional fields, Institution. You could then detect that $USER variable, add it to the body classes and then use it to adjust any of the css you want to - including adding an institutional logo. You could then just have the single theme and if new companies get involved you can add the adjustments through the customcss setting, rather than creating a new child theme.